Skip to content
XSS Disclosed report Beginner

XSS Vulnerability

The report claims a cross-site scripting vulnerability exists when uploading a file whose name contains HTML markup. An attacker could potentially execute script in a victim's browser by uploading a specially named image.

robd4k Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 35 days
  • Paid in 54 days
  • Disclosed after 2 months

Hi,

I just want to report a XSS Vulnerability

POC:

Fire up LIVEHTTPHEADERS and capture the request

  • I upload 2015-08-24_162829.png as my file name

-After capturing the request, rename you image into '"><img src=x onerror=alert(1)> as payload

Attachments

udem1.png
udem1.png From the original on HackerOne
udem2.png
udem2.png
udem3.png
udem3.png

The original report as published on HackerOne, by robd4k. 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

What the attacker needed

Ability to upload a file

How it was found

  1. Start a request-capturing proxy and capture the upload request.
  2. Upload an image with a normal file name.
  3. Rename the image file so its name contains HTML markup.
  4. Rename the image file to contain HTML markup.

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) is when a website displays user-supplied text as if it were part of the page's code, so a malicious name can run a small script in someone else's browser. Here the reporter says that renaming an uploaded image to include HTML tags causes the site to treat the name as code. The report is very short and does not show the site actually running the script.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Udemy

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.