vendor:
Voting System using PHP/MySQLi
by:
secure77
7.5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Voting System using PHP/MySQLi
Affected Version From: 1.0
Affected Version To: 1.0
Patch Exists: NO
Related CWE: N/A
CPE: a:sourcecodester:voting_system_using_php/mysqli:1.0
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Linux Debian 5.10.28-1kali1 (2021-04-12) x86_64 // PHP Version 7.4.15 & Built-in HTTP server // mysql Ver 15.1 Distrib 10.5.9-MariaDB
2021
Voting System 1.0 – Authentication Bypass (SQLI)
You can simply bypass the /admin/login.php with the following sql injection. All you need is a bcrypt hash that is equal with your random password, the username should NOT match with an existing.
Mitigation:
Ensure that user input is properly sanitized and validated before being used in SQL queries.