Skip to content
XSS Disclosed report Beginner

Stored Xss Vulnerability on ████████

A stored cross-site scripting vulnerability existed in a blog post editor, where an attacker could upload an SVG or HTML file containing script and have it execute when previewed or accessed. An attacker could run arbitrary JavaScript in the context of a victim's session.

ali Follow

Originally disclosed on HackerOne

  • Triaged in 10 hours
  • Fixed in 44 days
  • Disclosed after 22 months

Summary: A Xss vulnerability using svg file & html file.

Step-by-step Reproduction Instructions

  1. Go to https://██████████/SitePages/Register.aspx and register.
  2. Go to https://██████████/Profiles/My/#Your Username#/Blog/default.aspx and click Create a Post button.
  3. Click Body textarea and click Insert button.
  4. Click Upload File button and choose file (mygf.html or evilsvgfile.svg)
  5. Click Ok button and wait.
  6. Click Preview button and you will see xss alert.

PoC:

  1. Go to https://████████/_login/default.aspx?ReturnUrl=%2f_layouts%2f15%2fauthenticate.aspx%3fsource%3d%2fConference&source=/Conference and login with this username and password:

username: ███████ password: ███████

  1. Go to https://██████/Profiles/My/alobaloss/Blog/Lists/Photos/evilsvgfile.svg

So, you can see xss alert.

Impact

Classic Stored Xss

The original report as published on HackerOne, by ali. 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 allowed uploading SVG and HTML files without sanitising their content, and then served them in a way that executed embedded scripts.

Impact

An attacker could execute JavaScript in a victim's browser via the stored XSS.

What the attacker needed

A free account; victim views the uploaded file or preview

How it was found

  1. Register on the site.
  2. Go to your blog and click Create a Post.
  3. In the Body editor, click Insert.
  4. Upload an HTML or SVG file.
  5. Click OK and wait.
  6. Click Preview to trigger the script.

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 is when a website lets someone sneak in their own code, which then runs in other people's browsers. Here, the blog editor allowed uploading a file containing a script, and when the file was previewed or opened, the script ran.

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 ali

View all

9 more disclosed reports, 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.