mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Fix bug in UnsafeFieldReadSanitizer
This commit is contained in:
@@ -49,7 +49,7 @@ module SafeUrlFlow {
|
||||
UnsafeFieldReadSanitizer() {
|
||||
exists(DataFlow::FieldReadNode frn, string name |
|
||||
name = ["Fragment", "RawQuery", "User"] and
|
||||
frn.getField().hasQualifiedName("net/url", "URL")
|
||||
frn.getField().hasQualifiedName("net/url", "URL", name)
|
||||
|
|
||||
this = frn.getBase()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user