Skip to content
Memory corruption Disclosed report Intermediate

risk of having secure=false in a crossdomain.xml

The crossdomain.xml on api.imgur.com set the secure attribute to false on its allow-access-from entries, so a Flash client loaded over plain HTTP could read data from the HTTPS API. An attacker who can poison DNS or the hosts file could serve a malicious Flash file over HTTP and use it to read a victim's sensitive API data.

hacker00000000 Follow

Originally disclosed on HackerOne

  • Triaged in 8 days
  • Fixed in 31 days
  • Paid in 31 days
  • Disclosed after 3 months

api.imgur.com permits SWF files on a non-HTTPS server to load data from this HTTPS server. Setting the secure attribute to false could compromise the security offered by HTTPS. In particular, setting this attribute to false opens secure content to snooping and spoofing attacks.

The allow-access-from node has an optional attribute 'secure'. So say the crossdomain.xml on api.imgur.com has :

<allow-access-from domain="imgur.com" secure="false"/> <allow-access-from domain="*.imgur.com" secure="false"/> <allow-access-from domain="*.imgur-dev.com" secure="false"/>

If this is set to true (default), a flash client retrieved over HTTP cannot access data on the ideanetsetter.yahoo.com over HTTPS.

I can only think of one risk in setting secure to false: A user with a poisoned host file or DNS server might be diverted to a flash client on a fake http://subdomain.example.com. This flash client can now access sensitive data on api.imgur.com

Good Fix ,

The original report as published on HackerOne, by hacker00000000. 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 policy set secure="false", which lets Flash clients loaded over insecure HTTP read HTTPS-protected data.

Impact

A user whose DNS or hosts file is poisoned could be sent to a fake HTTP-hosted Flash client that then reads sensitive data from api.imgur.com; the report frames this as a possible risk rather than a demonstrated exploit.

What the attacker needed

Victim's DNS or hosts file is poisoned

The fix

The secure attribute should be set to true (its default) so that Flash clients retrieved over HTTP cannot access HTTPS data.

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 read data from this server. The 'secure' setting, when false, lets a Flash file that was downloaded over an unencrypted HTTP connection still read data from the encrypted HTTPS site. That matters because someone who can redirect a victim's traffic to their own server could then read the victim's private data through that Flash file.

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 hacker00000000

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.

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.