Fat GET Authorization Bypass
A report-download endpoint checked authorisation based on the request body rather than the URL, so sending a GET request that still carried a JSON body with the attacker's own client name let the attacker fetch reports belonging to other roles and other clients. The author bypassed both role and tenant restrictions this way.
medium.com
Published on medium.com
Read Full Article Here: https://hogarth45.com/fat-get-authorization-bypass/
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the authorisation logic read the client identifier from the request body (or otherwise mishandled a GET request that carried a body) instead of from the URL path, so the check validated a different resource than the one being served.
Impact
An authenticated user could download reports belonging to other roles and other client tenants, exposing other customers' data.
What the attacker needed
An authenticated account; a report ID belonging to another client
How it was found
- Build a report with a POST request containing parameters, which returns a report ID.
- Download the report with a GET request using that report ID.
- Take the saved POST request and manually change it into a GET request for another client's report ID.
- Leave the JSON body and Content-Length header in place, so the GET carries a body naming your own client.
- Send the request and observe that the report for the other client and role is returned instead of a 403.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A web app lets each customer download PDF reports, and it is supposed to check that you are allowed to see the report you ask for. The check was reading the customer name from the request body instead of the address being requested, so by leaving an old body attached to a GET request the tester made the server think the request was for their own data while actually asking for someone else's. This is a broken access control bug: the server trusted the wrong part of the request.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.