Skip to content
XSS Disclosed report Beginner

DOM Based Reflected Cross Site Scripting

An outdated version of Swagger UI hosted on the target was vulnerable to DOM-based reflected cross-site scripting via the configUrl parameter. An attacker could craft a link that executes arbitrary scripts in a victim's browser.

nhx1 Follow

Originally disclosed on HackerOne

High 7.5 View original
  • Triaged in 3 days
  • Fixed in 9 months
  • Disclosed after 11 months

Summary:

I hope you're doing well. I stumbled upon one of your assets. Upon further inspection I realized that the asset was running an outdated version of Swagger. The outdated version of Swagger is well-known for Cross-Site Scripting vulnerabilities so I went ahead and attempted to test it in https://notification-server-v2.sz-my.mtn.com/. Turns out, it's vulnerable to Cross-Site Scripting. To reproduce it, please follow the steps of reproduction. I have not assessed the full impact of this vulnerability but it is highly probable that a malicious actor could exploit to takeover accounts of applications hosted under *.mtn.com. I hope this gets patched soon. If there's some additional information that you need from my side, please let me know. Thank you.

Steps To Reproduce:

[add details for how we can reproduce the issue]

  1. Go to the following URL https://notification-server-v2.sz-my.mtn.com/index.html?configUrl=https://jumpy-floor.surge.sh/test.json
  2. Observe the alert pop up like in the screenshot below
Screenshot_from_2024-01-16_13-36-09.png
Screenshot_from_2024-01-16_13-36-09.png From the original on HackerOne

Supporting Material/References:

[list any additional material (e.g. screenshots, logs, etc.)]

  • [attachment / reference]

Impact

A malicious actor could execute arbitrary scripts

The original report as published on HackerOne, by nhx1. 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 outdated Swagger UI page reads the configUrl parameter from the URL and uses it without proper sanitisation, allowing script injection.

Impact

A malicious actor could execute arbitrary scripts, and the reporter suggests it is highly probable that this could lead to account takeover of applications under the domain, though this was not fully assessed.

What the attacker needed

Victim clicks a crafted link

The fix

The outdated Swagger UI should be updated to a patched version.

How it was found

  1. Visit the Swagger UI page with a crafted configUrl parameter pointing to an external JSON file.
  2. Observe the alert pop-up demonstrating script execution.

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 runs code an attacker sneaks in, usually through a link. Here, a page that displays API documentation (Swagger) took a setting from the web address and used it in a way that let a malicious link run script. If a victim clicks the crafted link, the script runs as if it came from the real site.

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 nhx1

View all

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