Advisory

GHSA-78vg-7v27-hj67

Also known as: CVE-2024-45592

Summary

auditor-bundle vulnerable to Cross-site Scripting because name of entity does not get escaped

Details

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 <script>alert()</script>
  • delete author
  • view audit of authors
  • alert is displayed

Impact
persistent XSS. JS can be injected and executed.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-09-10 15:53 UTC
Modified
2024-11-28 05:40 UTC

Affected packages and fixes

damienharper/auditor-bundle

Packagist · All systems

Affected

  • introduced 0, fixed 5.2.6 (ecosystem)

Fixed versions

5.2.6

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences