未經簽名的時間戳會導致 SOAP 消息遭受 tampering 及 replay 攻擊。
安全性時間戳可表明消息的“新鮮性”。如果攻擊者截取了一則消息,稍后將其轉發,則接收者能夠拒絕此 replay 攻擊,因為時間戳會指明該消息已過期。時間戳可包含有效期屬性,通過該屬性,可對安全語義的有效期設置一個硬限制。
為避免攻擊者篡改時間戳,應對時間戳執行簽名。如果 SOAP 消息的時間戳未經簽名,則攻擊者可在接收者不知情的情況下截取該消息、修改時間戳,以及轉發該消息。在這種情況下,攻擊者可能會欺騙接收者接受惡意消息。
下列客戶端配置可讓 WebSphere 發送未經簽名的時間戳:
<com.ibm.etools.webservice.wscext:WsClientExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:com.ibm.etools.webservice.wscext="http://www.ibm.com/websphere/appserver/schemas/5.0.2/wscext.xmi" xmi:id="WsClientExtension_1152150778436">
...
<securityRequestGeneratorServiceConfig xmi:id="SecurityRequestGeneratorServiceConfig_1212078169562">
<addTimestamp xmi:id="AddTimestamp_1212093882250"/>
...
</com.ibm.etools.webservice.wscext:WsClientExtension>
[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] Web Services Handbook for WebSphere Application Server 6.1 IBM Redbooks
[8] Web Services Security:SOAP Message Security 1.1 OASIS