Zero-day vulnerability found in a Wordpress image utility

The problem lies in TimThumb, a utility that can allow a malicious PHP file to be written to a Wordpress directory

Hackers are exploiting a problem with an image-resizing utility called TimThumb that is widely used in many themes for the blogging platform WordPress, although some fixes have been made to the latest version.

Mark Maunder, the CEO of Feedjit, discovered the problem when his own blog started loading ad content when previously his blog contained no ads. He blogged about the problem, tracing it to an issue with the "timthumb.php" library, which is used within the theme he purchased for his blog.

"Since it's already in the wild and I just got hacked by it, I figure it's OK to release the vulnerability to the general public," Maunder wrote.

TimThumb is "inherently insecure" because it writes files into a directory when it fetches an image and resizes it. But that directory is accessible to people visiting the website, Maunder wrote. An attacker can compromise the site by figuring out how to get TimThumb to grab a malicious PHP file and put it in the Wordpress directory. The code will be executed if an attacker then accesses the file using a Web browser.

Maunder explained how to disable TimThumb's ability to load images from external sites, but the most sure-fire way to stop the problem is to remove TimThumb or limit its access to other websites. Aside from that, users should update to the latest version of TimThumb.

The developer of TimThumb, Ben Gillbanks, was the first to comment on Maunder's post. "I can't apologize enough for this oversight in the code and hope nobody has anything too bad happen to their sites because of my error."

Gillbanks recommended that people use the latest version of TimThumb. "There have been a stack of tweaks that will make the script harder to abuse," Gillbanks wrote.

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection

Tags securityWordpressExploits / vulnerabilitiesdata protection

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Jeremy Kirk

IDG News Service
Show Comments

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Ben Ramsden

Sharp PN-40TC1 Huddle Board

Brainstorming, innovation, problem solving, and negotiation have all become much more productive and valuable if people can easily collaborate in real time with minimal friction.

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

George Khoury

Sharp PN-40TC1 Huddle Board

The biggest perks for me would be that it comes with easy to use and comprehensive programs that make the collaboration process a whole lot more intuitive and organic

David Coyle

Brother PocketJet PJ-773 A4 Portable Thermal Printer

I rate the printer as a 5 out of 5 stars as it has been able to fit seamlessly into my busy and mobile lifestyle.

Kurt Hegetschweiler

Brother PocketJet PJ-773 A4 Portable Thermal Printer

It’s perfect for mobile workers. Just take it out — it’s small enough to sit anywhere — turn it on, load a sheet of paper, and start printing.

Featured Content

Product Launch Showcase

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?