Send X-HTTP-Method-Override to reach endpoints a reverse proxy blocks by method
Many APIs let a framework middleware (Express method-override, some Spring and .NET setups) read X-HTTP-Method-Override, X-Method-Override, or a _method body/query field and treat the request as if it used that HTTP verb, even though the real method on the wire stayed GET or POST.
If a WAF, reverse proxy, or API gateway rule only blocks specific methods on a path (for example denying DELETE /api/users/{id} or PUT /api/admin/settings to unauthenticated callers), try sending the request as a plain GET or POST with the override header set to the blocked verb:
POST /api/admin/settings HTTP/1.1
X-HTTP-Method-Override: PUT
Content-Type: application/json
{"maintenanceMode": false}If the application framework honors the header but the perimeter rule only inspects the actual request line, the request reaches the handler as a PUT while the proxy sees a harmless POST. Confirm real impact by checking the response body and a follow-up GET for the actual state change, not just a 200 status, since some apps accept the header but ignore it. Only test this against in-scope targets and your own test account.
Follow #api, #authorization, #method-override or #waf-bypass for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.