Skip to content
XSS Disclosed report Beginner

BUG XSS IN "ADD IMAGES"

An XSS flaw existed in the image upload feature: a filename containing HTML markup was not sanitised, so the payload executed when the uploaded image was clicked.

rioncool22 Follow

Originally disclosed on HackerOne

  • Disclosed after 2 months

I want to report bug XSS in "ADD IMAGES"

How To Produce it :

  1. Login to your Account
  2. Then Add Images With XSS Payload In filename (example : "><img src=x onerror=prompt(document.domain)>.png)
  3. Click on Image that you upload
  4. in the name of picture XSS will fired

Impact

https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)

Attachments

Screencast_05-17-2019_01_52_09_PM.webm From the original on HackerOne

The original report as published on HackerOne, by rioncool22. 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 uploaded filename was inserted into the page as HTML without encoding or sanitisation.

Impact

Script executes in the browser session of the user who uploaded and clicked the image; the report gives no further detail.

What the attacker needed

A user account; ability to upload an image; the uploader clicks the uploaded image

How it was found

  1. Log in to your account.
  2. Upload an image whose filename contains an XSS payload.
  3. Click on the uploaded image.
  4. The script executes in the picture's name.

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.

When you upload a picture, the site shows the file's name on the page. This report says the site put that name into the page without cleaning it, so a name containing HTML code would run as a script when someone clicked the picture.

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 rioncool22

View all

10 more disclosed reports, best first.

More from Imgur

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.