|
|
|
|
CWE-232: Improper Handling of Undefined Values
| | Improper Handling of Undefined Values |
|
| Weakness ID: 232 (Weakness Base) | | Status: Draft |
Description
Description Summary The software does not handle or incorrectly handles when a value is not defined or supported for the associated parameter, field, or argument name.
Time of Introduction
- Architecture and Design
- Implementation
Common Consequences | Scope | Effect |
Integrity | Technical Impact: Unexpected state |
Demonstrative Examples Example 1 In the excerpt below, if the value of the address parameter is null
(undefined), the servlet will throw a NullPointerException. (Bad Code) Example
Language: Java String address = request.getParameter("address").trim(); Observed Examples | Reference | Description |
| CVE-2000-1003 | Client crash when server returns unknown driver
type. |
Relationships Taxonomy Mappings | Mapped Taxonomy Name | Node ID | Fit | Mapped Node Name |
| PLOVER | | | Undefined Value Error |
| CERT Java Secure Coding | ERR08-J | | Do not catch NullPointerException or any of its
ancestors |
Content History | Submissions |
|---|
| Submission Date | Submitter | Organization | Source |
|---|
| PLOVER | | Externally Mined | | | Modifications |
|---|
| Modification Date | Modifier | Organization | Source |
|---|
| 2008-07-01 | Sean Eidemiller | Cigital | External | | added/updated demonstrative
examples | | 2008-07-01 | Eric Dalci | Cigital | External | | updated Time_of_Introduction | | 2008-09-08 | CWE Content Team | MITRE | Internal | | updated Relationships,
Taxonomy_Mappings | | 2009-03-10 | CWE Content Team | MITRE | Internal | | updated Description, Name | | 2011-06-01 | CWE Content Team | MITRE | Internal | | updated Common_Consequences, Relationships,
Taxonomy_Mappings | | 2011-06-27 | CWE Content Team | MITRE | Internal | | updated Common_Consequences | | Previous Entry Names |
|---|
| Change Date | Previous Entry
Name |
|---|
| 2008-04-11 | Undefined Value
Error | | | 2009-03-10 | Failure to Handle Undefined
Value | |
|