Skip to content
Memory corruption Disclosed report Intermediate

Crossdomain.xml settings on api.imgur.com too open

The crossdomain.xml file on api.imgur.com was configured too permissively, allowing Adobe Flash (SWF) files from any domain to make HTTP requests to the API and read the responses. An attacker could host a malicious SWF file that reads a user's CSRF token and then performs authenticated actions on the user's behalf.

kiraak-boy Follow

Originally disclosed on HackerOne

  • Triaged in 7 days
  • Fixed in 41 days
  • Paid in 49 days
  • Disclosed after 2 months

Summary by the program

The crossdomain.xml file hosted at http://api.imgur.com/crossdomain.xml was too open. This allowed SWF files to make HTTP requests and see it's response. If this was not changed, then attacker.com can embed a SWF on attacker.com/example.html that makes an HTTP request to http://api.imgur.com/. The result page for http://api.imgur.com/ would include the CSRF token and the SWF file could make requests with the user's cookies.

The original report as published on HackerOne, by kiraak-boy. 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 crossdomain.xml file used a wildcard domain policy that permitted any origin to make cross-domain requests and read responses.

Impact

An attacker could read a victim's CSRF token and then make authenticated requests with the victim's cookies, potentially performing actions as the user.

What the attacker needed

Victim visits attacker-controlled page; victim has cookies for api.imgur.com

The fix

The crossdomain.xml file should be changed so it is not too open.

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.

A crossdomain.xml file tells Adobe Flash which other websites are allowed to talk to a server and read the reply. Here it allowed any website, so a malicious Flash file could read private data from the API. That data included a secret token used to protect against forged requests, so the attacker could then act as the logged-in user.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by kiraak-boy

View all

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

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.