禁用頭文件檢查會使攻擊者對頭文件操作發起攻擊,如 HTTP response splitting。
在默認情況下,.NET 框架會阻止將換行符發送到設置頭文件值的 API。但是,如果將 <httpRuntime> 標簽上的 enableHeaderChecking 屬性設置為 false,則可在配置文件中禁用此行為。
如果禁用該檢查,那么允許用戶輸入以訪問頭文件設置 API 的代碼將容易受到類似 HTTP response splitting 的攻擊。
[1] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A10 Insecure Configuration Management
[2] Standards Mapping - OWASP Top 10 2010 - (OWASP 2010) A6 Security Misconfiguration
[3] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP3510 CAT I
[4] Standards Mapping - Security Technical Implementation Guide Version 3.4 - (STIG 3.4) APP3510 CAT I
[5] Standards Mapping - FIPS200 - (FISMA) CM
[6] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 113
[7] httpRuntime Element Microsoft
[8] Standards Mapping - Payment Card Industry Data Security Standard Version 1.2 - (PCI 1.2) Requirement 6.3.1.1
[9] Standards Mapping - Payment Card Industry Data Security Standard Version 2.0 - (PCI 2.0) Requirement 6.5.1
[10] Standards Mapping - Payment Card Industry Data Security Standard Version 1.1 - (PCI 1.1) Requirement 6.5.10