Skip to content
XSS Disclosed report Beginner

Reflected XSS at dailydeals.mtn.co.za

The category_id parameter on dailydeals.mtn.co.za reflects user input without sanitisation, allowing an attacker to inject a script that executes in a victim's browser. An attacker could convince a victim to visit a crafted URL and steal the victim's cookies.

musab_alharany Follow

Originally disclosed on HackerOne

  • Triaged in 8 days
  • Fixed in 6 months
  • Disclosed after 7 months

Hello MTN Group:

I found reflected XSS vi category_id= parameter .

The server reads data directly from the HTTP request and reflects it back in the HTTP response. Reflected XSS exploits occur when an attacker causes a victim to supply dangerous content to a vulnerable web application, which is then reflected back to the victim and executed by the web browser. The most common mechanism for delivering malicious content is to include it as a parameter in a URL that is posted publicly or e-mailed directly to the victim. URLs constructed in this manner constitute the core of many phishing schemes, whereby an attacker convinces a victim to visit a URL that refers to a vulnerable site. After the site reflects the attacker's content back to the victim, the content is executed by the victim's browser.

Steps To Reproduce:

  1. visite the https://dailydeals.mtn.co.za
  2. click on Categories, Then click on any items on it, now you get the category_id parameter on the URL.
  3. add this payload 3mh8r%3cimg%20src%3da%20onerror%3dalert(1)%3e as a value to category_id parameter

you will get popup with vaule 1 as the POC image

XSS-POC.png
XSS-POC.png From the original on HackerOne

##one link POC: https://dailydeals.mtn.co.za/index.cfm?GO=DEALS&category_id=3mh8r%3Cimg%20src%3da%20onerror%3dalert(1)%3E

##Recommendation: Your script should filter metacharacters from user input.

Impact

attacker convinces a victim to visit a URL & steal users cookies

The original report as published on HackerOne, by musab_alharany. 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 application fails to sanitise or encode the category_id parameter before including it in the HTML response.

Impact

An attacker could convince a victim to visit a crafted URL and steal the victim's cookies.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Visit the dailydeals.mtn.co.za website.
  2. Click on Categories and then click on any item to get the category_id parameter in the URL.
  3. Add a crafted payload as the value of the category_id parameter to trigger an alert popup.

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.

When you type something into a website, the site often sends it back to your browser. If the site does not clean that input, an attacker can send a special link that makes your browser run harmful code. This is called reflected cross-site scripting (XSS), and it can let an attacker steal your login cookies.

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 musab_alharany

View all

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