未經簽名的時間戳會導致 SOAP 消息遭受 tampering 及 replay 攻擊。
安全性時間戳可表明消息的安全語義的“新鮮性”。因此,如果消息被截取,并稍后再次傳送,則接收者可以拒絕陳舊的消息。時間戳可包含有效期屬性,通過該屬性,可對安全語義的有效期設置一個硬限制。
為避免攻擊者篡改時間戳,應對時間戳執行簽名。如果 SOAP 消息的時間戳未經簽名,則攻擊者可在接收者不知情的情況下截取該消息并修改時間戳。在這種情況下,攻擊者可能會欺騙接收者接受惡意消息。
下列服務提供程序配置可讓 Axis 2 發送未經簽名的時間戳:
<service>
...
<parameter name="OutflowSecurity">
<action>
<items>Timestamp Encrypt</items>
...
</action>
</parameter>
</service>
[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 - FIPS200 - (FISMA) CM
[4] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 345
[5] Standards Mapping - Web Application Security Consortium 24 + 2 - (WASC 24 + 2) Insufficient Authentication
[6] Standards Mapping - Payment Card Industry Data Security Standard Version 1.1 - (PCI 1.1) Requirement 6.5.10
[7] Securing SOAP Messages with Rampart Apache Software Foundation
[8] Web Services Security:SOAP Message Security 1.1 OASIS