MTN Group · Report #1210921
Reflected XSS at dailydeals.mtn.co.za
How it was found
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:
- visite the https://dailydeals.mtn.co.za
- click on Categories, Then click on any items on it, now you get the
category_idparameter on the URL. - add this payload
3mh8r%3cimg%20src%3da%20onerror%3dalert(1)%3eas a value tocategory_idparameter you will get popup with vaule1as the POC image {F1317658}
one link POC:
Recommendation:
Your script should filter metacharacters from user input.
Impact
attacker convinces a victim to visit a URL & steal users cookies