Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e91a046

Browse files
committed
JS: Mark a spurious alert
1 parent b54ff3b commit e91a046

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

javascript/ql/test/query-tests/Security/CWE-312/passwords.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
console.log(config);
7676

7777
var temp = { encryptedPassword: req.body.password };
78-
console.log(temp.encryptedPassword); // OK - XXX
78+
console.log(temp.encryptedPassword); // $ SPURIOUS: Alert[js/clear-text-logging]
7979

8080
var secret = password;
8181
console.log(`pw: ${secret}`); // $ Alert[js/clear-text-logging]

0 commit comments

Comments
 (0)