API Misconfiguration which leads to unauthorized access to servicedesk tickets
An API endpoint for service desk tickets was accessible without proper authorisation, allowing an attacker to retrieve all tickets by sending a crafted POST request with specific headers and a JSON body containing an app_id. The attacker could access sensitive ticket data.
Published on noobx.in
Hope you are doing well in bug bounty. Ever common bugs getting duplicate so thought to share one of my unique finding, as site name not allowed to disclosure we consider it as redacted.com.
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
What the attacker needed
Knowledge of the endpoint; ability to send HTTP requests
The fix
The report states the issue was fixed, but does not describe the fix; likely proper authentication and authorization checks were added.
How it was found
- Discover the endpoint /servicedeskapi/v1/gettickets from JavaScript files.
- Send a GET request to the endpoint and observe 'GET Method Not allowed' error.
- Switch to POST method and receive 'Length Required' error.
- Add Content-Length: 0 header and send a body with app_id parameter.
- Add Content-Type header and format body as JSON to successfully retrieve all tickets.
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.
An API is a way for programs to talk to each other. This one was supposed to require special permission to see support tickets, but the permission check was missing or broken. By guessing the right way to ask (using a POST request with certain headers and a small JSON body), anyone could get a list of all tickets.
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.