{"id":"GHSA-78vg-7v27-hj67","aliases":["CVE-2024-45592"],"title":"auditor-bundle vulnerable to Cross-site Scripting because name of entity does not get escaped","description":"### Summary\nUnescaped entity property enables Javascript injection.\n\n### Details\nI think this is possible because %source_label% in twig macro is not escaped. Therefore script tags can be inserted and are executed.\n\n### PoC\n- clone example project https://github.com/DamienHarper/auditor-bundle-demo\n- create author with FullName <script>alert()</script>\n- delete author\n- view audit of authors\n- alert is displayed\n\n### Impact\npersistent XSS. JS can be injected and executed.\n","severity":"high","score":8.2,"published":"2024-09-10T15:53:10.000Z","modified":"2024-11-28T05:40:25.738Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"damienharper/auditor-bundle","ranges":[{"events":[{"introduced":"0"},{"fixed":"5.2.6"}],"type":"ECOSYSTEM"}],"versions":["1.0.0","1.0.1","1.0.10","1.0.11","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.2.0","1.2.1","1.2.2","1.3.0","1.4.0","1.5.0","1.5.1","1.6.0","2.0.0","2.1.0","2.2.0","2.3.0","2.3.1","2.3.2","2.4.0","2.5.0","3.0.0","3.1.0","3.2.0","3.2.1","3.2.2","3.2.3","3.3.0","3.3.1","3.3.2","3.4.0","3.4.1","3.4.2","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.1.0","4.2.0","5.0.0","5.0.1","5.0.2","5.0.3","5.1.0","5.1.1","5.2.0","5.2.1","5.2.2","5.2.3","5.2.4","5.2.5"],"fixed":["5.2.6"]}],"references":["https://github.com/DamienHarper/auditor-bundle/security/advisories/GHSA-78vg-7v27-hj67","https://nvd.nist.gov/vuln/detail/CVE-2024-45592","https://github.com/DamienHarper/auditor-bundle/commit/42ba2940d8b99467de0c806ea5655cc1c6882cd1","https://github.com/DamienHarper/auditor-bundle/commit/e7deb377fa89677d44973b486d26d6a7374233ae","https://github.com/DamienHarper/auditor-bundle"],"sources":[{"name":"OSV","id":"GHSA-78vg-7v27-hj67","modified":"2024-11-28T05:40:25.738974Z","url":"https://osv.dev/vulnerability/GHSA-78vg-7v27-hj67"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L","score":8.2},{"source":"OSV","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:L/SA:L","score":6.3}]}