How I pwned a company using IDOR and Blind XSS
The company's support ticket system had an IDOR that let anyone view any ticket by changing the ticket ID, and a blind XSS in the internal ticket management domain that executed when staff viewed a ticket. By sending a password reset email to the company's Slack, a ticket was created containing Slack registration links, and the XSS captured the ticket ID, allowing the attacker to view those links and access the company's Slack channels.
Published on ansariosama.com
The original lives on ansariosama.com
We do not hold its text, 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 support ticket API lacked proper authorisation checks on the ticket ID, and the internal ticket management domain failed to sanitise user-supplied input from emails.
Impact
The attacker accessed the company's Slack channels; Facebook Workplace could have been accessed, as Slack and Facebook used random tokens in emails.
What the attacker needed
Ability to send emails to support address; support staff views the ticket; knowledge of ticket ID (obtained via XSS)
How it was found
- Send a password reset email to the company's Slack, which creates a support ticket from Slack.
- Send an email to the support address containing a blind XSS payload, which creates another ticket.
- Wait for the XSS to execute when support staff view the ticket, and receive the DOM of the internal page.
- Extract the ticket ID of the Slack email from the captured DOM.
- Use the IDOR by changing the ticket ID in the API request to view the Slack ticket.
- Read the Slack registration links contained in that ticket.
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 IDOR (Insecure Direct Object Reference) is when a website lets you access someone else's data just by changing an identifier like a ticket number in the request. Blind XSS (Cross-Site Scripting) is when malicious code you submit is stored and later runs in someone else's browser, even though you don't see the result immediately. Here, the attacker combined both: the XSS revealed a secret ticket number, and the IDOR let them read that ticket, which contained links to join the company's Slack.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.