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.
- 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)>

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.
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.