Описание
Reflected Cross Site-Scripting (XSS) in Oveleon Cookiebar
usd-2024-0009 | Reflected XSS in Oveleon Cookiebar
Details
Advisory ID: usd-2024-0009
Product: Cookiebar
Affected Version: 2.X
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.usd.de/
Vendor acknowledged vulnerability: Yes
Vendor Status: Fixed
CVE Number: Not requested yet
CVE Link: Not requested yet
First Published: Published
Last Update: 2024-07-29
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:
It is likely 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
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.
Credits
This security vulnerability was identified by DR of usd AG.
About usd Security Advisories
In order to protect businesses against hackers and criminals, we always have to keep our skills and knowledge up to date. Thus, security research is just as important for our work as is building up a security community to promote the exchange of knowledge. After all, more security can only be achieved if many individuals take on the task.
Our CST Academy and our usd HeroLab are essential parts of our security mission. We share the knowledge we gain in our practical work and our research through training courses and publications. In this context, the usd HeroLab publishes a series of papers on new vulnerabilities and current security issues.
Always for the sake of our mission: "more security."
Disclaimer
The information provided in this security advisory is provided "as is" and without warranty of any kind. Details of this security advisory may be updated in order to provide as accurate information as possible.
Ссылки
- https://github.com/oveleon/contao-cookiebar/security/advisories/GHSA-296q-rj83-g9rq
- https://nvd.nist.gov/vuln/detail/CVE-2024-47069
- https://github.com/oveleon/contao-cookiebar/commit/1d57470be5878f66d5e1e23f624dd387564b9b8d
- https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html
- https://github.com/oveleon/contao-cookiebar/blob/2.x/src/Controller/CookiebarController.php
Пакеты
oveleon/contao-cookiebar
< 1.16.3
1.16.3
oveleon/contao-cookiebar
>= 2.0.0, < 2.1.3
2.1.3
Связанные уязвимости
Oveleon Cookie Bar is a cookie bar is for the Contao Open Source CMS and allows a visitor to define cookie & privacy settings for the website. Prior to versions 1.16.3 and 2.1.3, 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 cross-site scripting. Versions 1.16.3 and 2.1.3 contain a patch for the vulnerability.