CVE-2011-4106
Description
TimThumb (timthumb.php) before 2.0 does not validate the entire source with the domain white list, which allows remote attackers to upload and execute arbitrary code via a URL containing a white-listed domain in the src parameter, then accessing it via a direct request to the file in the cache directory, as exploited in the wild in August 2011.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
Multiple WordPress Plugins - 'timthumb.php' File Upload
WordPress Plugin TimThumb 1.32 - Remote Code Execution
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| binarymoon | timthumb | {"endIncluding":"1.99"} | |
References
- http://code.google.com/p/timthumb/issues/detail?id=212
- http://markmaunder.com/2011/08/01/zero-day-vulnerability-in-many-wordpress-themes/
- http://markmaunder.com/2011/08/02/technical-details-and-scripts-of-the-wordpress-timthumb-php-hack/
- http://www.binarymoon.co.uk/2011/08/timthumb-2/
- http://www.exploit-db.com/exploits/17602
- http://www.exploit-db.com/exploits/17872
- http://www.openwall.com/lists/oss-security/2011/11/03/4
- http://code.google.com/p/timthumb/issues/detail?id=212
- http://markmaunder.com/2011/08/01/zero-day-vulnerability-in-many-wordpress-themes/
- http://markmaunder.com/2011/08/02/technical-details-and-scripts-of-the-wordpress-timthumb-php-hack/
- http://www.binarymoon.co.uk/2011/08/timthumb-2/
- http://www.exploit-db.com/exploits/17602
- http://www.exploit-db.com/exploits/17872
- http://www.openwall.com/lists/oss-security/2011/11/03/4
CWEs
CWE-20
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.