Find JDBC connections with empty passwords

Proprietary

Finds DriverManager.getConnection(...) calls whose password argument is empty or whitespace-only, or whose URL embeds a password= query parameter with no value. Connecting to a database without a password grants unauthenticated access; the password should be sourced from configuration or a secret manager instead.

org.openrewrite.java.security.search.FindJdbcEmptyPassword
mod run . --recipe=org.openrewrite.java.security.search.FindJdbcEmptyPassword

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.