Create UnSafeComparisonOfSensitiveInfo.py

This commit is contained in:
Ahmed Farid
2022-08-05 12:47:58 +01:00
committed by GitHub
parent dd61383469
commit c7828bf9b4

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Desc timing attack against sensitive info
"""
from flask import Flask
from flask import request
@app.route('/bad')
def check_credentials(password):
return password == "token"
if __name__ == '__main__':
app.debug = True
app.run()