Bug 617578 (CVE-2010-1864, MOPS-2010-006)

Summary: CVE-2010-1864 php: addcslashes interruption vulnerability (MOPS-2010-006)
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: fedora, jorton
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=none,source=internet,reported=20100503,public=20100503
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-23 13:32:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
Reproducer from MOPS-2010-006 none

Description Tomas Hoger 2010-07-23 13:21:13 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2010-1864 to the following vulnerability:

The addcslashes function in PHP 5.2 through 5.2.13 and 5.3 through 5.3.2 allows context-dependent attackers to obtain sensitive information (memory contents) by causing a userspace interruption of an internal function, related to the call time pass by reference feature.


Comment 1 Tomas Hoger 2010-07-23 13:22:30 UTC
Created attachment 433953 [details]
Reproducer from MOPS-2010-006

Comment 2 Tomas Hoger 2010-07-23 13:26:02 UTC
Fixed upstream in Zend / zend_parse_parameters via:

Fix included in upstream version 5.3.3:

Comment 3 Tomas Hoger 2010-07-23 13:32:18 UTC
Interruption vulnerabilities allow untrusted script author to bypass restrictions such as safe_mode or open_basedir.  Due to the limitations of the implementation of these mechanisms, they can not be relied on as security features.  Therefore flaws bypass of there restrictions are not considered security sensitive.  For additional details, refer to bug #169857, comment #1.

*** This bug has been marked as a duplicate of bug 169857 ***

Comment 4 Tomas Hoger 2010-07-23 13:35:57 UTC

Red Hat does not consider interruption issues allowing safe_mode / open_basedir restriction bypass to be security sensitive.  For more details see https://bugzilla.redhat.com/show_bug.cgi?id=169857#c1 and http://www.php.net/security-note.php

Comment 5 Tomas Hoger 2010-07-26 13:54:53 UTC
Additional note on MOPS reproducers using __toString() method to interrupt internal PHP function is available in bug #617211, comment #7.