Skip to content

Commit aa7a997

Browse files
authored
Merge pull request #2248 from RasmusWL/python-sensitive-data-fewer-fp
Python: Limit what functions we treat as returning sensitive data
2 parents ca22ec6 + 6593477 commit aa7a997

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

python/ql/src/semmle/python/security/SensitiveData.qll

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,6 @@ module SensitiveData {
112112

113113
private SensitiveData fromFunction(Value func) {
114114
result = HeuristicNames::getSensitiveDataForName(func.getName())
115-
or
116-
// This is particularly to pick up methods with an argument like "password", which
117-
// may indicate a lookup.
118-
exists(string name | name = func.(PythonFunctionValue).getScope().getAnArg().asName().getId() |
119-
result = HeuristicNames::getSensitiveDataForName(name)
120-
)
121115
}
122116

123117
abstract class Source extends TaintSource {

0 commit comments

Comments
 (0)