{"exploit":{"id":"EDB-52664","name":"Devellion CubeCart 6.7.4 - 'download_expire' Authenticated SQL Injection (SQLi)","description":"Devellion CubeCart 6.7.4 - 'download_expire' Authenticated SQL Injection (SQLi)","cves":["CVE-2026-54647"],"author":"Mikail KOCADAĞ","published":"2026-08-31","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52664","path":"exploits/php/webapps/52664.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52664.txt","vulnerabilities":[{"id":"CVE-2026-54647","state":"PUBLISHED","title":"CubeCart : SQL Injection via download_expire Parameter in settings.index.inc.php","titleSource":"CVE Program","description":"CubeCart is an ecommerce software solution. Prior to 6.7.5, admin/sources/settings.index.inc.php directly concatenates the administrator-controlled download_expire POST parameter into a raw UPDATE statement for CubeCart_downloads without numeric validation. An authenticated administrator can supply a comma-delimited value that changes the SET clause because HTML sanitization does not neutralize SQL syntax, allowing manipulation of database columns and potentially other data within the application's database privileges. This issue is fixed in version 6.7.5.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-54647","cvss":{"version":"3.1","baseScore":7.2,"severity":"high","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-54647"},"updatedAt":"2026-09-24T20:55:23.503Z","retrievedAt":"2026-11-25T16:13:47.043Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52664.png?v=2","url":"https://exploitbin.com/exploits/EDB-52664","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52664/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52664/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: CubeCart 6.7.4 - SQL injection\n# Date: 2026-06-08\n# Exploit Author: Mikail Kocadağ\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-54647\n# Advisory / References:\nhttps://github.com/cubecart/v6/security/advisories/GHSA-hvmw-v8gc-4c29\n\n--------------------------------------------------------------------------------\nVULNERABILITY SUMMARY\n--------------------------------------------------------------------------------\nAn authenticated administrative SQL injection vulnerability exists in\nCubeCart v6.7.4\ndue to unsafe concatenation of user-supplied input in raw database queries\nwithout validation.\n\nThe vulnerability is located in `admin/sources/settings.index.inc.php` at\nline 184.\nThe `download_expire` parameter received via POST is directly concatenated\ninto an\n`UPDATE` SQL statement executed via `query()` or `misc()`.\n\nThe global input sanitizer (`Sanitize::_safety()`) relies entirely on\n`htmlspecialchars()`,\nwhich does not filter or encode commas (`,`). An attacker can leverage\ncomma injection\nto break out of the intended syntax and manipulate the `SET` clauses or\nappend malicious clauses.\n\n--------------------------------------------------------------------------------\nIMPACT\n--------------------------------------------------------------------------------\nAn authenticated attacker with access to settings can manipulate arbitrary\ncolumns\nwithin the settings tables or potentially perform lateral movement within\nthe database.\n\n--------------------------------------------------------------------------------\nPROOF OF CONCEPT (PoC)\n--------------------------------------------------------------------------------\n1. Authenticated as an administrator, navigate to Settings.\n2. Intercept the save request and inject a payload containing a comma into\nthe `download_expire` field:\n\n   1, expire=0 WHERE 1=1-- -\n\n3. Submit the request and verify that the raw SQL syntax is successfully\naltered.","sha256":"7b532e45c46c8f2da910b18b23f19dc868f1a5327ddf4ab11c882b8e26db68f8","bytes":2037,"fetchedAt":"2026-11-25T10:17:07.529Z","encoding":"utf-8 (display only; download retains original bytes)"}