揭示系統數據或調試信息有助于攻擊者了解系統并制定攻擊計劃。
當系統數據或調試信息通過輸出流或者日志功能流出程序時,就會發生信息泄漏。
示例:下面的代碼會將 CGI 環境變量顯示到一個 Web 頁面中:
...
HTP.htmlOpen;
HTP.headOpen;
HTP.title ('Environment Information');
HTP.headClose;
HTP.bodyOpen;
HTP.br;
HTP.print('All CGI Environment Variables:');
OWA_UTIL.print_cgi_env;
HTP.br;
HTP.bodyClose;
HTP.htmlClose;
...
[1] Standards Mapping - OWASP Top 10 2007 - (OWASP 2007) A6 Information Leakage and Improper Error Handling
[2] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP3620 CAT II
[3] Standards Mapping - Security Technical Implementation Guide Version 3.4 - (STIG 3.4) APP3620 CAT II
[4] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 497
[5] Standards Mapping - Web Application Security Consortium 24 + 2 - (WASC 24 + 2) Information Leakage
[6] Standards Mapping - Payment Card Industry Data Security Standard Version 2.0 - (PCI 2.0) Requirement 6.5.5
[7] Standards Mapping - Payment Card Industry Data Security Standard Version 1.2 - (PCI 1.2) Requirement 6.5.6