BaseDraft
CWE-188Reliance on Data/Memory Layout
Category: memory
Description
The product makes invalid assumptions about how protocol data or memory is organized at a lower level, resulting in unintended program behavior.
Common consequences· 1
- Integrity / Confidentiality — Modify Memory, Read MemoryCan result in unintended modifications or exposure of sensitive memory.
Potential mitigations· 3
- [Implementation, Architecture and Design]In flat address space situations, never allow computing memory addresses as offsets from another memory address.
- [Architecture and Design]Fully specify protocol layout unambiguously, providing a structured grammar (e.g., a compilable yacc grammar).
- [Testing]Testing: Test that the implementation properly handles each case in the protocol grammar.
References
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.