Task: Secure PDO Database Connection to Prevent Password Leakage
Task: Secure PDO Database Connection to Prevent Password Leakage: a task in Terminal-Lego-15k (Harbor dataset). When a PDO database connection fails in PHP, the default behavior is to throw a PDOException whose message and stack trace contain the full constructor arguments — including the…
The task
When a PDO database connection fails in PHP, the default behavior is to throw a `PDOException` whose message and stack trace contain the full constructor arguments — **including the plaintext password**. If error display is enabled (or errors are logged unsafely), this constitutes a critical security vulnerability.…
Part of PrimeIntellect/Terminal-Lego-15k.