mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Ruby: Minor changes to InsecureDownload
This commit is contained in:
@@ -71,7 +71,7 @@ module InsecureDownload {
|
||||
}
|
||||
|
||||
/**
|
||||
* A HTTP or FTP url.
|
||||
* A HTTP or FTP URL.
|
||||
*/
|
||||
class InsecureUrl extends DataFlow::Node {
|
||||
string str;
|
||||
@@ -99,8 +99,8 @@ module InsecureDownload {
|
||||
* A string containing a sensitive file extension,
|
||||
* seen as a source for downloads of sensitive files through an insecure connection.
|
||||
*/
|
||||
class SensitiveFileUrl extends Source {
|
||||
SensitiveFileUrl() { hasUnsafeExtension(this.asExpr().getConstantValue().getString()) }
|
||||
class SensitiveFileName extends Source {
|
||||
SensitiveFileName() { hasUnsafeExtension(this.asExpr().getConstantValue().getString()) }
|
||||
|
||||
override DataFlow::FlowState getALabel() { result instanceof Label::Sensitive }
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Provides a taint tracking configuration for reasoning about download of sensitive file through insecure connection.
|
||||
* Provides a dataflow configuration for reasoning about the download of sensitive file through insecure connection.
|
||||
*
|
||||
* Note, for performance reasons: only import this file if
|
||||
* `InsecureDownload::Configuration` is needed, otherwise
|
||||
|
||||
Reference in New Issue
Block a user