Skip to content
XSS Disclosed report Beginner

STORED XSS in █████████/nlc/login.aspx via "edit" GET parameter through markdown editor [HtUS]

A hidden markdown editor on the login page could be revealed by adding an edit parameter to the URL, and content saved there was rendered for every visitor. An attacker could store a script payload that executed for anyone loading the login page.

shreky Follow

Originally disclosed on HackerOne

High 8.2 View original
  • Triaged in 38 days
  • Fixed in 46 days
  • Disclosed after 2 months

While looking through the source code of https://████████/nlc/login.aspx,I noticed this line (204): <a id="ctl00_ContentPlaceHolder1_CancelButton" class="hidden" href="login.aspx?edit=false"><i class="fa fa-times"></i> Cancel</a> ,which exposes the edit GET parameter. Upon accessing https://█████████/nlc/login.aspx?edit=true ,a hidden markdown editor will be revealed if you click around where the bottom text is,which allow us to input our own text,upload images,and pretty much anything you can do in markdown.
████████
As you can see to prove impact,I inputted an XSS payload(svg/onload=alert(1)>) and clicked on Save. After that whenever anyone accesses https://██████████/nlc/login.aspx ,the XSS payload will execute.
███████
The only way to remove the XSS payload is through accessing the markdown editor through https://█████████/nlc/login.aspx?edit=true ,removing it,and saving it.

Impact

Using this,an attacker is able to input and execute his own javascript code that will execute on everyone that accesses the login page every time,no matter what device they're using.They are not limited to Stored XSS though,using the hidden markdown editor they're able to upload images,deface the website and basically anything you can using markdown,however the most impactful scenario being executing arbitrary javascript code.

The original report as published on HackerOne, by shreky. 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 markdown editor's saved content was rendered on the login page without sanitising or encoding the HTML it contained.

Impact

Arbitrary JavaScript would execute for every visitor to the login page on any device, and the editor could also be used to upload images or deface the site.

What the attacker needed

Victim visits the login page; attacker can reach the hidden editor

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.

Some web pages show a hidden editing box when a special value is added to the address. This site saved whatever was typed into that box and showed it to every visitor without cleaning it, so a malicious script could be stored and run in other people's browsers. That is called stored cross-site scripting.

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 shreky

View all

1 more disclosed report, best first.

More from U.S. Dept Of Defense

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.