Bug 382411 - (CVE-2007-5898) CVE-2007-5898 php htmlentities/htmlspecialchars multibyte sequences
CVE-2007-5898 php htmlentities/htmlspecialchars multibyte sequences
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
public=20071108,source=internet,repor...
: Reopened, Security
Depends On: 445917 445919 445920 445921 445922 445923 445924 445925
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-14 08:57 EST by Mark J. Cox (Product Security)
Modified: 2010-12-22 18:18 EST (History)
2 users (show)

See Also:
Fixed In Version: 5.2.6-2.fc8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-12-22 18:18:24 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mark J. Cox (Product Security) 2007-11-14 08:57:42 EST
http://www.php.net/ChangeLog-5.php#5.2.5

FIX: Fixed htmlentities/htmlspecialchars not to accept partial multibyte
sequences (CVE-2007-5898, Reported by Rasmus Lerdorf)

COMMENT: If a PHP page uses the htmlentities() and htmlspecialchars()
to display untrusted script input in HTML element attributes, a
cross-site-scripting attack may be possible, depending on the browser
used.  [Of Firefox 1.5, 2.0, MSIE 6, 7, only MSIE6 seems vulnerable]

AFFECTS: all
Comment 2 Mark J. Cox (Product Security) 2007-12-11 03:37:31 EST
Unfortunately the CVSSv2 score provided by nvt.nist.gov has been incorrectly coded.

They gave CVSS v2 Base score: 10.0  (High) (AV:N/AC:L/Au:N/C:C/I:C/A:C)

But in fact it should be

CVSS v2 Base score: 4.3 (Medium) (AV:N/AC:M/Au:N/C:N/I:P/A:N)

We've sent a correction to NVD.
Comment 6 Fedora Update System 2008-06-14 00:20:02 EDT
php-5.2.6-2.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update php'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-3864
Comment 7 Fedora Update System 2008-06-20 15:08:24 EDT
php-5.2.6-2.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 8 Vincent Danen 2010-12-22 18:18:24 EST
This was addressed via:

Red Hat Application Stack v2 for Enterprise Linux (v.5) RHSA-2008:0505)
Red Hat Enterprise Linux version 3 (RHSA-2008:0544)
Red Hat Enterprise Linux version 5 (RHSA-2008:0544)
Red Hat Enterprise Linux version 4 (RHSA-2008:0545)
Red Hat Enterprise Linux version 2.1 (RHSA-2008:0546)
Red Hat Application Stack v1 for Enterprise Linux AS (v.4) (RHSA-2008:0582)

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