{"exploit":{"id":"EDB-52662","name":"Devellion CubeCart 6.7.4 - 'products.index.inc.php' Authenticated Stored Cross-Site Scripting (XSS)","description":"Devellion CubeCart 6.7.4 - 'products.index.inc.php' Authenticated Stored Cross-Site Scripting (XSS)","cves":["CVE-2026-54645"],"author":"Mikail KOCADAĞ","published":"2026-08-31","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52662","path":"exploits/php/webapps/52662.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52662.txt","vulnerabilities":[{"id":"CVE-2026-54645","state":"PUBLISHED","title":"CubeCart: Stored XSS in Product Description Editor via Global Sanitizer Bypass","titleSource":"CVE Program","description":"CubeCart is an ecommerce software solution. Prior to 6.7.5, admin/sources/products.index.inc.php reads the description, description_short, and spec_copy rich-text fields from $GLOBALS['RAW']['POST'] and removes only script elements before the values are stored and rendered through Smarty templates. An administrator with product-editing rights can store event-handler attributes, SVG content, or javascript: URIs that bypass this filter, causing persistent JavaScript execution when a storefront visitor or another administrator views the product content and enabling session exposure or unauthorized browser-context actions. This issue is fixed in version 6.7.5.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-54645","cvss":{"version":"3.1","baseScore":4.8,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-54645"},"updatedAt":"2026-09-22T01:58:02.824Z","retrievedAt":"2026-11-25T16:13:47.048Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52662.png?v=2","url":"https://exploitbin.com/exploits/EDB-52662","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52662/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52662/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: CubeCart 6.7.4 - Stored Cross-Site Scripting\n# Date: 2026-06-08\n# Exploit Author: Mikail Kocadağ (MKLKCDG)\n# Vendor Homepage: https://www.cubecart.com/\n# Software Link: https://github.com/cubecart/v6\n# Vulnerable Version: 6.7.4\n# Fixed Version: 6.7.5\n# CVE: CVE-2026-54645\n# Advisory / References:\nhttps://github.com/cubecart/v6/security/advisories/GHSA-43f6-gfcf-wj9c\n\n--------------------------------------------------------------------------------\nVULNERABILITY SUMMARY\n--------------------------------------------------------------------------------\nA Stored Cross-Site Scripting (XSS) vulnerability exists in the product\nmanagement panel of CubeCart 6.7.4, where product descriptions bypass\nglobal input\nfilters and sanitization controls.\n\nIn `admin/sources/products.index.inc.php` (lines 55-59), the application\nexplicitly\nbypasses the global sanitizer mechanism by retrieving content directly from\n`$GLOBALS['RAW']['POST']`. The only defense applied is a basic regex filter\nagainst\n`<script>` tags, which fails to block alternative XSS vectors like event\nhandlers\nor SVG elements.\n\n--------------------------------------------------------------------------------\nIMPACT\n--------------------------------------------------------------------------------\nAn attacker with product editing permissions can inject persistent\nmalicious JavaScript.\nWhen clients or other administrators view the affected product page on\neither the\npublic storefront or the administration panel, the payload executes within\ntheir\nactive session.\n\n--------------------------------------------------------------------------------\nPROOF OF CONCEPT (PoC)\n--------------------------------------------------------------------------------\n1. Log into the administration panel and navigate to Product Management.\n2. Edit or create a product, and inject a payload using an HTML event\nhandler into the product description:\n\n   <img src=x onerror=alert(document.domain)>\n\n3. Save the product.\n4. Visit the product page on the public storefront or view it within the\nadmin panel to trigger execution.","sha256":"397a8d38dd8a3d68bb696790b8e880d45aa3c81e62ca0ce7fa95a7a4f9e3a122","bytes":2086,"fetchedAt":"2026-11-25T10:17:07.509Z","encoding":"utf-8 (display only; download retains original bytes)"}