Skip to content
DoS Write-up Beginner

JUST CRASHED SYSTEM USING IMAGE AND GOT BOUNTY $ 500

A PNG image's header dimensions can be altered so a tiny file claims to be 64250 by 64250 pixels, causing software that trusts the header to allocate huge amounts of memory. The author claims this can crash or freeze image viewers and web services that process the file, acting as a denial-of-service.

medium.com

Published on medium.com

This is easy and impactful vulnerability that might be a cause of DOS attack. Crash target system and lot of things basically its working as ZIP Bombing.

Mr Horbio, on medium.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

Likely the image processing code trusts the width and height values in the file header and allocates memory based on them without validating the dimensions against the actual file size.

Impact

Some applications may crash or freeze and server-side services may time out or error, which could amount to a denial-of-service, though the text gives no measured results from a real target.

What the attacker needed

Ability to upload or open an image; target trusts image header dimensions

How it was found

  1. Create a small PNG image, for example 260 by 260 pixels.
  2. Open the file in a hex editor and locate the IHDR chunk near the start of the file.
  3. Overwrite the four-byte width and four-byte height values with much larger numbers.
  4. Save the modified file and open it in an image viewer or upload it to an image processing service.

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.

Every image file stores its width and height in a small header at the start. If a program reads those numbers and reserves memory for the full picture without checking them, a tiny file can make it try to reserve an enormous amount of memory. That can freeze or crash the program, which is called a denial-of-service attack.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.