mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
add navigation.navigate as an XSS / URL sink
This commit is contained in:
@@ -106,6 +106,10 @@ module ClientSideUrlRedirect {
|
||||
) and
|
||||
xss = true
|
||||
or
|
||||
// A call to `navigation.navigate`
|
||||
this = DataFlow::globalVarRef("navigation").getAMethodCall("navigate").getArgument(0) and
|
||||
xss = true
|
||||
or
|
||||
// An assignment to `location`
|
||||
exists(Assignment assgn | isLocation(assgn.getTarget()) and astNode = assgn.getRhs()) and
|
||||
xss = true
|
||||
|
||||
Reference in New Issue
Block a user