vendor:
eLection
by:
J3rryBl4nks
7.5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: eLection
Affected Version From: 2.0
Affected Version To: 2.0
Patch Exists: NO
Related CWE: N/A
CPE: 2.0
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Ubuntu 19/Kali Rolling
2020
eLection 2.0 – ‘id’ SQL Injection
The eLection Web application is vulnerable to authenticated SQL Injection which leads to remote code execution. Login to the admin portal and browse to the candidates section. Capture the request in BurpSuite and save it to file. Send the request to SQLMap with the following parameters: sqlmap -r getcandidate --level=5 --risk=3 --os-shell -p id. SQLMap will find the injection.
Mitigation:
Ensure that all user-supplied input is properly validated and sanitized before being used in SQL queries.