mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
test both arguments of getConnection
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,7 @@ public class HardcodedMSSQLCredentials {
|
||||
public static void main(SQLServerDataSource ds) throws Exception {
|
||||
ds.setUser("Username"); // $ HardcodedCredentialsApiCall
|
||||
ds.setPassword("password"); // $ HardcodedCredentialsApiCall
|
||||
ds.getConnection("Username", "password"); // $ HardcodedCredentialsApiCall
|
||||
ds.getConnection("Username", null); // $ HardcodedCredentialsApiCall
|
||||
ds.getConnection(null, "password"); // $ HardcodedCredentialsApiCall
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user