Skip to content
DoS Disclosed report Intermediate CVE-2018-5711

Potential infinite loop in gdImageCreateFromGifCtx!

A crafted GIF image can cause an infinite loop in the GD image library's GIF parsing function, exhausting server resources. Any PHP application that processes user-uploaded GIFs with GD is affected.

Orange Tsai .8361) Follow

Originally disclosed on HackerOne

Bounty$500 High View original
  • Fixed in 22 days
  • Paid in 22 days
  • Disclosed after 22 months

Description


It is easy to trigger in web application if the web use GD as its image library. For example, It can be triggered if a website resize the user-uploaded GIF, and ALL PHP version are affected!  

Original bug report


 

Note


  • CVE-2018-5711 assigned

  Thanks :)

Impact

A malicious GIF can trigger an infinite loop and lead to exhausted the server resource!

The original report as published on HackerOne, by orange. 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

What the attacker needed

Ability to upload a GIF; server uses GD to process images

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.

A specially made GIF can make the library get stuck in an endless loop, using up the server's resources.

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.

More by Orange Tsai .8361)

View all

22 more disclosed reports, best first.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

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.