PT-2024-20531 · Bref · Bref

Smaury

·

Published

2024-02-01

·

Updated

2024-02-09

·

CVE-2024-24753

CVSS v3.1

4.8

Medium

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Bref versions prior to 2.1.13
Description The issue arises when Bref is used in combination with an API Gateway with the v2 format, as it does not handle multiple values headers. If PHP generates a response with two headers having the same key but different values, only the latest one is kept. This can lower application security if an application relies on multiple headers with the same key being set for security reasons. For example, if an application sets multiple Content-Security-Policy headers, Bref would just reflect the latest one.
Recommendations For versions prior to 2.1.13, update to version 2.1.13 to resolve the issue. As a temporary workaround, consider concatenating all multiple value headers' values with a comma (,) as separator and return a single header with all the values to the API Gateway.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-24753
GHSA-99F9-GV72-FW9R

Affected Products

Bref