De-anonymization Attack: Cross Site Information Leakage
Two Imgur endpoints return different HTTP status codes depending on whether the visitor is logged in or owns a specific profile, allowing a malicious site to detect login state and deanonymise profile owners via script load/error events.
- Triaged in 3 days
- Fixed in 41 days
- Paid in 19 days
- Disclosed after 49 days
Dear Imgur Security Team,
We are researchers at the IMDEA Software Institute in Madrid, Spain. We have been working on analyzing Cross-Site Browser Leaks (xsleaks) and building a tool for finding instances of it on target web sites. Recently we tested imgur.com and discovered a flaw that can affect Imgur users. We would like to responsibly disclose it and support you to mitigate the issue. The details follow.
Attack Overview:
Events-Fired xsLeak: a cross-domain attack website, say attacker.org, could embed specific resources from imgur.com in a script Tag, and check if an error or load event is triggered in one state but not in the other. Based on which events are triggered for each vulnerable resource, the attacker can infer the victim state (e.g. logged in vs logged out, or owner of a specific profile). This happens because the leaky endpoint return a 2xx HTTP response in one state but a 4xx in the other.
In particular, we have found 2 vulnerable (leaky) endpoints:
- The first one can be used for login detection (onerror = logged out, onload = logged in):https://api.imgur.com/3/larynx/history?IMGURPLATFORM=web&IMGURUIDJAFO=9d77969d8b3a7a6ac6cb78943c96e48cd0bd74e02b29839f9f19aea827429db6&SESSIONCOUNT=3&client_id=546c25a59c58ad7
2. The second one can be used to track and deanonymize the owner of a Imgur profile across origins. For this, the attacker leverages the resource: https://<USERNAME>.imgur.com/all where <USERNAME> is the username of the victim to be fingerprinted (e.g., https://user1imdea.imgur.com/all). If the victim visiting the attack page is the owner of the <USERNAME> profile, the "onload" event will be triggered. Otherwise, the "onerror" event is fired.
How to reproduce the attack:
a. We have attached a PoC attack page. b. Acting as the victim, login to imgur.com from a browser and load the attached page in a different tab of the same browser.c. Specify the profile/home page url of format: https://<USERNAME>.imgur.com/all for the target victim in the input field, and press the submit button. c. After a couple of seconds, popups should appear saying whether you are logged at imgur and if you are the owner of the specified account.
Browser/OS tested:
We tested the PoC on windows 10 in: Chrome Version: 77.0.3865.120 (Official Build) (64-bit) and Firefox 67.0.3 (Official Build) (64-bit). The same attack should work on other browsers and OSes too, although we haven't verified it thoroughly!
Similarity with known attacks:
Similar attacks were reported in the past against Facebook (https://www.imperva.com/blog/facebook-privacy-bug/) and Twitter (https://hackerone.com/reports/329957) and the vendors have taken the necessary preventive measures.
For any further questions, we are available at your disposal.
Impact
Impact of the attack
The attack enables malicious web sites of the internet to uniquely determine if any of their visitors is logged at Imgur, and also to track and fingerprint Imgur users across origins who have shared particular images.
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 endpoints return different HTTP status codes (2xx vs 4xx) based on the victim's authentication or ownership state, which is observable cross-origin through script load/error events.
Impact
A malicious site could determine whether a visitor is logged in to Imgur and track or fingerprint Imgur users across origins who have shared particular images; the attack was tested only in Chrome and Firefox on Windows 10, though the authors expect it to work elsewhere.
What the attacker needed
Victim visits attacker's page; victim logged in to Imgur; victim owns the targeted profile (for deanonymisation)
How it was found
- Log in to imgur.com as the victim in a browser.
- Load the attacker's PoC page in another tab of the same browser.
- Enter the target profile URL in the input field and submit.
- After a few seconds, popups reveal whether the victim is logged in and owns the specified account.
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 a website loads a script from another site, the browser fires a 'load' event if it succeeds and an 'error' event if it fails. The researchers found that Imgur's servers respond with success or failure depending on whether you are logged in or own a certain profile, so an attacker's page can quietly check those events to learn private things about you.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.