Lucene search

K
githubGitHub Advisory DatabaseGHSA-H7VF-5WRV-9FHV
HistoryFeb 01, 2023 - 6:48 p.m.

Symfony storing cookie headers in HttpCache

2023-02-0118:48:09
CWE-285
GitHub Advisory Database
github.com
14
symfony
http cache
vulnerability
patch
cookie headers
httpstore

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

EPSS

0.002

Percentile

55.8%

Description

The Symfony HTTP cache system acts as a reverse proxy: it caches HTTP responses (including headers) and returns them to clients.

In a recent AbstractSessionListener change, the response might now contain a Set-Cookie header. If the Symfony HTTP cache system is enabled, this header might be stored and returned to some other clients. An attacker can use this vulnerability to retrieve the victim’s session.

Resolution

The HttpStore constructor now takes a parameter containing a list of private headers that are removed from the HTTP response headers.
The default value for this parameter is Set-Cookie, but it can be overridden or extended by the application.

The patch for this issue is available here for branch 4.4.

Credits

We would like to thank Soner Sayakci for reporting the issue and Nicolas Grekas for fixing it.

Affected configurations

Vulners
Node
symfonysymfonyRange<6.2.6
OR
symfonysymfonyRange<6.1.12
OR
symfonysymfonyRange<6.0.20
OR
symfonysymfonyRange<5.4.20
OR
symfonysymfonyRange2.0.0
OR
symfonysymfonyRange<4.4.50
OR
symfonyhttp_kernelRange<6.2.6
OR
symfonyhttp_kernelRange<6.1.12
OR
symfonyhttp_kernelRange<6.0.20
OR
symfonyhttp_kernelRange<5.4.20
OR
symfonyhttp_kernelRange2.0.0
OR
symfonyhttp_kernelRange<4.4.50

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

EPSS

0.002

Percentile

55.8%