mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Update SafeComparisonOfHeaderValue.py
This commit is contained in:
@@ -10,7 +10,7 @@ from flask import request
|
||||
import hmac
|
||||
|
||||
@app.route('/good')
|
||||
def good1():
|
||||
def good():
|
||||
secret = request.headers.get('X-Auth-Token')
|
||||
if not hmac.compare_digest(secret, "token"):
|
||||
raise Exception('bad token')
|
||||
|
||||
Reference in New Issue
Block a user