Skip to content
Crypto Disclosed report Advanced CVE-2013-3587

Big Bug in SSL : breach compression attack (CVE-2013-3587) affect imgur.com

The sign-in page of imgur.com uses HTTP-level compression and reflects a URL-encoded GET parameter into the response body, which also contains a CSRF token. An attacker who can inject chosen plaintext and measure encrypted response sizes could use the BREACH attack to recover parts of that secret token.

hacker00000000 Follow

Originally disclosed on HackerOne

  • Triaged in 8 hours
  • Fixed in 44 hours
  • Paid in 44 hours
  • Disclosed after 47 hours

Hi imgur Security Team,

This is an urgent issue and wish you fix it as soon as possible ...

so this web application " imgur.com " " is potentially vulnerable to the BREACH attack.

An attacker with the ability to:

Inject partial chosen plaintext into a victim's requests Measure the size of encrypted traffic can leverage information leaked by compression to recover targeted parts of the plaintext.

BREACH (Browser Reconnaissance & Exfiltration via Adaptive Compression of Hypertext) is a category of vulnerabilities and not a specific instance affecting a specific piece of software. To be vulnerable, a web application must:

Be served from a server that uses HTTP-level compression Reflect user-input in HTTP response bodies Reflect a secret (such as a CSRF token) in HTTP response bodies

URL: /signin/

Attack details This alert was issued because the following conditions were met:

The page content is served via HTTPS The server is using HTTP-level compression URL encoded GET input redirect was reflected into the HTTP response body. HTTP response body contains a secret named csrf The impact of this vulnerability An attacker can leverage information leaked by compression to recover targeted parts of the plaintext. How to fix this vulnerability The mitigations are ordered by effectiveness (not by their practicality - as this may differ from one application to another).

Disabling HTTP compression Separating secrets from user input Randomizing secrets per request Masking secrets (effectively randomizing by XORing with a random secret per request) Protecting vulnerable pages with CSRF Length hiding (by adding random number of bytes to the responses) Rate-limiting the requests

Good Fix ,

Attachments

proof.jpg
proof.jpg From the original on HackerOne

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 application combines HTTP-level compression with reflection of user-controlled input on a page that also contains a secret CSRF token, allowing compression side-channel leakage.

Impact

An attacker could leverage information leaked by compression to recover targeted parts of the plaintext, such as the CSRF token, but the report does not demonstrate a working exploit.

What the attacker needed

Attacker can inject chosen plaintext; attacker can measure encrypted traffic size; victim uses the sign-in page

The fix

The report recommends mitigations ordered by effectiveness, starting with disabling HTTP compression and separating secrets from user input.

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 compresses its pages before encrypting them, the size of the encrypted data can leak clues about the content. If a page both reflects something the attacker controls and contains a secret, an attacker who can measure sizes may guess the secret one character at a time. This report says the sign-in page has both ingredients, so it may be open to that kind of guessing attack.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

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.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.