GitHub Advisoryadvisory · Packagist

GHSA-78vg-7v27-hj67 auditor-bundle vulnerable to Cross-site Scripting because name of entity does not get escaped

MEDIUM Published 2024-09-10 Modified 2024-11-18 Official page ↗
Aliases
CVE-2024-45592
Ecosystem
Packagist
Packages
damienharper/auditor-bundle
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L
Weaknesses
CWE-79
Reviewed
2024-09-10

Affected packages

• Packagist damienharper/auditor-bundle: < 5.2.6 → fixed in 5.2.6

Description

Summary Unescaped entity property enables Javascript injection. Details I think this is possible because %source_label% in twig macro is not escaped. Therefore script tags can be inserted and are executed. PoC • clone example project https://github.com/DamienHarper/auditor-bundle-demo • create author with FullName alert() • delete author • view audit of authors • alert is displayed Impact persistent XSS. JS can be injected and executed.

Related

Alias · CVE (1)

  • CVE-2024-45592 auditor-bundle, formerly known as DoctrineAuditBundle, integrates auditor library into any Symfony 3.4+ application. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References