Update java/ql/test/query-tests/security/CWE-798/semmle/tests/HardcodedCouchBaseCredentials.java

Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com>
This commit is contained in:
Mauro Baluda
2026-01-14 11:50:52 +01:00
committed by GitHub
parent 9efefa6120
commit 5cef0376a9

View File

@@ -32,7 +32,7 @@ public class HardcodedCouchBaseCredentials {
.password("password"); // $ HardcodedCredentialsSourceCall $ HardcodedCredentialsApiCall
PasswordAuthenticator.builder(
(Supplier<UsernameAndPassword>)
new UsernameAndPassword(
() -> new UsernameAndPassword(
"Administrator", // $ HardcodedCredentialsSourceCall $ MISSING: HardcodedCredentialsApiCall
"password")); // $ HardcodedCredentialsSourceCall $ MISSING: HardcodedCredentialsApiCall
PasswordAuthenticator.builder()