Status: Draft Weakness ID: 193 (Weakness Base)Summary A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value. off-by-five An "off-by-five" error was reported for sudo in 2002 (CVE-2002-0184), but that is more like a "length calculation" error.
This is not always a buffer overflow. For example, an off-by-one error could be a factor in a partial comparison, a read from the wrong memory location, an incorrect conditional, etc. Under-studied. It requires careful code analysis or black box testing, where inputs of excessive length might not cause an error. Off-by-ones are likely triggered by extensive fuzzing, with the attendant diagnostic problems.
Halvar Flake. "Third Generation Exploits". presentation at Black Hat Europe
2001. <http:/ Steve Christey. "Off-by-one errors: a brief explanation". Secprog and SC-L mailing list
posts. 2004-05-05. <http:/ klog. "The Frame Pointer Overwrite". Phrack Issue 55, Chapter 8. 1999-09-09. <http:/ G. Hoglund and
G. McGraw. "Exploiting Software: How to Break Code (The buffer overflow
chapter)". Addison-Wesley. February 2004. Submissions PLOVER. (Externally Mined) Modifications CWE Content Team. MITRE. 2008-09-08. (Internal) updated Alternate_Terms, Common_Consequences,
Relationships, Observed_Example, Relationship_Notes,
Taxonomy_Mappings CWE Content Team. MITRE. 2008-11-24. (Internal) updated Relationships,
Taxonomy_Mappings |
|
Page Last Updated:
May 26, 2009
|
|
CWE is a Software Assurance strategic initiative sponsored by the National Cyber Security Division of the U.S. Department of Homeland Security. This Web site is hosted by The MITRE Corporation. Contact cwe@mitre.org for more information. |
|||
