Added escape as UriEncodingSanitizer

This commit is contained in:
Napalys
2025-03-14 14:53:21 +01:00
parent 37e02e4261
commit 4a691b778b
4 changed files with 3 additions and 25 deletions

View File

@@ -53,7 +53,7 @@ module Shared {
class UriEncodingSanitizer extends Sanitizer, DataFlow::CallNode {
UriEncodingSanitizer() {
exists(string name | this = DataFlow::globalVarRef(name).getACall() |
name = "encodeURI" or name = "encodeURIComponent"
name in ["encodeURI", "encodeURIComponent", "escape"]
)
}
}