Skip to content
XSS Write-up Beginner

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.

Mainak Sadhukhan Follow

Published on web.archive.org

{{media:0}}

Mainak Sadhukhan, on web.archive.org

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

  1. Log in to the OnePlus account or go directly to the customer support chat portal as an anonymous user.
  2. Navigate to Support, then Contact Us, then Chat with Us.
  3. Fill in the required fields (email, name, phone number, issue details) and proceed to the chat window.
  4. In the chat text input field, type a JavaScript payload such as an image tag with an onerror handler.
  5. 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.

More by Mainak Sadhukhan

View all

1 more disclosed report, best first.

More from OnePLus

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.