Skip to content

Commit bb7ba50

Browse files
Apply suggestions from code review
Co-authored-by: Erik Krogh Kristensen <[email protected]>
1 parent 4853b8a commit bb7ba50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/experimental/Security/CWE-347/JWTMissingSecretOrPublicKeyVerification.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @kind problem
55
* @problem.severity warning
66
* @precision high
7-
* @id js/jwt-missing-secret-or-public-key-verification
7+
* @id js/jwt-missing-verification
88
* @tags security
99
* external/cwe/cwe-347
1010
*/
@@ -15,5 +15,5 @@ import DataFlow
1515
from CallNode call
1616
where
1717
call = moduleMember("jsonwebtoken", "verify").getACall() and
18-
call.getArgument(1).analyze().getABooleanValue() = false
18+
unique(boolean b | b = call.getArgument(1).analyze().getABooleanValue()) = false
1919
select call

0 commit comments

Comments
 (0)