Uncaught Exception |
Weakness ID: 248 (Weakness Base) | Status: Draft |
Description Summary
Failing to catch an exception thrown from a dangerous function can potentially cause the program to crash.
Example 1
The _alloca() function allocates memory on the stack. If an allocation request is too large for the available stack space, _alloca() throws an exception. If the exception is not caught, the program will crash, potentially enabling a denial of service attack. _alloca() has been deprecated as of Microsoft Visual Studio 2005(R). It has been replaced with the more secure _alloca_s().
Example 2
EnterCriticalSection() can raise an exception, potentially causing the program to crash. Under operating systems prior to Windows 2000, the EnterCriticalSection() function can raise an exception in low memory situations. If the exception is not caught, the program will crash, potentially enabling a denial of service attack.
Nature | Type | ID | Name | View(s) this relationship pertains to![]() |
---|---|---|---|---|
ChildOf | ![]() | 227 | Failure to Fulfill API Contract ('API Abuse') | Development Concepts (primary)699 Seven Pernicious Kingdoms (primary)700 |
ChildOf | ![]() | 389 | Error Conditions, Return Values, Status Codes | Development Concepts699 |
ChildOf | ![]() | 691 | Insufficient Control Flow Management | Research Concepts (primary)1000 |
ChildOf | ![]() | 703 | Failure to Handle Exceptional Conditions | Research Concepts1000 |
ChildOf | ![]() | 730 | OWASP Top Ten 2004 Category A9 - Denial of Service | Weaknesses in OWASP Top Ten (2004) (primary)711 |
Mapped Taxonomy Name | Node ID | Fit | Mapped Node Name |
---|---|---|---|
7 Pernicious Kingdoms | Often Misused: Exception Handling |
CAPEC-ID | Attack Pattern Name | (CAPEC Version: 1.4) |
---|---|---|
54 | Probing an Application Through Targeting its Error Reporting |
Submissions | ||||
---|---|---|---|---|
Submission Date | Submitter | Organization | Source | |
7 Pernicious Kingdoms | Externally Mined | |||
Modifications | ||||
Modification Date | Modifier | Organization | Source | |
2008-07-01 | Eric Dalci | Cigital | External | |
updated Time of Introduction | ||||
2008-08-15 | Veracode | External | ||
Suggested OWASP Top Ten 2004 mapping | ||||
2008-09-08 | CWE Content Team | MITRE | Internal | |
updated Applicable Platforms, Relationships, Taxonomy Mappings | ||||
2008-09-24 | CWE Content Team | MITRE | Internal | |
Removed C from Applicable Platforms | ||||
2008-10-14 | CWE Content Team | MITRE | Internal | |
updated Applicable Platforms | ||||
2009-03-10 | CWE Content Team | MITRE | Internal | |
updated Relationships | ||||
Previous Entry Names | ||||
Change Date | Previous Entry Name | |||
2008-01-30 | Often Misused: Exception Handling | |||