Patch

CVE-2024-0484

with vRx

Vulnerability Overview
CVE Name
CVE-2024-0484
Severity
9.8
Critical
CVE Description
A vulnerability, which was classified as critical, has been found in code-projects Fighting Cock Information System 1.0. This issue affects some unknown processing of the file admin/action/update_mother.php. The manipulation of the argument age_mother leads...
A vulnerability, which was classified as critical, has been found in code-projects Fighting Cock Information System 1.0. This issue affects some unknown processing of the file admin/action/update_mother.php. The manipulation of the argument age_mother leads...
Show more
Show less
Latest Patch info
There is no patch available at the moment, but you can use our script.
Patch Name
Date
Script
Script Type
Remediation script
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!
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!
Affected OS & Apps
Fighting Cock Information System
by
Code-Projects
Show more
4.8

Patch faster and smarter
with vRx

Book a Demo
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.
Shortlist 2024 by Captera
4.9
Customer first by Gartner
4.8
Leader spring by G2
4.9

Hear from our Customers

Valuable resources saved

"Before vRx, we would spend countless hours manually finding and verifying patches. We saved so much time (and headache!)."
Anonymous IT Operations LeadAnonymous IT Operations Lead
Anonymous IT Operations Lead
IT Operations Lead

Third-party software patching is the most valuable feature.

"We have automated third-party patching on specific software, improving efficiency by 80%. vRx has reduced our patching time, which has improved our operations. It is more robust than other solutions because it offers better third-party remediation."
Billy TurnerBilly Turner
Billy Turner
VP, Managed Technology & Services

Single source of truth, capable of handling any application in our fleet

"vRx gives a single pane of glass to see what patches needed to go out and what sort of vulnerabilities we have on our Windows machines. Our meantime to remediate vulnerabilities has gone down by about 60% to 70%."
Peter FallowfieldPeter Fallowfield
Peter Fallowfield
IT Manager

60% faster remediation, many hours saved

"Typically, with our previous solution of ManageEngine, it took about three hours to patch Windows Server, and now, that is less than an hour. It means less downtime for the business each month when we do patches."
Anonymous Security AnalystAnonymous Security Analyst
Anonymous Security Analyst
Security Analyst

Great patching capabilities, helpful dashboard, and excellent support

"vRx has saved us an incredible amount of time. We can just rely on the automated system and the schedules we've set. It's a huge time saver. It's saved us hundreds of hours."
Michael CortezMichael Cortez
Michael Cortez
Sr. Director of IT

My favorite feature is Patchless Protection

"With Vicarius' vRx, I've never seen a patch that failed or had to be rolled back. We're saving quite a bit of time. Our clients using vRx haven't had any issues, and they've easily established patching for all their endpoints. "
Jeremy HermanJeremy Herman
Jeremy Herman
Security Engineer

Unified vulnerability discovery, prioritization, and remediation

"Vicarius streamlines vulnerability management between IT & Security by directly linking identified vulnerabilities to required patches, enhancing efficiency. The automation process has saved at least 30 percent of our manual tasks."
Wayne AjimineWayne Ajimine
Wayne Ajimine
Information Security Professional

Patchless Protection is an incredible technology!

"vRx reduces the time customers spend on patching by reducing the overhead on the administrators, allowing them to do additional work. It saves time they would spend addressing the patching process, follow-ups, etc."
Antwune GrayAntwune Gray
Antwune Gray
VP IT Security and Services

Merge Security & IT to Remediate Threats

“Vicarius’s vRx enabled Adama to centralize and consolidate work between IT and security teams, leading to a more efficient patching workflow."
Oshri CohenOshri Cohen
Oshri Cohen
CISO
Tanya Alfonso
4.8

Automated Patching, Scripting, and more

Talk with our team to get a personal walkthrough
Book a Demo
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.