Skip to content

Commit 179c26d

Browse files
committed
apply suggestions from review
1 parent de63394 commit 179c26d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/ql/src/Security/CWE-347/MissingJWTKeyVerification.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ import semmle.javascript.RestrictedLocations
1515
from DataFlow::CallNode call
1616
where
1717
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."
18+
call.getArgument(1).analyze().getTheBooleanValue() = false
19+
select call.getArgument(1),
20+
"This argument disables the integrity enforcement of the token verification."

0 commit comments

Comments
 (0)