mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Update UnSafeComparisonOfSensitiveInfo.py
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user