
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-39174 is a configuration leak vulnerability discovered in Cachet, a widely adopted status page system written in PHP. Prior to version 2.5.1, authenticated users with basic privileges could leak the value of any configuration entry from the dotenv file, including sensitive information such as the application secret (APP_KEY) and various passwords for email and database services. The vulnerability was discovered in March 2021 and patched in August 2021 with the release of version 2.5.1 of the FiveAI fork (Sonar Blog, GitHub Advisory).
The vulnerability exists in the configuration management system of Cachet. The application uses Laravel's dotenv configuration files, which support nested variables assignment using the ${NAME} syntax. This feature allows attackers to reference another variable in an entry of the dotenv configuration file and display this entry in the interface, thereby revealing another variable's value. The vulnerability stems from insufficient validation in the UpdateConfigCommandHandler, which processes configuration changes (Sonar Blog).
The vulnerability allows attackers to exfiltrate sensitive configuration data, including SMTP server passwords, application encryption keys (APPKEY), and database credentials. This information disclosure could lead to further attacks, as leaking APPKEY could result in code execution if the session driver is set to cookie. Additionally, exposed database and mail server credentials could be used for unauthorized access to these services (Sonar Blog).
The vulnerability was patched in version 2.5.1 of the FiveAI fork of Cachet. The fix involved improving the UpdateConfigCommandHandler to prevent the use of nested variables in the dotenv configuration file. For unpatched systems, the recommended workaround is to restrict access to the administration dashboard to trusted source IP addresses only (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."