當 CakePHP 調試級別在 1 級或以上時,可導致敏感數據寫入日志文件。
CakePHP 可配置為公開調試信息,如錯誤、警告、SQL 指令和堆棧跟蹤信息。在生產環境中,不應使用 Debug Information。
例 1:
Configure::write('debug', 3);
Configure::write() 方法的第二個參數表示調試級別。數值越大,記錄的日志信息越冗長。
[1] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A10 Insecure Configuration Management
[2] Standards Mapping - OWASP Top 10 2007 - (OWASP 2007) A6 Information Leakage and Improper Error Handling
[3] Standards Mapping - OWASP Top 10 2010 - (OWASP 2010) A6 Security Misconfiguration
[4] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP3620 CAT II
[5] Standards Mapping - Security Technical Implementation Guide Version 3.4 - (STIG 3.4) APP3620 CAT II
[6] Standards Mapping - FIPS200 - (FISMA) CM
[7] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 215
[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.1 - (PCI 1.1) Requirement 6.5.10
[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.2 - (PCI 1.2) Requirement 6.5.6
[12] cakephp.org The Configuration Class