Stored HTML Injection (CWE-79) via Livechat Visitor Name
The Livechat visitor name field accepted unsanitised HTML and stored it raw, then rendered it with dangerouslySetInnerHTML in the agent queue panel. An unauthenticated attacker could inject a clickable link with arbitrary text into the DOM of any agent viewing the queue.
- Triaged in 27 days
- Fixed in 33 days
- Disclosed after 33 days
Summary by the program
REST API endpoint POST /api/v1/livechat/visitor accepts an unauthenticated, unsanitized name field for Livechat visitors. This name is stored raw and later rendered via dangerouslySetInnerHTML in the Omnichannel Queue side panel (InquireSidePanelItem.tsx), injecting a real, clickable HTML link - pointing to any attacker-controlled domain, with arbitrary social-engineering text - into the DOM of any agent viewing the queue.
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
Root cause
The visitor name was stored without sanitisation and later inserted into the page using dangerouslySetInnerHTML, which treats the value as HTML rather than plain text.
Impact
An unauthenticated attacker could place a real, clickable link with arbitrary social-engineering text in front of any agent viewing the queue, which could lead an agent to an attacker-controlled domain.
What the attacker needed
No authentication needed; agent views the queue panel
The fix
The text does not describe a fix; sanitising input and avoiding dangerouslySetInnerHTML would address it.
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.
A chat visitor can set their display name to something that looks like a link. The agent dashboard later inserts that name into the page as if it were part of the website's own code, so the link becomes real and clickable for the agent. This is called HTML injection because the site trusts user text as markup.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.