Skip to content
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 test2.py #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Create test2.py #1

wants to merge 1 commit into from

Conversation

tjwkim
Copy link
Collaborator

@tjwkim tjwkim commented Apr 15, 2024

No description provided.

return render_template_string(f'Hello, {name}!')

if __name__ == '__main__':
app.run(debug=True)

Check failure

Code scanning / CodeQL

Flask app is run in debug mode High test

A Flask app appears to be run in debug mode. This may allow an attacker to run arbitrary code through the debugger.
def hello():
name = request.args.get('name', 'World')
# Potential security risk: Reflected Cross-Site Scripting (XSS)
return render_template_string(f'Hello, {name}!')

Check warning

Code scanning / CodeQL

Reflected server-side cross-site scripting Medium test

Cross-site scripting vulnerability due to a
user-provided value
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant