mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
JS: remove cookie source; rely on persistent flow steps instead
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user