Exploits for CVE-2015-2331 spotted in the Wild (Oct 02, 2015)

By

Integer overflow in the _zip_cdir_new function in zip_dirent.c in libzip, as used in the ZIP extension in PHP allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a ZIP archive that contains many entries, leading to a heap-based buffer overflow (CVE-2015-2331)

The Zip file consists of many records. One of the sections of Zip64 record is “total number of entries in the central directory on this disk”. When PHP is used to open a ZIP archive, the “total number of entries in the central directory on this disk” is used to allocate the size of heap buffer. A large number in it will cause the buffer to overflow.

CVE-2015-2331 attacks have been spotted in the wild.

The binary has malicious bytes in the [total number of entries in the central directory on this disk ] section of the zip.

This causes the buffer overflow which is used to drop exe on the infected system and opens up a winrar dialog box.

The exe also makes registry entry

Dell SonicWALL Threat Research Team has researched this vulnerability and released following signature to protect their customers.

  • IPS 10853 : PHP _zip_cdir_new Function Integer Overflow 1
  • IPS 10854 : PHP _zip_cdir_new Function Integer Overflow 2
Security News
The SonicWall Capture Labs Threat Research Team gathers, analyzes and vets cross-vector threat information from the SonicWall Capture Threat network, consisting of global devices and resources, including more than 1 million security sensors in nearly 200 countries and territories. The research team identifies, analyzes, and mitigates critical vulnerabilities and malware daily through in-depth research, which drives protection for all SonicWall customers. In addition to safeguarding networks globally, the research team supports the larger threat intelligence community by releasing weekly deep technical analyses of the most critical threats to small businesses, providing critical knowledge that defenders need to protect their networks.