GitHub Advisoryadvisory · Packagist

GHSA-4hjq-422q-4vpx Mautic vulnerable to secret data exfiltration via symfony parameters

MEDIUM Published 2021-04-06 Modified 2024-02-05 Official page ↗
Aliases
CVE-2021-27908
Ecosystem
Packagist
Packages
mautic/core
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L
Weaknesses
CWE-732, CWE-74
Reviewed
2021-03-30

Affected packages

• Packagist mautic/core: < 3.3.2 → fixed in 3.3.2

Description

Impact Symfony parameters (which is what Mautic transforms configuration parameters into) can be used within other Symfony parameters by design. However, this also means that an admin who is normally not privy to certain parameters, such as database credentials, could expose them by leveraging any of the free text fields in Mautic’s configuration that are used in publicly facing parts of the application. For example, 1. Go to Configuration page -> Landing Page Settings -> Analytics script and enter this: console.log("db password is: %mautic.db_password%"); ` 2. Visit any landing page and open the JS dev console. You will see the following message with real instance db password: `db password is: ` Risk rating: ModerateCVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L Patches Upgrade to 3.3.2 Workarounds No References No For more information If you have any questions or comments about this advisory: • Email us at [email protected]

Related

Alias · CVE (1)

  • CVE-2021-27908 In all versions prior to Mautic 3.3.2, secret parameters such as database credentials could be exposed publicly by an authorized admin user… vulnerability

Weakness · CWE (2)

  • CWE-732 Incorrect Permission Assignment for Critical Resource weakness
  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness

References