PHP flaw threatens photo uploads

Photo hosting services that allow users to publish their digital pictures online are being threatened by a vulnerability in the PHP scripting language that could be exploited by a malicious image file.

The flaw -- first discovered in February and patched by the PHP Group on Thursday -- could allow an attacker to crash a hosting company's server by uploading a unique image file that would consume 100 percent of the machine's processing power.

Ian Latter, senior security consultant at Internet security specialist Pure Hacking, said if a server running a vulnerable version of PHP was attacked, it would crash. However, the weakness does not threaten users of the service.

"This is a vulnerability based around CPU exhaustion. It enables an attacker to create a specially-crafted image that would consume the CPU resources of the server that [the image] is being uploaded to. It would potentially hang or crash that service," said Latter.

Security Web site iDEFENSE, which posted an advisory about the problem yesterday, said the vulnerability exists "due to insufficient validation of JPEG image file headers in one of the language’s functions".

According to the advisory, "the JPEG file header contains a file length field which may be manipulated to cause an infinite loop in the copying of file data to memory".

James Turner, security analyst at Frost & Sullivan, said that if the vulnerability is widely exploited, it is more likely to cause an inconvenience rather than pose as a serious threat.

"There is going to be a huge annoyance factor if these [photo] services go down. I can't see how the attackers could make money out of it," said Turner.

According to Internet monitoring site Netcraft, PHP is used by more than 18 million domains.

Advertisement

Talkback 0 comments


ZDNet's CIO Vision Series

Customs | Murray Harrison, CIO

Australian Customs CIO Murray Harrison dislikes SLAs and runs away if a vendor talks to him about innovation. In this interview, he also explains why getting excited about gadgets can be dangerous and talks about how Customs' outsourcing strategy has evolved.

Sponsored content

Power Centre - Content from our premier sponsors

Blogs

  • Munir Kotadia iPhone suckers test our patience
    So how many of you have bought a 3G iPhone? Do you feel like a sucker? If you don't, maybe you will once your first bill arrives.
  • Array Westpac bank: AVG's toughest competitor
    The next time you're buying antivirus software, don't go direct to Symantec or McAfee. Don't download free antivirus. And definitely don't see Harvey Norman. Ask your bank — they're quite literally giving the stuff away.
  • Array Will you manage in the exabyte era?
    Mammoth growth in storage volumes is a fact of life, but even so it's helpful to pause occasionally and try and work out whether our information strategies have fallen hopelessly out of step with the pace of technological growth and changes in costs.
  • More blogs »

Tags

Back to top

Featured