Skip to content

flask-cors vulnerable to log injection when the log level is set to debug

Moderate severity GitHub Reviewed Published Apr 19, 2024 to the GitHub Advisory Database • Updated May 7, 2024

Package

pip flask-cors (pip)

Affected versions

<= 4.0.0

Patched versions

4.0.1

Description

corydolphin/flask-cors is vulnerable to log injection when the log level is set to debug. An attacker can inject fake log entries into the log file by sending a specially crafted GET request containing a CRLF sequence in the request path. This vulnerability allows attackers to corrupt log files, potentially covering tracks of other attacks, confusing log post-processing tools, and forging log entries. The issue is due to improper output neutralization for logs.

References

Published by the National Vulnerability Database Apr 19, 2024
Published to the GitHub Advisory Database Apr 19, 2024
Reviewed Apr 22, 2024
Last updated May 7, 2024

Severity

Moderate
5.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Weaknesses

CVE ID

CVE-2024-1681

GHSA ID

GHSA-84pr-m4jr-85g5

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.