Skip to content
Info disclosure Write-up Advanced

Proving missing ASLR on dropbox.com and box.com over the web for a $343 bounty :D

An uninitialised-memory bug in ImageMagick's RLE decoder let the author leak server memory through generated thumbnails on Box and Dropbox. The leaked pointers showed the thumbnailing binary was not position independent, so ASLR was missing for that process.

Chris Evans Follow

Published on scarybeastsecurity.blogspot.com

The original lives on scarybeastsecurity.blogspot.com

We do not hold its text, 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

Likely the RLE decoder allocated a render canvas without initialising it, and the thumbnailing binary was built as a non-position-independent executable, so leaked pointers exposed a fixed load address.

Impact

The leak could reveal server memory contents and the missing ASLR makes a later memory-corruption attack more tractable, though the author saw no sign of other users' private data being exposed.

What the attacker needed

Ability to upload an image; preview/thumbnail generation enabled; no account needed beyond upload access

The fix

The text says both providers promptly reduced the number of ImageMagick decoders exposed, but does not state that ASLR itself was fixed.

How it was found

  1. Upload a small colour RLE image of 16x8 dimensions.
  2. Download the PNG preview generated for that file.
  3. Convert the PNG to raw bytes and inspect them for pointer-like values.
  4. Compare pointer values across repeated runs to work out which ASLR setup is in use.

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 reserves memory but forgets to clear it, leftover data from earlier can end up in its output. Here an image thumbnailer did that, so the preview image contained fragments of the server's memory. Those fragments included memory addresses, which revealed that a defence called ASLR (which randomises where code sits in memory) was not fully applied.

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.