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.
Originally disclosed on HackerOne
- 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!
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.