Is there a security vulnerability with Mautic? The local PHP file contains both my username and password and is located in a public HTML folder. You can find the Mautic root path here: app/config/local.php.
If so, what security procedures do you recommend, such as 2FA, plugin, etc.?"
You need to store it somewhere.
And that is not your username, but DB, and SMTP credentials.
The .htaccess file should make sure the unwanted files are not accessable.
@team this is getting confusing. As @joeyk pointed out, the password in app/config/local.php file is not your user password but a database password.
It’s safer to store it in a PHP file than any .env, yaml, json or other text format because if you run Mautic, the idea is that PHP files are executables and if someone access the file then it will execute rather than print out its content.
And as pointed out already, there is .htaccess that will secure it for Apache.
Then you are suggesting Firebase authentication. That is for user authentication, not database authentication.
Users have passwords stored in the database. The password is encrypted by standard algorithms, using salt and all that. They are as secure as they can be. If you want to use another provider for authentication then go ahead, but I fear that you will be confusing others when you discuss it on a forum topic called “Security vulnerability”. It’s unrelated.