Patch
CVE-2024-0484
with vRx
To patch this CVE, I have listed by manual and automated patching methods. This way, whatever method is convenient to the user can be leveraged.
Manual Patching
The source code of the affected file - admin/action/update_mother.php - must be altered to make use of prepared statements.
More specifically, the following code (in admin/action/update_mother.php):
$sql = "UPDATE mother SET mother_racist = '$racist', age_mother = '$age_mother', cage = '$cage' WHERE mother_id ='$id'";
if ($conn->query($sql) === TRUE) {
header("location:../pages/tables/mother.php");
} else {
header("location:../pages/tables/mother.php");
}
Must be changed to:
$sql = $conn->prepare("UPDATE mother SET mother_racist = ?, age_mother = ?, cage = ? WHERE mother_id =?");
$sql->bind_param('ssss', $racist, $age_mother, $cage, $id);
$sql->execute();
header("location:../pages/tables/mother.php");
That would fix the SQL injection vulnerability in this feature.
A more general advise would be to adopt the same pattern (of using the prepared statements) in the other files leveraging the database as well to avoid having similar variants of SQL injections in other places of the codebase.
Automated Patching
Script Usage:
python3 xremediation.py -h
usage: xremediation.py [-h] --path PATH
Remediation script for CVE-2024-0484.
optional arguments:
-h, --help show this help message and exit
--path PATH FCIS installation path.
Example script usage:
python3 xremediation.py --path
Example script usage with output:
python3 xremediation.py --path /var/www/html/FCIS
[+] Code is patched now!
Read more
Read less
Patch faster and smarter
with vRx
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Trusted by 600+ customers:




Solution
Remediate faster with vRx
Patch Management
vRx automatically deploys patches across all systems, cutting patching time by 80%.
Scripting Engine
vRx’s scripting engine solves complex vulnerabilities, like log4j, with built-in or custom scripts.
Patchless Protection
vRx’s Patchless Protection secures vulnerable apps and reduces risk while maintaining functionality.

Automated Patching, Scripting, and more
Talk with our team to get a personal walkthrough
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.