CVE-2025-8165 in Food Review Systeminfo

Summary

by MITRE • 07/25/2025

A vulnerability was found in code-projects Food Review System 1.0 and classified as critical. This issue affects some unknown processing of the file /admin/approve_reservation.php. The manipulation of the argument occasion leads to sql injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 08/05/2025

The vulnerability CVE-2025-8165 represents a critical sql injection flaw in the code-projects Food Review System version 1.0, specifically within the administrative component at /admin/approve_reservation.php. This weakness stems from improper input validation and sanitization of user-supplied data, particularly the occasion parameter that flows directly into database queries without adequate protection mechanisms. The vulnerability classification as critical indicates the potential for severe impact including complete database compromise, unauthorized data access, and possible system takeover. The attack vector is remotely exploitable, meaning malicious actors can leverage this flaw without requiring physical access to the target system, significantly expanding the attack surface and threat exposure.

The technical implementation of this vulnerability demonstrates a classic sql injection attack pattern where the occasion parameter serves as the injection point for malicious sql payloads. When an attacker manipulates this parameter, the application fails to properly escape or parameterize the input before incorporating it into sql statements. This allows attackers to inject arbitrary sql commands that execute within the database context, potentially enabling data extraction, modification, or deletion operations. The disclosure of exploit code further amplifies the risk as it provides threat actors with readily available tools to exploit this weakness, reducing the barrier to successful attacks.

The operational impact of CVE-2025-8165 extends beyond simple data theft to encompass complete system compromise and business disruption. An attacker could leverage this vulnerability to access customer reservation data, personal information, and potentially gain administrative privileges within the application. The sql injection could also be used to escalate privileges, modify application logic, or even establish persistent backdoors within the system. Given that this affects the reservation approval functionality, attackers might manipulate reservation statuses, create fraudulent reservations, or disrupt business operations through data corruption. The remote exploit capability means that organizations cannot rely on network segmentation or physical security controls to protect against this threat, as the attack can originate from anywhere on the internet.

Organizations utilizing the code-projects Food Review System should immediately implement multiple layers of defense to mitigate this vulnerability. The primary remediation involves implementing proper input validation and parameterized queries to prevent sql injection attacks, following established secure coding practices and standards such as those outlined in the owasp top ten and cwe-89. Additionally, organizations should deploy web application firewalls and input sanitization mechanisms to detect and block malicious payloads before they reach the application layer. Regular security assessments and penetration testing should be conducted to identify similar vulnerabilities within the application codebase. The implementation of least privilege principles for database connections and regular security updates should also be enforced to minimize the potential impact of exploitation. This vulnerability exemplifies the importance of secure coding practices and proper input validation as outlined in the mitre ATT&CK framework under the application layer attack techniques, particularly focusing on command injection and credential access categories.

Responsible

VulDB

Disclosure

07/25/2025

Moderation

accepted

CPE

ready

Exploit

Download

EPSS

0.00475

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!