Skip to content
Info disclosure Write-up Advanced

*bleed continues: 18 byte file, $14k bounty, for leaking private Yahoo! Mail images

An uninitialized memory bug in ImageMagick's RLE decoder allowed an attacker to craft a tiny image file that, when processed by Yahoo! Mail's thumbnail service, returned server memory contents to the attacker. This leaked private images of other users because the service was long-lived and shared across users.

Chris Evans Follow

Published on scarybeastsecurity.blogspot.com

Presented here is Yahoobleed #1 (YB1), a way to slurp other users' private Yahoo! Mail image attachments from Yahoo servers.

Chris Evans, on scarybeastsecurity.blogspot.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The RLE decoder allocated a canvas with malloc (not zero-filled) and, when header flags indicated no background colour, skipped initialisation, then an empty command list left the canvas uninitialised.

Impact

An attacker could leak private Yahoo! Mail image attachments from other users because the thumbnail process was long-lived and shared across users; the leak was limited to freed heap chunks and JPEG compression caused some data loss.

What the attacker needed

Ability to send email with attachment to victim; victim opens image preview; Yahoo! Mail uses vulnerable ImageMagick

The fix

The vulnerability was fixed in ImageMagick by adding a line to initialise the canvas, and Yahoo! retired ImageMagick entirely.

How it was found

  1. Create an RLE image file with header flags that do not request canvas initialisation and an empty list of RLE commands.
  2. Attach the file to an email and send it to yourself.
  3. Click on the image in the received mail to launch the image preview pane.
  4. Observe the returned JPEG image containing uninitialized memory content.

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 write-up has not been written yet. The Original tab links to the source.

When a program creates a new block of memory, it sometimes contains leftover data from previous use. If that memory is used without being cleared, secrets from other users can be exposed. Here, a specially crafted image file caused the server to send back such leftover memory as part of an image.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Chris Evans

View all

11 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.