We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed314b1 commit 96048f9Copy full SHA for 96048f9
python/ql/src/Security/CWE-798/HardcodedCredentials.ql
@@ -81,7 +81,10 @@ class HardcodedValueSource extends DataFlow::Node {
81
82
class CredentialSink extends DataFlow::Node {
83
CredentialSink() {
84
- this = ModelOutput::getASinkNode("credentials-hardcoded").asSink()
+ exists(string s | s.matches("credentials-%") |
85
+ // Actual sink-type will be things like `credentials-password` or `credentials-username`
86
+ this = ModelOutput::getASinkNode(s).asSink()
87
+ )
88
or
89
exists(string name |
90
name.regexpMatch(getACredentialRegex()) and
0 commit comments