Skip to content

Commit 96646ab

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ where
1919
httpHandleFuncCall.getTarget().hasQualifiedName("net/http", "HandleFunc") and
2020
httpHandleFuncCall.getArgument(0).getType().getUnderlyingType() instanceof StringType and
2121
httpHandleFuncCall.getArgument(0).getStringValue().matches("%/") and
22+
httpHandleFuncCall.getArgument(1) = rn and
2223
rn.reads(f) and
2324
f.getParameter(0) = hw.getResponseWriter() and
2425
hw.getHeaderName() = "cache-control"

0 commit comments

Comments
 (0)