Home/Blog/Cheat Sheets
Cheat Sheets

Cheat Sheet Series – Web Service Security

Web Service Security (WS-Security) refers to a suite of protocols and standards that protect web services. The cheat sheet below condenses the key points from the OWASP guidance into a quick reference.

TopicKey security points
Transport confidentialityUse TLS to protect all data in transit and prevent eavesdropping and tampering.
Server authenticationClients must verify the server's TLS certificate is valid, trusted and correctly matches the host.
Client authenticationAuthenticate clients using TLS certificates, tokens or credentials, and manage keys securely.
Message integrityUse digital signatures (XML Signature) to ensure messages are not altered in transit.
Message confidentialityEncrypt sensitive elements with XML Encryption where transport security alone is insufficient.
AuthorisationEnforce access control on every request; never rely on the client to restrict actions.
Schema validationValidate every message against a strict schema (XSD) before processing.
Content validationValidate input for type, length and format, and reject malformed or unexpected data.
Output encodingEncode output appropriately to prevent injection in downstream consumers.
Message sizeLimit message and element size to mitigate denial-of-service attacks.
XML DoS protectionGuard against recursive payloads and entity-expansion ("billion laughs") attacks.
Endpoint securityHarden and patch endpoints, and expose only the services that are required.
#cheat-sheet#web-services#owasp

Ready to strengthen your security?

Talk to our consultants about your penetration testing requirements, or get a fast, transparent quote.