GitHub Advisoryadvisory · Packagist
GHSA-78vg-7v27-hj67 auditor-bundle vulnerable to Cross-site Scripting because name of entity does not get escaped
MEDIUM
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
- https://github.com/DamienHarper/auditor-bundle/security/advisories/GHSA-78vg-7v27-hj67 web
- https://nvd.nist.gov/vuln/detail/CVE-2024-45592 advisory
- https://github.com/DamienHarper/auditor-bundle/commit/42ba2940d8b99467de0c806ea5655cc1c6882cd1 web
- https://github.com/DamienHarper/auditor-bundle/commit/e7deb377fa89677d44973b486d26d6a7374233ae web
- https://github.com/DamienHarper/auditor-bundle package