mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: preserve document.url label out of .href property
This commit is contained in:
@@ -65,6 +65,11 @@ module ClientSideUrlRedirect {
|
||||
queryAccess(pred, succ) and
|
||||
f instanceof DocumentUrl and
|
||||
g = DataFlow::FlowLabel::taint()
|
||||
or
|
||||
// preserve document.url label in step from `location` to `location.href`
|
||||
f instanceof DocumentUrl and
|
||||
g instanceof DocumentUrl and
|
||||
succ.(DataFlow::PropRead).accesses(pred, "href")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user