{"id":"CVE-2024-47069","aliases":["CVE-2024-47069","GHSA-296q-rj83-g9rq"],"related":[],"kind":"vulnerability","state":"published","title":"Oveleon Cookiebar reflected Cross-site Scripting vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## usd-2024-0009 | Reflected XSS in Oveleon Cookiebar\n\n### Details\n**Advisory ID**: usd-2024-0009 \n**Product**: Cookiebar   \n**Affected Version**: 2.X  \n**Vulnerability Type**: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')   \n**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   \n**Vendor URL**: https://www.usd.de/    \n**Vendor acknowledged vulnerability**: Yes    \n**Vendor Status**: Fixed   \n**CVE Number**: Not requested yet    \n**CVE Link**: Not requested yet    \n**First Published**: Published  \n**Last Update**: 2024-07-29\n\n\n### Affected Component\n\nThe `block` function in `CookiebarController.php`.\n\n\n### Desciption\n\nOveleon's Cookiebar is an extension for the popular Contao CMS.\nThe `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.\n\n### Proof of Concept\nThe vulnerability could be triggered by entering the following Link:\n\n```\nhttps://[redacted].de/cookiebar/block/dens82w%22%3E%3Cimg%20src%3da%20onerror%3dalert(1)%3Ew9qt\nn/[id]?redirect=https%3A%2F%2F[...]amp%3Biv_load_policy%3D3%26amp%3Bmo\ndestbranding%3D1%26amp%3Brel%3D0\n```\n\nIt is likely related to the following function in the Oveleon Cookiebar source code:\n\n```php\n    /**\n     * Block content\n     *\n     * @Route(\"/cookiebar/block/{locale}/{id}\", name=\"cookiebar_block\")\n     */\n    public function block(Request $request, string $locale, int $id): Response\n    {\n        System::loadLanguageFile('tl_cookiebar', $locale);\n\n        $this->framework->initialize();\n\n        $objCookie = CookieModel::findById($id);\n\n        if (null === $objCookie || null === $request->headers->get('referer'))\n        {\n            throw new PageNotFoundException();\n        }\n\n        $strUrl = $request->get('redirect');\n\n        // Protect against XSS attacks\n        if(!Validator::isUrl($strUrl))\n        {\n            return new Response('The redirect destination must be a valid URL.', Response::HTTP_BAD_REQUEST);\n        }\n\n        $objTemplate = new FrontendTemplate($objCookie->blockTemplate ?: 'ccb_element_blocker');\n\n        $objTemplate->language = $locale;\n        $objTemplate->id = $objCookie->id;\n        $objTemplate->title = $objCookie->title;\n        $objTemplate->type = $objCookie->type;\n        $objTemplate->iframeType = $objCookie->iframeType;\n        $objTemplate->description = $objCookie->blockDescription;\n        $objTemplate->redirect = $request->get('redirect');\n        $objTemplate->acceptAndDisplayLabel = $this->translator->trans('tl_cookiebar.acceptAndDisplayLabel', [], 'contao_default', $locale);\n\n        return $objTemplate->getResponse();\n    }\n```\n\n### Fix\nSanitize the `locale` input to prevent XSS payloads from being executed in a user's browser.\n\n\n### References\n- https://github.com/oveleon/contao-cookiebar/blob/2.x/src/Controller/CookiebarController.php\n- https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html\n\n\n### Timeline\n* **2024-04-24**: Vulnerability discovered by DR of usd AG.\n* **2024-07-25**: Probable cause of the vulnerability has been identified as Oveleon's Cookiebar Extension for Contao CMS.\n* **2024-07-25**: Vulnerability disclosed via GitHub Vulnerability Report.\n\n\n### Credits\nThis security vulnerability was identified by DR of usd AG.\n\n\n### About usd Security Advisories\nIn 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.\n\nOur 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. \n\nAlways for the sake of our mission: \"more security.\"\n\nhttps://www.usd.de\n\n\n### Disclaimer\nThe 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Oveleon Cookie Bar es una barra de cookies para el CMS de código abierto Contao y permite que un visitante defina la configuración de privacidad y cookies para el sitio web. Antes de las versiones 1.16.3 y 2.1.3, el punto de conexión `block/locale` no desinfecta correctamente la entrada `locale` controlada por el usuario antes de incluirla en la respuesta HTTP del backend, lo que provoca un error de cross-site scripting reflejado. Las versiones 1.16.3 y 2.1.3 contienen un parche para la vulnerabilidad.","source":"nvd"}],"published":"2024-07-26T14:28:26.000Z","modified":"2026-06-17T07:56:29.337Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.16.3","status":"affected"},{"version":">= 2.0.0, < 2.1.3","status":"affected"}],"vendor":"oveleon","product":"contao-cookiebar","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.16.3","status":"affected"},{"type":"custom","introduced":"2.0.0","fixed":"2.1.3","status":"affected"}],"vendor":"oveleon","product":"contao-cookiebar","cpe":"cpe:2.3:a:oveleon:contao-cookiebar:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.16.3"}],"ecosystem":"Packagist","package":"oveleon/contao-cookiebar","purl":"pkg:composer/oveleon/contao-cookiebar","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.1.3"}],"ecosystem":"Packagist","package":"oveleon/contao-cookiebar","purl":"pkg:composer/oveleon/contao-cookiebar","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.16.3"},{"status":"affected","introduced":"2.0.0","fixed":"2.1.3"}],"vendor":"oveleon","product":"cookiebar","cpe":"cpe:2.3:a:oveleon:cookiebar:*:*:*:*:*:cantao:*:*","source":"nvd"}],"references":[{"url":"https://github.com/oveleon/contao-cookiebar/security/advisories/GHSA-296q-rj83-g9rq","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/oveleon/contao-cookiebar/commit/1d57470be5878f66d5e1e23f624dd387564b9b8d","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html","tags":["technical-description","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/oveleon/contao-cookiebar/blob/2.x/src/Controller/CookiebarController.php","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47069","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/oveleon/contao-cookiebar","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-09-23T16:02:04.714Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-47069","url":"https://www.cve.org/CVERecord?id=CVE-2024-47069","licence":"CVE Terms of Use","modified":"2024-09-23T16:09:53.133Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-296q-rj83-g9rq","url":"https://github.com/advisories/GHSA-296q-rj83-g9rq","licence":"CC-BY-4.0","modified":"2024-09-23T19:39:17.956Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-47069","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47069","licence":"Public domain","modified":"2026-06-17T07:56:29.337Z"}],"updatedAt":"2026-11-25T22:58:45.680Z","epss":{"score":0.00449,"percentile":0.40727,"date":"2026-12-01T12:00:22.000Z"}}