{"id":"GHSA-78vg-7v27-hj67","summary":"auditor-bundle vulnerable to Cross-site Scripting because name of entity does not get escaped","details":"### 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 \u003cscript\u003ealert()\u003c/script\u003e\n- delete author\n- view audit of authors\n- alert is displayed\n\n### Impact\npersistent XSS. JS can be injected and executed.\n","aliases":["CVE-2024-45592"],"modified":"2024-11-28T05:40:36.887299Z","published":"2024-09-10T15:53:10Z","database_specific":{"nvd_published_at":"2024-09-10T16:15:21Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2024-09-10T15:53:10Z"},"references":[{"type":"WEB","url":"https://github.com/DamienHarper/auditor-bundle/security/advisories/GHSA-78vg-7v27-hj67"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45592"},{"type":"WEB","url":"https://github.com/DamienHarper/auditor-bundle/commit/42ba2940d8b99467de0c806ea5655cc1c6882cd1"},{"type":"WEB","url":"https://github.com/DamienHarper/auditor-bundle/commit/e7deb377fa89677d44973b486d26d6a7374233ae"},{"type":"PACKAGE","url":"https://github.com/DamienHarper/auditor-bundle"}],"affected":[{"package":{"name":"damienharper/auditor-bundle","ecosystem":"Packagist","purl":"pkg:composer/damienharper/auditor-bundle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.6"}]}],"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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/09/GHSA-78vg-7v27-hj67/GHSA-78vg-7v27-hj67.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L"},{"type":"CVSS_V4","score":"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"}]}