Qt-Security-QSqlDatabaseSetPasswordΒΆ

Check QSqlDatabase::setPassword

Required inputs: IR

The method QSqlDatabase::setPassword() allows to set passwords for a database connections. This rule flags all calls to this method that rely on hardcoded credentials. Hardcoded credentials pose a security risk and should be avoided as they can be easily extracted from the binary. Using such hardcoded secrets is always an indicator that there is a fundamental security issue in the design of the application.

Possible Messages

Key

Text

Severity

Disabled

static_password

The method {} is called with a static password.

None

False

Options