Stored Cross-Site Scripting (XSS) Vulnerability in Virtual Agent
A stored cross-site scripting flaw existed in the Virtual Agent file upload feature, where an uploaded HTML file containing JavaScript was executed when viewed. An attacker could run malicious JavaScript in another user's browser session, potentially leading to session hijacking, phishing, or data theft.
medium.com
Published on medium.com
I discovered a Stored XSS vulnerability in the Virtual Agent feature of a public program on HackerOne. The issue occurs when uploading a file containing JavaScript code, which gets executed upon viewing the file.
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 Virtual Agent served uploaded HTML files without sanitising or restricting their content, so embedded scripts ran in the site's origin.
Impact
An attacker could execute malicious JavaScript in another user's browser session, potentially leading to session hijacking, phishing, or data theft.
What the attacker needed
A Travelocity account; access to the Virtual Agent feature
How it was found
- Log in to Travelocity.
- Navigate to the Virtual Agent.
- Use the file upload option in the Virtual Agent interface.
- Upload an HTML file containing JavaScript.
- Observe the JavaScript executing in the browser.
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.
Cross-site scripting (XSS) is when a website runs code that an attacker supplied, as if it were part of the site. Here, the site let someone upload a file that contained a small script, and then ran that script when the file was opened. That means an attacker could make another user's browser do things the user did not intend, like steal their login session.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.