Skip to content
XSS Write-up Beginner

DOM-Based Reflected XSS in MTN Group’s Notification Server

An outdated Swagger UI on MTN Group's notification server accepted a configUrl parameter that loaded a remote JSON file, allowing arbitrary JavaScript execution. An attacker could run scripts in the server's context, potentially leading to session hijacking, data theft, phishing, or account takeover.

regan_temudo Follow

Published on medium.com

Cross-Site Scripting (XSS) vulnerabilities remain one of the most common web security flaws, with the potential to compromise user data and application security. In early 2024, security researchers (nhx1) identified a DOM-Based Reflected XSS vulnerability in MTN Group’s notification server, specifically due to an…

Regan Temudo, on medium.com

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 an outdated Swagger UI version that allowed the configUrl parameter to load and execute attacker-controlled JavaScript.

Impact

A malicious actor could execute arbitrary scripts in the context of the notification server, potentially leading to session hijacking, data exfiltration, phishing, or account takeover of applications under the domain.

What the attacker needed

Victim visits a crafted link; attacker hosts a JSON file

The fix

The issue was mitigated by MTN Group, and the report recommends regularly updating dependencies and validating user-controlled parameters.

How it was found

  1. Visit the notification server's index page with a configUrl parameter pointing to an attacker-hosted JSON file.
  2. Observe an alert box, confirming script execution.
  3. Test a second attacker-hosted JSON URL, which also executed arbitrary JavaScript.

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.

Cross-site scripting (XSS) is when a website runs code an attacker supplied, as if it were the site's own. Here, an old version of a documentation tool called Swagger let a URL parameter point to a file the attacker controlled, and that file could contain JavaScript. The browser then ran that JavaScript as part of the MTN notification server's page.

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 regan_temudo

View all

3 more disclosed reports, best first.

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.