Leave Management System Project v1.0 - Multiple Authenticated SQL Injections (SQLi)

Summary

NameLeave Management System Project v1.0 - Multiple Authenticated SQL Injections (SQLi)
Code nameMartin
ProductLeave Management System Project
VendorProjectworlds Pvt. Limited
Affected versionsVersion 1.0
StatePublic
Release date2023-10-27

Vulnerabilities

KindAuthenticated SQL Injections (SQLi)
Rule146. SQL Injection
RemoteYes
CVSSv3 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSSv3 Base Score9.8
Exploit availableYes
CVE ID(s)CVE-2023-44480, CVE-2023-44481, CVE-2023-44482

Description

Leave Management System Project v1.0 is vulnerable to multiple Authenticated SQL Injection vulnerabilities.

Vulnerabilities

CVE-2023-44480

The 'setcasualleave' parameter of the admin/setleaves.php resource does not validate the characters received and they are sent unfiltered to the database. The vulnerable code is:

$setsickleave = strip_tags(trim($_POST['setsickleave'])); $setearnleave = strip_tags(trim($_POST['setearnleave'])); $setcasualleave = strip_tags(trim($_POST['setcasualleave'])); ... $update = "UPDATE employees SET CasualLeave = '".$setcasualleave."' WHERE Dept = '".$row2["Dept"]."'"; $conn->query($update);

CVE-2023-44481

The 'setearnleave' parameter of the admin/setleaves.php resource does not validate the characters received and they are sent unfiltered to the database. The vulnerable code is:

$setsickleave = strip_tags(trim($_POST['setsickleave'])); $setearnleave = strip_tags(trim($_POST['setearnleave'])); $setcasualleave = strip_tags(trim($_POST['setcasualleave'])); ... $update = "UPDATE employees SET EarnLeave = '".$setearnleave."' WHERE Dept = '".$row2["Dept"]."'"; $conn->query($update);

CVE-2023-44482

The 'setsickleave' parameter of the admin/setleaves.php resource does not validate the characters received and they are sent unfiltered to the database. The vulnerable code is:

$setsickleave = strip_tags(trim($_POST['setsickleave'])); $setearnleave = strip_tags(trim($_POST['setearnleave'])); $setcasualleave = strip_tags(trim($_POST['setcasualleave'])); ... $update = "UPDATE employees SET SickLeave = '".$setsickleave."'WHERE Dept = '".$row2["Dept"]."'"; $conn->query($update);

Our security policy

We have reserved the IDs CVE-2023-44480, CVE-2023-44481 and CVE-2023-44482 to refer to these issues from now on.

System Information

  • Version: Leave Management System Project v1.0
  • Operating System: Any

Mitigation

There is currently no patch available for this vulnerability.

Credits

The vulnerability was discovered by Andres Roldan from Fluid Attacks' Offensive Team.

References

Vendor page https://projectworlds.in/

Timeline

Time-lapse-logo

2023-09-29

Vulnerability discovered.

Time-lapse-logo

2023-09-29

Vendor contacted.

Time-lapse-logo

2023-10-27

Public Disclosure.

Fluid Logo Footer

Hacking software for over 20 years

Fluid Attacks tests applications and other systems, covering all software development stages. Our team assists clients in quickly identifying and managing vulnerabilities to reduce the risk of incidents and deploy secure technology.

Copyright © 0 Fluid Attacks. We hack your software. All rights reserved.