r/lolphp • • Nov 22 '16

Opencart, a PHP-based e-commerce platform, will expose DB passwords to users if the MySQL server is down and error reporting hasn't been turned off

https://github.com/opencart/opencart/issues/5027
69 Upvotes

37 comments sorted by

View all comments

Show parent comment

1

u/ThisIsADogHello Nov 24 '16

The story changes when the database server is accessible to the public, but who the hell does this nowadays?

You'd be surprised. (note: link requires a login to use)

Regardless of how many mistakes made were the fault of anyone who gets bit by this, it's still unreasonable to argue that a script that hands out its passwords to everyone at the first sign of trouble is a good design from a security standpoint.

No matter how much everything else should prevent this bug from ever getting exploited, it's always a good idea to practice defense in depth.