Bug 1885738 (CVE-2020-7070) - CVE-2020-7070 php: URL decoding of cookie names can lead to different interpretation of cookies between browser and server
Summary: CVE-2020-7070 php: URL decoding of cookie names can lead to different interpr...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2020-7070
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1885741 1890719 1890720 1890721 1890722 1890723 1977767
Blocks: 1885753
TreeView+ depends on / blocked
 
Reported: 2020-10-06 20:20 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-11-09 17:45 UTC (History)
8 users (show)

Fixed In Version: php 7.4.11, php 7.3.23, php 7.2.34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-03 13:07:02 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:2992 0 None None None 2021-08-03 09:15:54 UTC
Red Hat Product Errata RHSA-2021:4213 0 None None None 2021-11-09 17:45:18 UTC

Description Guilherme de Almeida Suckevicz 2020-10-06 20:20:12 UTC
In PHP versions 7.2.x below 7.2.34, 7.3.x below 7.3.23 and 7.4.x below 7.4.11, when PHP is processing incoming HTTP cookie values, the cookie names are url-decoded. This may lead to cookies with prefixes like __Host confused with cookies that decode to such prefix, thus leading to an attacker being able to forge cookie which is supposed to be secure. See also CVE-2020-8184 for more information.

Reference:
https://bugs.php.net/bug.php?id=79699

Comment 1 Guilherme de Almeida Suckevicz 2020-10-06 20:20:41 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1885741]

Comment 2 Remi Collet 2020-10-07 05:18:42 UTC
Notice: this fix introduce a behavior change, as cookie names are no more decoded, which may break application relying on this (wrong) behavior

Comment 4 Marco Benatto 2020-10-22 19:31:28 UTC
Upstream commit for this issue:
https://git.php.net/?p=php-src.git;a=commit;h=6559fe912661ca5ce5f0eeeb591d928451428ed0

Comment 6 errata-xmlrpc 2021-08-03 09:15:51 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS

Via RHSA-2021:2992 https://access.redhat.com/errata/RHSA-2021:2992

Comment 7 Product Security DevOps Team 2021-08-03 13:07:02 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-7070

Comment 8 errata-xmlrpc 2021-11-09 17:45:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4213 https://access.redhat.com/errata/RHSA-2021:4213


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