Rapid7 Vulnerability & Exploit Database

PHP 'addslashes()' Restriction Bypass Weakness

Back to Search

PHP 'addslashes()' Restriction Bypass Weakness

Severity
5
CVSS
(AV:N/AC:L/Au:N/C:P/I:N/A:N)
Published
12/16/2004
Created
07/25/2018
Added
12/22/2004
Modified
08/22/2013

Description

The addslashes function in PHP 4.3.9 does not properly escape a NULL (/0) character, which may allow remote attackers to read arbitrary files in PHP applications that contain a directory traversal vulnerability in require or include statements, but are otherwise protected by the magic_quotes_gpc mechanism. NOTE: this issue was originally REJECTed by its CNA before publication, but that decision is in active dispute. This candidate may change significantly in the future as a result of further discussion.

Solution(s)

  • php-upgrade-4_3_10
  • php-upgrade-5_0_3

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;