{"exploit":{"id":"EDB-52661","name":"Devellion CubeCart 6.7.4 - Cross-Site Scripting (XSS)","description":"Devellion CubeCart 6.7.4 - Cross-Site Scripting (XSS)","cves":["CVE-2026-54644"],"author":"Mikail KOCADAĞ","published":"2026-08-31","platform":"multiple","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52661","path":"exploits/multiple/webapps/52661.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52661.txt","vulnerabilities":[{"id":"CVE-2026-54644","state":"PUBLISHED","title":"CubeCart: XSS via Anchor Tag Attribute Injection in gui.class.php Message System","titleSource":"CVE Program","description":"CubeCart is an ecommerce software solution. Prior to 6.7.5, the _errorMessage method in classes/gui.class.php uses strip_tags to permit anchor elements in error, information, and warning messages while retaining unsafe href values and onclick event handlers. Attacker-controlled search or input data that reaches a GUI message can carry a javascript: URI or event handler through the filter, and viewing or interacting with the rendered anchor executes JavaScript in the victim's browser session, enabling session exposure or unauthorized application actions. This issue is fixed in version 6.7.5.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-54644","cvss":{"version":"3.1","baseScore":6.1,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-54644"},"updatedAt":"2026-09-18T20:02:30.778Z","retrievedAt":"2026-11-25T16:13:47.006Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52661.png?v=2","url":"https://exploitbin.com/exploits/EDB-52661","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52661/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52661/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: CubeCart 6.7.4 - Cross-Site Scripting\nAttribute Injection in gui.class.php\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-54644\n# Advisory / References:\nhttps://github.com/cubecart/v6/security/advisories/GHSA-v55x-fh73-29vq\n\n--------------------------------------------------------------------------------\nVULNERABILITY SUMMARY\n--------------------------------------------------------------------------------\nThe GUI message rendering component in CubeCart 6.7.4 suffers from a\nCross-Site\nScripting (XSS) vulnerability due to an insecure `strip_tags` allowlist\nconfiguration\nthat permits harmful attributes inside anchor elements.\n\nIn `classes/gui.class.php` (lines 1794-1802), system messages (error, info,\nwarning)\nare filtered using `strip_tags($message, '<a>')`. While this strips other\nHTML\ntags, it allows the `<a>` tag to retain all attributes without sanitization.\n\n--------------------------------------------------------------------------------\nIMPACT\n--------------------------------------------------------------------------------\nAn attacker passing inputs through search parameters or input fields that\nreflect\ninto GUI message components can inject `javascript:` URIs or inline event\nhandlers\n(e.g., `onclick`) inside the anchor tag. When rendered in the context of a\nuser's\nor administrator's browser session, this allows arbitrary JavaScript\nexecution,\npotentially leading to session hijacking or unauthorized administrative\nactions.\n\n--------------------------------------------------------------------------------\nPROOF OF CONCEPT (PoC)\n--------------------------------------------------------------------------------\n1. Trigger a system message wrapper via a search query or input parameter.\n2. Inject an anchor tag payload containing a `javascript:` scheme:\n\n   <a href=\"javascript:alert(1)\">Click Here</a>\n\n3. When the user or administrator views or interacts with the rendered\nsystem alert block,\n   the embedded JavaScript payload executes.","sha256":"528399c2576e4fc7d3c862030a9061cffa532bb0e9e7e9287cb78d898d08ea38","bytes":2157,"fetchedAt":"2026-11-25T10:17:07.267Z","encoding":"utf-8 (display only; download retains original bytes)"}