mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Merge pull request #7452 from jorgectf/python_jwt
Python: Add Python_JWT to JWT security query
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
| pyjwt.py:22:12:22:16 | ControlFlowNode for token | is not verified with a cryptographic secret or public key. |
|
||||
| pyjwt.py:23:12:23:16 | ControlFlowNode for token | is not verified with a cryptographic secret or public key. |
|
||||
| python_jose.py:19:12:19:16 | ControlFlowNode for token | is not verified with a cryptographic secret or public key. |
|
||||
| python_jwt.py:14:28:14:32 | ControlFlowNode for token | is not verified with a cryptographic secret or public key. |
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
import python_jwt
|
||||
|
||||
# GOOD
|
||||
|
||||
|
||||
def good(token):
|
||||
python_jwt.process_jwt(token)
|
||||
python_jwt.verify_jwt(token, "key", "HS256")
|
||||
|
||||
# BAD
|
||||
|
||||
|
||||
def bad(token):
|
||||
python_jwt.process_jwt(token)
|
||||
Reference in New Issue
Block a user