揭示系統數據或調試信息有助于攻擊者了解系統并制定攻擊計劃。
當系統數據或調試信息通過輸出流或者日志功能流出程序時,就會發生信息泄漏。
例如:以下代碼針對標準的錯誤流輸出了一個異常:
<?php
...
echo "Server error!Printing the backtrace";
debug_print_backtrace();
...
?>
[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