-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create more_more_new.py #45
base: master
Are you sure you want to change the base?
Conversation
app = flask.Flask(__name__) | ||
|
||
# ruleid: active-debug-code-flask | ||
app.run(debug=True, use_debugger=False, use_reloader=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The application is running debug code or has debug mode enabled. This may expose sensitive information, like stack traces and environment variables, to attackers. It may also modify application behavior, potentially enabling attackers to bypass restrictions. To remediate this finding, ensure that the application's debug code and debug mode are disabled or removed from the production environment.
Ignore this finding from active-debug-code-flask.app = flask.Flask(__name__) | ||
|
||
# ruleid: active-debug-code-flask | ||
app.run(debug=True, use_debugger=False, use_reloader=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Detected Flask app with debug=True. Do not deploy to production with this flag enabled as it will leak sensitive information. Instead, consider using Flask configuration variables or setting 'debug' using system environment variables.
Ignore this finding from debug-enabled.app = flask.Flask(__name__) | ||
|
||
# ruleid: active-debug-code-flask | ||
app.run(debug=True, use_debugger=False, use_reloader=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
top-level app.run(...) is ignored by flask. Consider putting app.run(...) behind a guard, like inside a function
Ignore this finding from avoid_using_app_run_directly.
No description provided.