J-Security Center

Title: suPHP 'suPHP_ConfigPath' Safe Mode Restriction-Bypass Vulnerability

Severity: MODERATE

Description:

suPHP is a module for the Apache webserver; it enforces additional restrictions on PHP scripts.

suPHP is prone to a 'safe_mode' restriction-bypass vulnerability. Specifically, attackers may use the 'suPHP_ConfigPath' variable in a '.htaccess' file to specify an arbitrary path for the 'php.ini' configuration file. By pointing to an attacker-controlled location, the attacker may substitute a malicious configuration file that relaxes expected restrictions on hosted scripts.

Successful exploits may allow attackers to bypass arbitrary PHP configuration options, including the 'safe_mode' setting.

This vulnerability would be an issue in shared-hosting configurations where multiple users can create and execute arbitrary PHP script code, with the 'safe_mode' restrictions assumed to isolate the users from each other.

Affected Products:

  • suPHP suPHP 0.3.0
  • suPHP suPHP 0.3.1
  • suPHP suPHP 0.5.0
  • suPHP suPHP 0.5.1
  • suPHP suPHP 0.5.2
  • suPHP suPHP 0.6.2
  • suPHP suPHP 0.6.3
  • suPHP suPHP 0.7.0

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.