JS: remove cookie source; rely on persistent flow steps instead

This commit is contained in:
Asger F 2018-12-13 17:07:12 +00:00
Родитель c37d655fe8
Коммит 78334af354
1 изменённых файлов: 0 добавлений и 14 удалений

Просмотреть файл

@ -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"
}
}