Skip to content
Snippets Groups Projects
Commit 37bf8efe authored by Raul Barreras's avatar Raul Barreras
Browse files

code review: is the vuln gone?

parent 1c99af9e
Branches
No related tags found
No related merge requests found
......@@ -11,9 +11,10 @@ def index():
return render_template('index.html')
@app.route("/email-settings/opt-out")
@app.route("/email-settings/opt-out", methods=["GET"])
def email_opt_out():
email = request.values.get("email")
email = request.form.get("email", "user@example.com")
# Temporal fix to prevent SSTI. Fix ASAP!!!
output = Jinja2.from_string('You have opted out ' + email +
' from our service.' +
'<p>Go back to <a href="/">home</a>.</p>').render()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment