mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Add Next.js router push as XSS sink
This commit is contained in:
@@ -231,6 +231,8 @@ module ClientSideUrlRedirect {
|
||||
NextRoutePushUrlSink() {
|
||||
this = NextJS::nextRouter().getAMemberCall(["push", "replace"]).getArgument(0)
|
||||
}
|
||||
|
||||
override predicate isXssSink() { any() }
|
||||
}
|
||||
|
||||
private class SinkFromModel extends Sink {
|
||||
|
||||
Reference in New Issue
Block a user