Stored XSS triggered by json key during UI generation
A stored cross-site scripting flaw existed in the UI demo generator: JSON keys entered in the User Interface attribute fields were rendered in a dropdown without sanitisation. An attacker could inject script that ran in the victim's browser when the dropdown was opened.
- Triaged in 19 hours
- Fixed in 5 days
- Paid in 5 days
- Disclosed after 35 days
Stored XSS is triggred from Indices -> Generate a UI Demo. Typing anything in the Primary, Secondary, Tertiary, Image or URL attributes for User Interface section. These text box have a drop down which displays the json keys during which XSS is triggered.
Sample json for XSS would be
{ "<img src=1 onerror=alert(document.domain)>": "hello", }
Attached: screen shot
Attachments

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could run script in another user's browser session when that user opened the affected dropdown, though the report does not show what data or actions that script could reach.
What the attacker needed
Access to Indices and Generate a UI Demo; victim opens the JSON key dropdown
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 report has not been written yet. The Original tab links to the source.
The page let you type JSON, and it showed the key names in a dropdown menu. It put those names into the page without cleaning them first, so a key that looked like HTML with a script handler ran as code. Anyone who opened that dropdown would run the attacker's script in their own browser session.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.