J-Security Center

Latest Attack Object Updates
  • IDP Daily Update #1545
    posted: 11/19/09
  • NSM Daily Update #1545
    posted: 11/19/09
  • Deep Inspection 5.3r5 and above, 5.4, 6.0 #1545
    posted: 11/19/09
  • Deep Inspection 5.1 and 5.2 #1435
    posted: 11/19/09
  • Deep Inspection 5.0, 5.3r4 and below #1132
    posted: 03/28/08 (04/01/08 for 5.0)
  • Antivirus
    posted: 11/19/09

Title: PHP/FI Buffer Overflow Vulnerability

Severity: HIGH

Description:

The PHP/FI package which was originally written by Rasmus Lerdorf is an is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly.

Since it's inception PHP/FI has been turned over to another development team and is now known only as PHP. Certain versions of PHP/FI had a buffer overflow which could be triggered by a remote user to gain access to the web server running PHP/FI as the UID of the http daemon.

This buffer overflow was in the function FixFilename() function in file.c, PHP attempted to pass strings whose length may be as long as 8 kilobytes into buffers as small as 128 bytes. This overwrote the stack, making it possible for an attacker to obtain shell access to the machine running the web server.

Affected Products:

  • PHP PHP/FI 1.0.0
  • PHP PHP/FI 2.0.0b10

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.