We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de63394 commit 179c26dCopy full SHA for 179c26d
javascript/ql/src/Security/CWE-347/MissingJWTKeyVerification.ql
@@ -15,6 +15,6 @@ import semmle.javascript.RestrictedLocations
15
from DataFlow::CallNode call
16
where
17
call = DataFlow::moduleMember("jsonwebtoken", "verify").getACall() and
18
- unique(boolean b | b = call.getArgument(1).analyze().getABooleanValue()) = false
19
-select call.asExpr().(FirstLineOf),
20
- "does not verify the JWT payload with a cryptographic secret or public key."
+ call.getArgument(1).analyze().getTheBooleanValue() = false
+select call.getArgument(1),
+ "This argument disables the integrity enforcement of the token verification."
0 commit comments