OWASP / API-Security

OWASP API Security Project
https://owasp.org/www-project-api-security/
Other
2.07k stars 377 forks source link

Create 0xa10-multiple-verbs-exposure.md #28

Closed nathanawmk closed 4 years ago

nathanawmk commented 5 years ago

Hello! In my course of work as an API developer, I discovered that security of a server can be compromised when multiple HTTP methods (verbs) are permitted, specifically HTTP HEAD.

Therefore, I am strongly suggesting that multiple HTTP methods (verbs) be not allowed by default. Instead only the prescribed/specified HTTP verbs should be clearly defined and allowed on an API.

E.g., Only GET, excluding HEAD Only POST, excluding HEAD Only HEAD