arXiv:2610.37474cs.CROct 2026

Manuscript Offprint

arXiv:2610.37474

When POST Becomes GET: Investigating HTTP Method Interchangeability and Its Security Implications

Matteo Golinelli, Seif Errahmane Hannachi, Bruno Crispo

Matteo Golinelli

University of Trento

matteo.golinelli@unitn.it

Seif Errahmane Hannachi

Higher School of Computer Science of Sidi Bel Abbes

s.hannachi@esi-sba.dz

Bruno Crispo

University of Trento

bruno.crispo@unitn.it

Abstract—HTTP method semantics are a common boundary between safe retrieval and state-changing operations; however, deployed web applications do not always enforce this boundary consistently. In this paper, we study HTTP method interchangeability, a behavior where a POST request can be rewritten as a GET request to the same endpoint, with POST body parameters moved into the query string, while preserving an equivalent observed response. We present Method Interchange Detection Engine (MIDE), an automated pipeline that crawls web applications in a browser, records POST requests generated by page loads and user-interface interactions, converts supported POST bodies into GET candidates, and compares replayed responses with the original POST response. To avoid counting generic or parameter-independent responses as interchangeable, MIDE also sends a no-query GET baseline. We treat as high-confidence evidence of interchangeability only the cases where the converted GET matches the POST, while the baseline does not. We perform a large-scale unauthenticated experiment on the Tranco top 10k. We find high-confidence interchangeable requests on 407 of 10,000 tested sites (4.1%), 407 of 3,200 sites with captured POSTs (12.7%), and 407 of 2,734 sites with replayed POSTs (14.9%). A targeted Cross-Site Request Forgery (CSRF) token-replay check finds cases where invalid tokens are rejected for POST but accepted for the equivalent GET. We also observe Web Cache Deception (WCD) conditions and cacheable GET responses for interchangeable request instances. These results demonstrate that method interchangeability is observable in real web applications and can expose method-scoped defense gaps.

Index Terms—HTTP method interchangeability, HTTP methods, CSRF, web cache deception

1. Introduction

Hypertext Transfer Protocol (HTTP) methods play an important role in the web security model. GET is intended for safe retrieval of resources, while POST is used for operations that may submit data or change server-side state [1]. Web applications, browser behavior, caching systems, and server-side defenses often build on this distinction. For example, SameSite cookie behavior treats safe and unsafe methods differently, and caching layers generally only cache GET responses. When an application accepts the same operation through both methods, these assumptions can become weaker than the application developer intended.

In this paper, we study HTTP method interchangeability, the ability of a server to process requests with different HTTP methods in a semantically equivalent way. We focus on a specific and measurable form of the behavior, converting browser-observed POST requests into GET requests to the same endpoint, moving POST body parameters into the query string, and comparing the resulting GET response with the original POST response.

This behavior is not inherently a vulnerability: a read-only endpoint may intentionally accept both methods, and an equivalent response alone does not prove state change or data leakage. Nevertheless, it is security-relevant because it exposes alternative request forms that may bypass assumptions made by defenses, caches, routing middleware, or application code.

Several common development patterns make this behavior plausible. Some frameworks merge query and body parameters into a single interface, while others require explicit separation. Some routing models restrict handlers to a single method by default, while others leave scripts or handlers reachable through multiple methods unless the application checks the request method explicitly. API technologies also differ: GraphQL and SPARQL intentionally allow GET and POST for read-only operations, while other protocols bind semantics more tightly to specific methods.

Motivated by this observation, we develop Method Interchange Detection Engine (MIDE), a browser-based collection and replay pipeline for measuring method interchangeability at scale.

Detecting method interchangeability at scale presents a key challenge: a converted GET may match the POST either because the endpoint accepts the rewritten parameters or because it ignores parameters and returns a generic response. We therefore use a baseline-controlled comparison. MIDE crawls sites with a real browser, records POST requests from page loads, forms, and selected button interactions, converts supported bodies into GET query strings, and replays both the converted GET and a no-query GET baseline. We count high-confidence interchangeability only when the converted GET is equivalent to the POST and the baseline is not.

We evaluate this methodology on an unauthenticated

Tranco top 10k large-scale experiment. To the best of our knowledge, this is the first large-scale measurement of HTTP method interchangeability in the wild. Our crawler captured POST requests on 3,200 sites, and 2,734 sites had at least one POST request that could be converted and replayed as a GET. We find method interchangeability on 407 of 10,000 tested sites (4.1%), 407 of 3,200 sites with captured POSTs (12.7%), and 407 of 2,734 sites with replayed POSTs (14.9%). This affects 646 of 8,291 replayed POST routes (7.8%) and 1,228 of 14,244 replayed POST requests (8.6%). We further analyze Cross-Site Request Forgery (CSRF) token handling for 115 token-bearing requests and find 7 cases across 2 sites where invalid tokens are rejected for POST but accepted for the equivalent GET. Finally, we test the 1,228 high-confidence interchangeable request instances for Web Cache Deception (WCD) and confirm cacheable dynamic responses on 56 of them across 9 of 407 tested sites.

To summarize, we make the following contributions:

• We analyze framework and API-technology patterns that enable or constrain method interchangeability, including unified parameter access, routing constraints, and array-parameter parsing. We show that popular technologies exhibit behaviors that can lead to method interchangeability.

• We present Method Interchange Detection Engine (MIDE), a browser-based collection and replay pipeline with a baseline-controlled comparison to avoid counting generic responses as interchangeable, and we release its code and configuration as open source.

• We perform the first large-scale measurement of HTTP method interchangeability in the wild and find high-confidence interchangeable requests on 4.1% of all tested sites, 12.7% of sites with captured POSTs, and 14.9% of sites with replayed POSTs.

• We analyze method-scoped Cross-Site Request Forgery token behavior and identify cases where the POST form rejects invalid tokens while the equivalent GET form accepts them.

• We test high-confidence interchangeable GET URLs for Web Cache Deception and confirm that method interchangeability can make dynamic responses cacheable under static-looking URLs.