Exploitation Summary
EIP tracks 2 public exploits for CVE-2021-39174. PoCs published by n0kovo, hadrian3689.
AI-analyzed exploit summary This PoC exploits CVE-2021-39174, a configuration leak vulnerability in Cachet, by leveraging a template injection flaw in the mail settings to extract sensitive environment variables. It authenticates, manipulates mail settings, and exfiltrates values like APP_KEY and database credentials.
Description
Cachet is an open source status page system. Prior to version 2.5.1, authenticated users, regardless of their privileges (User or Admin), can leak the value of any configuration entry of the dotenv file, e.g. the application secret (`APP_KEY`) and various passwords (email, database, etc). This issue was addressed in version 2.5.1 by improving `UpdateConfigCommandHandler` and preventing the use of nested variables in the resulting dotenv configuration file. As a workaround, only allow trusted source IP addresses to access to the administration dashboard.
Exploits (2)
This PoC exploits CVE-2021-39174, a configuration leak vulnerability in Cachet, by leveraging a template injection flaw in the mail settings to extract sensitive environment variables. It authenticates, manipulates mail settings, and exfiltrates values like APP_KEY and database credentials.
This repository contains a functional Python exploit for CVE-2021-39174, targeting Cachet 2.4.0-dev. The exploit demonstrates both information disclosure via Twig Server Side Template Injection (SSTI) and Remote Code Execution (RCE) when an API key is provided.
References (3)
Scores
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H