Self -Xss to Stored Xss On Zendesk
A self-XSS in the organisation field of a Zendesk account page could be turned into a stored XSS because an autocomplete endpoint returned previously saved organisation names without sanitisation. An attacker could save a malicious organisation name and have it executed when another user selected it from the autocomplete list.
Published on addictivehackers.blogspot.com
Here before the poc i want to say that , i just implement the functionality of the site to lead self xss to stored one
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 autocomplete endpoint returned stored organisation names without output encoding, so a value saved via the organisation field was rendered as HTML/script in the autocomplete suggestions.
Impact
An attacker could store a script payload as an organisation name and have it execute in the browser of another user who selects it from the autocomplete list, potentially leading to account compromise.
What the attacker needed
Ability to set an organisation name; victim uses the autocomplete field
The fix
The report says Zendesk fixed the issue after the video proof of concept was provided, though the exact fix is not described.
How it was found
- Go to the account page and enter a script payload in the organisation field.
- Save the organisation so the payload is stored.
- Capture the autocomplete request made when typing in the organisation field.
- Observe that the autocomplete endpoint returns previously saved organisation names, including the payload.
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.
Self-XSS is when you can only make a script run in your own browser by typing it yourself, which is not very useful. The researcher found that the site saved that typed value and later showed it to other users through an autocomplete suggestion, so the script could run in their browsers too. That turns a harmless self-XSS into a stored XSS, where the malicious value is saved on the server and served to others.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.