Reflected XSS in https://nin.mtn.ng/nin/success?message=lol&nin=<VULNERABLE>
The nin parameter on a success page reflected unsanitised input, allowing an attacker to inject a script that runs in a victim's browser. An attacker could execute JavaScript in the victim's browser.
Originally disclosed on HackerOne
- Triaged in 16 days
- Fixed in 2 months
- Disclosed after 15 months
###Summary: Hello team, Found a reflected XSS on one your domains i believe https://nin.mtn.ng/nin/success?message=msg&nin= as the nin parameter is vulnerable. Please check the following PoC: Run the following command from a terminal: curl -ski "https://nin.mtn.ng/nin/success?message=lol&nin=<script>alert(1)</script>" | grep "alert"

I reported this before in report #1737682 but it was closed as resolved while still vulnerable.
Impact
Attacker could execute js in the victim's browser.
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
Impact
An attacker could execute JavaScript in the victim's browser, though the report gives no further detail on what that script could achieve.
What the attacker needed
Victim loads a crafted URL containing the payload
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.
A reflected XSS bug means a website puts something from the address bar straight into the page without cleaning it. Here the 'nin' value was placed into the page, so a crafted link could make the victim's browser run the attacker's JavaScript.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.