mirror of
https://github.com/github/codeql.git
synced 2026-05-10 17:29:26 +02:00
add simple query for detecting sensitive files downloaded over unsecure connection
This commit is contained in:
@@ -620,4 +620,17 @@ module ClientRequest {
|
||||
|
||||
override DataFlow::Node getADataNode() { none() }
|
||||
}
|
||||
|
||||
/**
|
||||
* A call to `nugget` that downloads one of more files to a destination determined by an options object given as the second argument.
|
||||
*/
|
||||
class Nugget extends ClientRequest::Range, DataFlow::CallNode {
|
||||
Nugget() { this = DataFlow::moduleImport("nugget").getACall() }
|
||||
|
||||
override DataFlow::Node getUrl() { result = getArgument(0) }
|
||||
|
||||
override DataFlow::Node getHost() { none() }
|
||||
|
||||
override DataFlow::Node getADataNode() { none() }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user