pentesting, updated
Testing for HTTP verb tampering
Check whether swapping the HTTP method on a request bypasses an access control or input filter that only checks one verb.
Goal
Confirm access controls and validation apply identically regardless of HTTP method.
How to test
Resend the same request with a different verb:
curl -s https://example.com/admin/action -X GET
curl -s https://example.com/admin/action -X POST
curl -s https://example.com/admin/action -X HEAD
curl -s https://example.com/admin/action -X PUT
Also check for a X-HTTP-Method-Override header or _method parameter some frameworks honor.
What to look for
A restricted action reachable, or a filter bypassed, simply by changing the method.
References
- OWASP WSTG-INPV-03 — Testing for HTTP Verb Tampering.