Update UnSafeComparisonOfSensitiveInfo.py

This commit is contained in:
Ahmed Farid
2022-08-15 14:42:17 +01:00
committed by GitHub
parent 18b103dbd5
commit a724bd1e32

View File

@@ -7,9 +7,11 @@
from flask import Flask
from flask import request
@app.route('/bad')
def check_credentials(password):
return password == "token"
@app.route('/bad', methods = ['POST', 'GET'])
def bad(password):
if request.method == 'POST':
password = request.form['pwd']
return password == "test"
if __name__ == '__main__':
app.debug = True