未能適當處理的異常可能導致應用程序產生意想不到的狀態和狀況。
以下情況中會出現 Unhandled Exception 漏洞:
1. 一個異常被拋出
2. 在異常離開當前頁之前,未能對其進行適當地處理。
幾乎每一個對軟件系統的嚴重攻擊都是從違反程序員的假設開始的。攻擊后,程序員的假設看起來既脆弱又拙劣,但攻擊前,許多程序員會在午休時間為自己的種種假設做很好的辯護。
代碼中兩個容易識破的可疑假設是:“該操作從不會失敗”和“如果該操作失敗了也沒關系”。如果程序員沒有抓住某個操作拋出的異常,則間接地表明了他們是基于這些假設進行的操作。
[1] Standards Mapping - OWASP Top 10 2007 - (OWASP 2007) A6 Information Leakage and Improper Error Handling
[2] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A7 Improper Error Handling
[3] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP3120 CAT II
[4] Standards Mapping - Security Technical Implementation Guide Version 3.4 - (STIG 3.4) APP3120 CAT II
[5] Standards Mapping - FIPS200 - (FISMA) AU
[6] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 388
[7] Macromedia Exceptions in ColdFusion 5
[8] Standards Mapping - Web Application Security Consortium 24 + 2 - (WASC 24 + 2) Information Leakage
[9] Standards Mapping - Payment Card Industry Data Security Standard Version 1.2 - (PCI 1.2) Requirement 6.3.1.2, Requirement 6.5.6
[10] Standards Mapping - Payment Card Industry Data Security Standard Version 2.0 - (PCI 2.0) Requirement 6.5.5
[11] Standards Mapping - Payment Card Industry Data Security Standard Version 1.1 - (PCI 1.1) Requirement 6.5.7