Skip to content
XSS Disclosed report Beginner

RXSS - http://macademy.mtnonline.com

A page on the site reflected user input into its HTML without escaping it, so a crafted link could run attacker-supplied JavaScript in a victim's browser. An attacker could use this to act as the victim, read or change what the victim can see and do, and interact with other users as the victim.

Khaled Mohamed Follow

Originally disclosed on HackerOne

  • Triaged in 4 months
  • Fixed in 9 months
  • Disclosed after 10 months

The page located at http://macademy.mtnonline.com suffers from a Cross-site Scripting (XSS) vulnerability. XSS is a vulnerability that occurs when user input is unsafely encorporated into the HTML markup inside of a webpage. When not properly escaped an attacker can inject malicious JavaScript that, once evaluated, can be used to hijack authenticated sessions and rewrite the vulnerable page's layout and functionality. The following report contains information on an XSS payload that has fired on http://macademy.mtnonline.com, it can be used to reproduce and remediate the vulnerability.

Steps To Reproduce Go to Those Links. http://macademy.mtnonline.com/learner/ContactUs.aspx/(A('onerror='alert%60xElkomy%60'xelkomy))/Signin.aspx

Browsers I test them on Firefox and Google Chrome.

Fix:- Filter input on arrival Encode data on output Use appropriate response headers Content Security Policy.

Regards, xElkomy

Impact

View any information that the user is able to view. Modify any information that the user is able to modify. Initiate interactions with other application users, including malicious attacks, that will appear to originate from the initial victim user. || And I can used this for 1-Ad-Jacking 2-Session Hijacking 3-Bypassing CSRF protection 4-Crypto Mining ::::)))

The original report as published on HackerOne, by 0xelkomy. 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 reflected part of the URL path into the page markup without escaping or encoding it.

Impact

An attacker could view or modify anything the victim can, and could act towards other users as the victim, though the report only shows the script firing in Firefox and Chrome.

What the attacker needed

Victim clicks a crafted link

The fix

The site should filter input on arrival, encode data on output, set appropriate response headers and use a Content Security Policy.

How it was found

  1. Open the crafted link in a browser.
  2. The page reflects the injected input and the script runs.

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) happens when a website puts something a visitor typed or clicked straight into the page without cleaning it first. Here the site took part of the web address and placed it into the page, so a link could carry a small script that the browser then runs. That script runs as if the site itself wrote it, which means it can do anything the logged-in user could do.

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 Khaled Mohamed

View all

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