usd-2024-0009 | Reflected XSS in Oveleon Cookiebar
Advisory ID: usd-2024-0009
Product: Cookiebar
Affected Version: <1.16.2
Vulnerability Type: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Security Risk: HIGH, CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
Vendor URL: https://www.oveleon.de/
Vendor acknowledged vulnerability: Yes
Vendor Status: Fixed
CVE Number: CVE-2024-47069
CVE Link: CVE-2024-47069
Affected Component
The block function in CookiebarController.php.
Desciption
Oveleon's Cookiebar is an extension for the popular Contao CMS.
The block/locale endpoint does not properly sanitize the user-controlled locale input before including it in the backend's HTTP response, thereby causing reflected XSS.
Proof of Concept
The vulnerability could be triggered by entering the following Link:
https://[redacted].de/cookiebar/block/dens82w%22%3E%3Cimg%20src%3da%20onerror%3dalert(1)%3Ew9qt]()n/[id]?redirect=https%3A%2F%2Fwww.youtube.com%2F[...]%3D1%26amp%3Brel%3D0
It is related to the following function in the Oveleon Cookiebar source code:
Fix
Sanitize the locale input to prevent XSS payloads from being executed in a user's browser.
References
- https://github.com/oveleon/contao-cookiebar/blob/2.x/src/Controller/CookiebarController.php
- https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html
- https://github.com/oveleon/contao-cookiebar/security/advisories/GHSA-296q-rj83-g9rq
Timeline
- 2024-04-24: Vulnerability discovered by DR of usd AG.
- 2024-07-25: Probable cause of the vulnerability has been identified as Oveleon's Cookiebar Extension for Contao CMS.
- 2024-07-25: Vulnerability disclosed via GitHub Vulnerability Report.
- 2024-07-26: Vulnerability patched by Oveleon and GitHub advisory published.
Credits
This security vulnerability was identified by DR of usd AG.