Skip to content
XSS Disclosed report Beginner

Reflected XSS in chatbot

A chatbot on the MTN Ghana website accepted an XSS payload in its number field. If an attacker can run script in a victim's browser, they can usually perform any action the user can.

roland_hack Follow

Originally disclosed on HackerOne

Medium 5.5 View original
  • Fixed in 6 days
  • Disclosed after 36 days

Reflected XSS attacks, also known as non-persistent attacks, occur when a malicious script is reflected off of a web application to the victim's browser. The script is activated through a link, which sends a request to a website with a vulnerability that enables execution of malicious scripts Proof of Concept 1)Go to the website https://mtn.com.gh/ 2)click on the MTN chat and where it asks to enter a number enter an xss payload 3)In my case I put the following payload:<button onClick="alert('xss')">Submit</button>

Impact

If an attacker can control a script running in the victim's browser, they can usually completely compromise that user. Among other things, the attacker can: Perform any action in the application that the user can perform.

Attachments

mtn_chatbot_xss_2.png
mtn_chatbot_xss_2.png From the original on HackerOne
recording-1665764779722.webm

The original report as published on HackerOne, by roland_hack. 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 chatbot reflected the user-supplied number input into the page without encoding or sanitising it.

Impact

An attacker could usually run script in a victim's browser and perform any action in the application that the user can perform.

What the attacker needed

Victim clicks a crafted link; victim's browser sends the request to the vulnerable site

How it was found

  1. Open the MTN Ghana website.
  2. Open the MTN chat widget.
  3. Enter an XSS payload in the number field.
  4. The payload is entered in the number field.

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.

Reflected XSS happens when a malicious script is reflected off a web application to the victim's browser, activated through a link. Here, an XSS payload was entered in the chatbot's number field.

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 roland_hack

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.