Cyber Risks · PortSwigger Research

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