mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
JWT Missing Secret Or Public Key Verification
Add an experimental CodeQL query.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @name JWT Missing Secret Or Public Key Verification
|
||||
* @description The software does not verify the JWT token with a cryptographic secret or public key.
|
||||
* @kind problem
|
||||
* @problem.severity warning
|
||||
* @precision high
|
||||
* @id js/jwt-missing-secret-or-public-key-verification
|
||||
* @tags security
|
||||
* external/cwe/cwe-347
|
||||
*/
|
||||
|
||||
import javascript
|
||||
import DataFlow
|
||||
|
||||
from CallNode call
|
||||
where
|
||||
call = moduleMember("jsonwebtoken", "verify").getACall() and
|
||||
call.getArgument(1).analyze().getABooleanValue() = false
|
||||
select call
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user