ONEPLUS XSS vulnerability in Customer Support Portal
The OnePlus customer support chat portal reflected user input without proper filtering, allowing an attacker to inject JavaScript that executes in the victim's browser. An attacker could steal cookies and perform other actions in the context of the victim's session.
Published on web.archive.org
{{media:0}}
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 chat input was reflected into the page without proper output encoding or filtering.
Impact
An attacker could steal cookies and perform other actions in the victim's browser session.
What the attacker needed
A OnePlus account or anonymous access; victim interacts with chat input
How it was found
- Log in to the OnePlus account or go directly to the customer support chat portal as an anonymous user.
- Navigate to Support, then Contact Us, then Chat with Us.
- Fill in the required fields (email, name, phone number, issue details) and proceed to the chat window.
- In the chat text input field, type a JavaScript payload such as an image tag with an onerror handler.
- Observe that an alert box pops up, indicating the script executed.
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.
When you type something into a website and it shows up on the page, the site should make sure it is just text, not code. Here, the chat box did not do that, so a malicious script could run in your browser and steal your login cookies.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.