Bug 1885738 (CVE-2020-7070)

Summary: CVE-2020-7070 php: URL decoding of cookie names can lead to different interpretation of cookies between browser and server
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: fedora, hhorak, jlyle, jorton, nbhumkar, rcollet, rmetrich, surpatil
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-03 13:07:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1885741, 1890719, 1890720, 1890721, 1890722, 1890723, 1977767    
Bug Blocks: 1885753    

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