Skip to content

Commit 75162bb

Browse files
MarkLee131owen-mc
andauthored
Update java/ql/test/query-tests/security/CWE-532/Test.java
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com>
1 parent f338ded commit 75162bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • java/ql/test/query-tests/security/CWE-532

java/ql/test/query-tests/security/CWE-532/Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void testHashSanitizer(String password, String authToken) {
2828
logger.info("hash: " + hashPassword(password)); // Safe - hashed
2929
logger.info("hash: " + sha256Digest(authToken)); // Safe - digested
3030
logger.info("enc: " + encryptValue(password)); // Safe - encrypted
31-
logger.info("pw: " + password); // $ Alert - not hashed
31+
logger.info("pw: " + password); // $ Alert // not hashed
3232
}
3333

3434
static String hashPassword(String input) { return input; }

0 commit comments

Comments
 (0)