Hardcoded Database Credentials in Connection Strings
PHP application code contains database connection instantiation with plaintext credentials directly in new PDO(), mysqli_connect(), or pg_connect() calls. Developers write code like new PDO('mysql:host=localhost;dbname=app', 'root', 'password123') directly in controller files, model classes, or bootstrap scripts. These hardcoded credentials are visible to anyone with file system access, get cached in opcache, appear in error messages and stack traces, and remain in the codebase permanently unless explicitly removed from all copies.