Skip to content
XSS Disclosed report Intermediate

Stored XSS on imgur profile

A stored cross-site scripting vulnerability existed in Imgur's album creation feature, allowing an attacker to inject malicious script that executes when a victim visits the attacker's profile page. The attacker could steal cookies, passwords, or run arbitrary code in the victim's browser.

giddsec Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 5 days
  • Paid in 37 days
  • Disclosed after 38 days

Hello, I submitted a report on imgur, but the staff marked it as duplicate. #482841 I reviewed the report of the first submitted report. #381553 We are on the same situation and his case is already fixed because I tried visiting his site too which is https://12test.imgur.com/ and even redoing his steps to reproduce but no XSS is triggered. And I have a different bypass and my bypass succeed. I can still fire up XSS on the said webpage.

Sorry for double posting, but I think his case #381553 is already fixed and mine is different.

There are still bypasses exists in the imgur create album that can cause an Stored XSS. Try to visit my site: https://gidsumaya.imgur.com/ and XSS will trigger. F410962:

In my case, I bypassed the filtering using HTML entities for the alternation of <>, because I noticed that it's filtering the <>. ##Payload: ”/>&_lt;_script>alert(1)&_lt;/scr_ipt&gt”/> remove the underscores.

And I can still fire up XSS and anyone who visits the link, the XSS will trigger.

I acknowledge that there was another report, for the same issue but that I still have a way to bypass whatever fix they implemented.

Impact

XSS can use to steal cookies, password or to run arbitrary code on victim's browser

Attachments

poc.PNG
poc.PNG From the original on HackerOne

The original report as published on HackerOne, by giddsec. 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 input filter only blocked literal angle brackets but did not decode HTML entities before checking, allowing an attacker to bypass the filter and inject a script tag.

Impact

An attacker could steal cookies or passwords and run arbitrary code in the victim's browser when the victim visits the malicious profile page.

What the attacker needed

Attacker can create an album; victim visits attacker's profile page

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 create an album on Imgur, the site saves your input and shows it on your profile page. The site tried to block dangerous characters like < and >, but the attacker found a way around this by using HTML entities (special codes that represent those characters). This let them insert a script that runs in the browser of anyone who views the profile, which could steal login information or perform actions on their behalf.

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 giddsec

View all

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