Lab: Exploiting an API endpoint using documentation
Summary: PortSwigger's lab walks through finding exposed API documentation by trimming a PATCH /api/user/wiener request down to /api, which returns interactive docs. From those docs, the DELETE row is used with the identifier carlos to delete that user and solve the lab.
What you should know: The whole exploit is path truncation on one authenticated request: removing /wiener and then /user exposed documentation that listed a DELETE operation, and that operation was enough to remove another user's account.
Read the original at PortSwigger Research ↗
- Topics
- Vulnerabilities & Patching
- Related
- Attackers Exploit UnrealIRCd Flaw That Enables Server-Level Command Injection Cyber Risks · Nov 14, 2026U.S. CISA adds Check Point and UnrealIRCd flaws to its Known Exploited Vulnerabilities catalog Cyber Risks · Nov 14, 2026PostgreSQL Patches 52 Flaws, Including 22-Year-Old Bug Enabling Authenticated RCE Cyber Risks · Nov 13, 2026