Skip to content
Info disclosure Write-up Advanced

Yahoo Bleed 1

An ImageMagick RLE decoder could return an image built from uninitialised heap memory when the header flags skipped canvas initialisation and the RLE command list was empty. On Yahoo! Mail, a long-lived thumbnail process shared across users meant a tiny crafted attachment could leak fragments of other users' private image data back to the attacker.

scarybeastsecurity.blogspot.hk

Published on scarybeastsecurity.blogspot.hk

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

The author, on scarybeastsecurity.blogspot.hk

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 its pixel canvas with a non-zeroing allocator and only filled it with a background colour when certain header flags were set, so an image with those flags clear and no drawing commands left the canvas uninitialised.

Impact

An attacker could leak fragments of other users' private image attachments from the shared server process, though the leak was limited to freed heap chunks and JPEG compression lost some byte-level detail.

What the attacker needed

Ability to send mail with an image attachment; victim opens the image preview; shared long-lived thumbnail process

The fix

The upstream project added the missing initialisation and Yahoo! retired ImageMagick entirely; more generally, decoders should be restricted to a minimal set and image libraries should not be linked into long-lived shared processes.

How it was found

  1. Create a small RLE image whose header flags do not request canvas initialisation and whose command list is empty.
  2. Attach the file to an email and send it to yourself.
  3. Open the received mail and click the image to launch the preview pane.
  4. Observe the returned JPEG, which is built from uninitialised or freed memory.

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 asks the computer for memory to hold an image, that memory can still contain leftovers from whatever used it before. Normally the program fills it with a background colour first, but here a crafted image file told the program to skip that step, so the leftovers were treated as the picture and sent back to the user. Because the same server process handled images for many different people, those leftovers could include other people's pictures.

What is Info disclosure?

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

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.