
how wp2shell actually works: the two-loop bug that lets an anonymous request run code on WordPress
The exploit hinges on a subtle mistake — WordPress's REST API validates and executes batch requests in two separate loops. When one step fails, everything after it dispatches under the wrong handler. Here's the chain, step by step.
Priya Nair · Jul 22 · 9 min




