~ / search / GHSA-84pr-m4jr-85g5

GHSA-84pr-m4jr-85g5

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

Source: GitHub Advisory Database (reviewed) Moderate CVE-2024-1681

Packages

EcosystemPackageAffectedFixed in
PyPI flask-cors < 4.0.1 4.0.1

Details

As written in the advisory (Markdown source, shown as plain text).

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

External links from the advisory. They lead to third-party sites.