Bug 601897 (CVE-2010-2190, MOPS-2010-047, MOPS-2010-048) - CVE-2010-2190 php: interruption vulnerabilities in trim and substr_replace (MOPS-2010-047, MOPS-2010-048)
Summary: CVE-2010-2190 php: interruption vulnerabilities in trim and substr_replace (M...
Status: CLOSED DUPLICATE of bug 169857
Alias: CVE-2010-2190, MOPS-2010-047, MOPS-2010-048
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=none,public=20100531,reported=...
Keywords: Security
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-08 20:25 UTC by Vincent Danen
Modified: 2015-08-19 08:48 UTC (History)
3 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2010-07-26 09:13:23 UTC


Attachments (Terms of Use)
MOPS-2010-047 reproducer (1.23 KB, text/plain)
2010-07-23 20:42 UTC, Tomas Hoger
no flags Details
MOPS-2010-048 reproducer (2.15 KB, text/plain)
2010-07-23 20:43 UTC, Tomas Hoger
no flags Details

Description Vincent Danen 2010-06-08 20:25:42 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2010-2190 to
the following vulnerability:

The (1) trim, (2) ltrim, (3) rtrim, and (4) substr_replace functions
in PHP 5.2 through 5.2.13 and 5.3 through 5.3.2 allow
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.

References:
http://www.php-security.org/2010/05/30/mops-2010-047-php-trimltrimrtrim-interruption-information-leak-vulnerability/index.html
http://www.php-security.org/2010/05/30/mops-2010-048-php-substr_replace-interruption-information-leak-vulnerability/index.html

Comment 1 Tomas Hoger 2010-07-23 15:08:06 UTC
Upstream patch added to Zend engine's zend_parse_parameters to address MOPS-2010-006 addcslashes interruption vulnerability (bug #617578, comment #2) addresses trim MOPS-2010-047 too:
  http://svn.php.net/viewvc?view=revision&revision=298945

This fix is included in 5.3.3.

Comment 2 Tomas Hoger 2010-07-23 20:42:53 UTC
Created attachment 434064 [details]
MOPS-2010-047 reproducer

Comment 3 Tomas Hoger 2010-07-23 20:43:48 UTC
Created attachment 434065 [details]
MOPS-2010-048 reproducer

Comment 4 Tomas Hoger 2010-07-23 20:49:02 UTC
Upstream commit for the substr_replace issue:
  http://svn.php.net/viewvc?view=revision&revision=299242

Fixed in 5.3.3 too:
  http://www.php.net/releases/5_3_3.php

Comment 5 Tomas Hoger 2010-07-26 09:13:23 UTC
Closing this, see bug #617578, comment #3 for more detailed explanation.

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

Comment 6 Tomas Hoger 2010-07-26 09:13:40 UTC
Statement:

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


Note You need to log in before you can comment on or make changes to this bug.