Skip to content
XSS Disclosed report Beginner

cross site scripting reflected

A search field on the site reflected user input back into the page without proper handling, so a script payload appeared in the response. An attacker could use this to run script in a victim's browser and potentially steal session cookies.

alitoni224 Follow

Originally disclosed on HackerOne

  • Triaged in 3 months
  • Fixed in 11 months
  • Disclosed after 2.5 years

Summary:

[cross site scripting reflected]

Steps To Reproduce:

[at first hello [Found that via the script site payload is reflected '-alert(1)-' It was tested on Chrome and Firefox browsers as shown in the pictures below ]

  1. [Simply open the link https://mtn-investor.com/mtn-cmd/index.php ]
  2. [In the search button, enter the payload '-alert(1)-' ]
  3. [You will notice the reflection]

Supporting Material/References:

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

  • [https://owasp.org/www-community/attacks/xss/]

Impact

As in any vulnerability via scripted sites. The top line is that an attacker might steal cookies to abuse users' session.

  • phishing scam
  • Some important input data stolen

Attachments

PoC_Chroom.png
PoC_Chroom.png From the original on HackerOne
PoC_Firfox.png
PoC_Firfox.png

The original report as published on HackerOne, by alitoni224. 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 search parameter is written into the page without output encoding or input validation.

Impact

An attacker might steal cookies to hijack a user's session and could use the flaw for phishing or to capture input data; the report does not show a working cookie theft.

What the attacker needed

Victim enters the payload in the search field

How it was found

  1. Open the site's index page.
  2. Type the payload into the search field.
  3. Observe the payload reflected in the page.

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 cross-site scripting happens when a website echoes back whatever you typed without cleaning it first. If the typed text includes code that the browser runs, that code executes as if the site itself had written it. This lets an attacker make a victim's browser do things on the site, such as reading their logged-in session.

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 alitoni224

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.