зеркало из https://github.com/github/codeql.git
JS: remove cookie source; rely on persistent flow steps instead
This commit is contained in:
Родитель
c37d655fe8
Коммит
78334af354
|
@ -16,17 +16,3 @@ abstract class RemoteFlowSource extends DataFlow::Node {
|
|||
*/
|
||||
predicate isUserControlledObject() { none() }
|
||||
}
|
||||
|
||||
/**
|
||||
* An access to `document.cookie`, viewed as a source of remote user input.
|
||||
*/
|
||||
private class DocumentCookieSource extends RemoteFlowSource, DataFlow::ValueNode {
|
||||
DocumentCookieSource() {
|
||||
isDocument(astNode.(PropAccess).getBase()) and
|
||||
astNode.(PropAccess).getPropertyName() = "cookie"
|
||||
}
|
||||
|
||||
override string getSourceType() {
|
||||
result = "document.cookie"
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче