IE-BestBank / BestBank-be

0 stars 0 forks source link

Fix code scanning alert - Flask app is run in debug mode #8

Open evaks1 opened 1 day ago

evaks1 commented 1 day ago

Tracking issue for:

evaks1 commented 23 hours ago

flask-cors vulnerable to log injection when the log level is set to debug 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. We should set to no debug before final deployment.