Skip to content

Commit 7a577dd

Browse files
committed
change Source to ConstantString, it seems that we have some duplicate results now, ConstantString is suggested as a better alternative for finding constant sources
1 parent 3f64cc8 commit 7a577dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/Security/CWE-321-HardCodedKey/jwtConstantKey.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class JWTDecodeConfig extends TaintTracking::Configuration {
1818
JWTDecodeConfig() { this = "JWTConfig" }
1919

2020
override predicate isSource(DataFlow::Node source) {
21-
source.asExpr() instanceof StringLiteral or source.asExpr() instanceof TemplateLiteral
21+
source.asExpr() instanceof ConstantString
2222
}
2323

2424
override predicate isSink(DataFlow::Node sink) {

0 commit comments

Comments
 (0)