CVE-2022-31344 in Online Car Wash Booking Systeminfo

Summary

by MITRE • 06/02/2022

Online Car Wash Booking System v1.0 is vulnerable to SQL Injection via /ocwbs/classes/Master.php?f=delete_booking.

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

Analysis

by VulDB Data Team • 02/18/2026

The Online Car Wash Booking System version 1.0 contains a critical SQL injection vulnerability that exists within its Master.php file at the delete_booking function endpoint. This vulnerability stems from inadequate input validation and sanitization practices, allowing malicious actors to manipulate database queries through crafted HTTP requests. The specific attack vector occurs when the system processes deletion requests for bookings without properly escaping or parameterizing user-supplied data, creating an exploitable condition that can be leveraged to execute arbitrary SQL commands.

The technical flaw manifests in the improper handling of the f=delete_booking parameter within the Master.php script. When a user or attacker submits a request containing malicious SQL payloads through this endpoint, the application directly incorporates the input into database queries without adequate sanitization. This vulnerability falls under the Common Weakness Enumeration category of CWE-89 SQL Injection, which represents one of the most prevalent and dangerous web application security flaws. The attack can be executed through standard HTTP request methods, typically involving GET or POST parameters that contain SQL syntax designed to bypass authentication, extract sensitive data, or manipulate database structures.

The operational impact of this vulnerability is severe and multifaceted. An attacker who successfully exploits this SQL injection flaw could gain unauthorized access to the entire booking database, potentially compromising customer information, booking records, and system credentials. The vulnerability enables data exfiltration attacks where sensitive information such as customer names, contact details, vehicle information, and payment data could be extracted from the database. Additionally, the attacker could modify or delete booking records, potentially disrupting business operations and causing financial losses. The exploitation could also lead to privilege escalation within the database, allowing for more extensive system compromise. This vulnerability aligns with the MITRE ATT&CK framework under the T1190 technique for exploitation of remote services and T1071.004 for application layer protocol usage, as it represents an attack against the application's database interface.

Mitigation strategies for this vulnerability should include immediate implementation of parameterized queries and prepared statements to ensure that user input is properly separated from database commands. The system should implement comprehensive input validation and sanitization measures, including the use of allowlists for acceptable input values and proper escaping of special characters. Regular security code reviews and automated vulnerability scanning should be conducted to identify similar issues throughout the application codebase. Network segmentation and database access controls should be implemented to limit the potential damage from successful exploitation. The application should also be updated to the latest version if available, as this vulnerability likely represents a known issue that has been addressed in subsequent releases. Additionally, implementing web application firewalls and intrusion detection systems can provide additional layers of protection against SQL injection attacks targeting this specific endpoint.

Reservation

05/23/2022

Disclosure

06/02/2022

Moderation

accepted

CPE

ready

EPSS

0.01067

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!