Skip to content
XSS Disclosed report Beginner

Reflected XSS on mtnhottseat.mtn.com.gh

A reflected cross-site scripting flaw was found in the subscribe API endpoint, where a crafted URL caused the server to echo an injected image tag with an event handler back to the browser. An attacker could run JavaScript in a victim's session, potentially reading cookies and local storage to impersonate the user.

lu3ky-13 Follow

Originally disclosed on HackerOne

  • Triaged in 4 months
  • Fixed in 4 months
  • Disclosed after 5 months

hello dear

I have found Reflected XSS on mtnhottseat.mtn.com.gh parameters injectable /api/v2/subscribe/;

my payload "><img src=x onerror=alert(document.domain)>

URL: https://mtnhottseat.mtn.com.gh/api/v2/subscribe/;%22%3E%3Cimg%20src=x%20onerror=alert(document.domain)%3E

Capture.PNG
Capture.PNG From the original on HackerOne

Impact

Malicious JavaScript has access to all the same objects as the rest of the web page, including access to cookies and local storage, which are often used to store session tokens. If an attacker can obtain a user's session cookie, they can then impersonate that user.

Furthermore, JavaScript can read and make arbitrary modifications to the contents of a page being displayed to a user. Therefore, XSS in conjunction with some clever social engineering opens up a lot of possibilities for an attacker.

The original report as published on HackerOne, by lu3ky-13. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Likely the endpoint reflected user-controlled input into the response without output encoding or sanitisation.

Impact

An attacker could run JavaScript in a victim's browser and potentially steal session tokens from cookies or local storage to impersonate the user, though this depends on the victim visiting the crafted link.

What the attacker needed

Victim clicks a crafted link

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.

Cross-site scripting (XSS) is when a website takes something a user sends, like part of a web address, and puts it into the page without cleaning it first. Here the site reflected a crafted value back, so the browser ran it as code. That code can then act as the logged-in user, for example by reading their session cookie.

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 lu3ky-13

View all

30 more disclosed reports, best first.

More from MTN Group

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.