Bug 1374698 (CVE-2016-7125) - CVE-2016-7125 php: Session Data Injection Vulnerability
Summary: CVE-2016-7125 php: Session Data Injection Vulnerability
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2016-7125
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1374715
TreeView+ depends on / blocked
 
Reported: 2016-09-09 13:00 UTC by Martin Prpič
Modified: 2019-12-16 06:42 UTC (History)
14 users (show)

Fixed In Version: php 5.6.25, php 7.0.10
Clone Of:
Environment:
Last Closed: 2016-10-20 06:08:03 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2750 0 normal SHIPPED_LIVE Moderate: rh-php56 security, bug fix, and enhancement update 2016-11-15 16:40:02 UTC

Description Martin Prpič 2016-09-09 13:00:20 UTC
The following flaw was found in PHP:

If the session name is not allowed, then session php handler will ignore and skip the name, and continue to parsing. This means that if an attacker can control the session name, then he will be able to inject arbitrarily session data. The similar issue also exist in session php_binary handler.

Upstream bug:

https://bugs.php.net/bug.php?id=72681

Upstream patch:

https://github.com/php/php-src/commit/8763c6090d627d8bb0ee1d030c30e58f406be9ce?w=1

Comment 1 Huzaifa S. Sidhpurwala 2016-10-20 06:08:03 UTC
Analysis:

In order to exploit this, you need a MITM attacker to know the session name. Then the attacker will be able to hijack the session and control the data passing between the server and the client. The PHP script however needs to run special code in order for the attacker to pull this off.

Comment 2 errata-xmlrpc 2016-11-15 11:44:59 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS

Via RHSA-2016:2750 https://rhn.redhat.com/errata/RHSA-2016-2750.html


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