Skip to content

Commit 74f1344

Browse files
aydinnyunusowen-mc
andauthored
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
Co-authored-by: Owen Mansel-Chan <[email protected]>
1 parent fdefcd6 commit 74f1344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/ql/src/experimental/CWE-525/WebCacheDeception.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ from
1818
where
1919
httpHandleFuncCall.getTarget().hasQualifiedName("net/http", "HandleFunc") and
2020
httpHandleFuncCall.getNumArgument() > 1 and
21-
httpHandleFuncCall.getArgument(0).getType().toString() = "string" and
21+
httpHandleFuncCall.getArgument(0).getType().getUnderlyingType() = StringType and
2222
httpHandleFuncCall.getArgument(0).toString().matches("%/\"") and
2323
// Trace the second argument's data flow to its predecessor
2424
predecessor = httpHandleFuncCall.getArgument(1).getAPredecessor() and

0 commit comments

Comments
 (0)