mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com>
This commit is contained in:
@@ -19,7 +19,7 @@ where
|
||||
httpHandleFuncCall.getTarget().hasQualifiedName("net/http", "HandleFunc") and
|
||||
httpHandleFuncCall.getNumArgument() > 1 and
|
||||
httpHandleFuncCall.getArgument(0).getType().getUnderlyingType() = StringType and
|
||||
httpHandleFuncCall.getArgument(0).toString().matches("%/\"") and
|
||||
httpHandleFuncCall.getArgument(0).getStringValue().matches("%/\"") and
|
||||
// Trace the second argument's data flow to its predecessor
|
||||
predecessor = httpHandleFuncCall.getArgument(1).getAPredecessor() and
|
||||
// Find the corresponding expression for the predecessor
|
||||
|
||||
Reference in New Issue
Block a user