Get Database Credentials from within the themes file

All he needed to do is to put this PHP code in any template file and run it:

var_dump(DB_NAME, DB_USER, DB_PASSWORD, DB_HOST);

One line and it will print all the DB credentials.

As you can see – no vulnerabilities are needed.

All PHP code has access to these credentials. And it has to – otherwise it wouldn’t be able to access DB…

error code: 523