Generic Web Service Security
V4.1.1
Verify that every HTTP response with a message body contains a Content-Type header field that matches the actual content of the response, including the charset parameter to specify safe character encoding (e.g., UTF-8, ISO-8859-1) according to IANA Media Types, such as "text/", "/+xml" and "/xml".
Required for Level 1, 2 and 3
Related CAPEC™ Requirements
CAPEC™ (3.9): 152, 153, 160, 19, 272, 43, 63
V4.1.2
Verify that only user-facing endpoints (intended for manual web-browser access) automatically redirect from HTTP to HTTPS, while other services or endpoints do not implement transparent redirects. This is to avoid a situation where a client is erroneously sending unencrypted HTTP requests, but since the requests are being automatically redirected to HTTPS, the leakage of sensitive data goes undiscovered.
Required for Level 2 and 3
Related CAPEC™ Requirements
CAPEC™ (3.9): 157, 39, 594, 620, 94
V4.1.3
Verify that any HTTP header field used by the application and set by an intermediary layer, such as a load balancer, a web proxy, or a backend-for-frontend service, cannot be overridden by the end-user. Example headers might include X-Real-IP, X-Forwarded-*, or X-User-ID.
Required for Level 2 and 3
Related CAPEC™ Requirements
CAPEC™ (3.9): 194, 22, 39, 690
V4.1.4
Verify that only HTTP methods that are explicitly supported by the application or its API (including OPTIONS during preflight requests) can be used and that unused methods are blocked.
Required for Level 3
Related CAPEC™ Requirements
V4.1.5
Verify that per-message digital signatures are used to provide additional assurance on top of transport protections for requests or transactions which are highly sensitive or which traverse a number of systems.
Required for Level 3
Related CAPEC™ Requirements
CAPEC™ (3.9): 145, 184, 195, 218, 39, 438, 442, 465, 475, 510, 523, 543, 594, 633, 68, 690, 75, 94, 98
Disclaimer
Credit via OWASP ASVS.For more information visit: The OWASP ASVS Project or Github respository.. OWASP ASVS is under the Creative Commons Attribution-Share Alike v4.0 license.