HTTP Method Spoofing is when a client sends a request that appears to be a safe or allowed HTTP method (POST
, GET
), but actually instructs the server-side framework to treat it as a different method (PUT
, PATCH
, DELETE
) via a hidden parameter or HTTP header.
Purpose:
- Originally added to support RESTful routes when HTML forms only supported
GET
andPOST
. - Can be abused if access control is weak.