Skip to content

Commit 0e8f834

Browse files
committed
a little bit change on flask example
1 parent bbba906 commit 0e8f834

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

python/ql/src/experimental/Security/CWE-287-ConstantSecretKey/examples/example_Flask_safe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
@app.route('/')
1010
def CheckForSecretKeyValue():
11+
# debugging whether secret_key is secure or not
1112
return app.secret_key, session.get('logged_in')
1213

1314

python/ql/src/experimental/Security/CWE-287-ConstantSecretKey/examples/example_Flask_unsafe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
@app.route('/')
1717
def CheckForSecretKeyValue():
18+
# debugging whether secret_key is secure or not
1819
return app.secret_key, session.get('logged_in')
1920

2021

0 commit comments

Comments
 (0)