Ruby: Minor changes to InsecureDownload

This commit is contained in:
Harry Maclean
2022-04-27 18:04:21 +12:00
parent f35379bf8c
commit 992cc517a8
2 changed files with 4 additions and 4 deletions

View File

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

View File

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