CVE-2022-31348 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/admin/bookings/update_status.php?id=.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 02/18/2026

The Online Car Wash Booking System version 1.0 contains a critical sql injection vulnerability that allows remote attackers to execute arbitrary sql commands against the underlying database. This vulnerability exists in the administrative booking management component at the specific endpoint /ocwbs/admin/bookings/update_status.php where the id parameter is not properly sanitized or validated before being incorporated into sql queries. The flaw represents a classic sql injection attack vector where user-supplied input directly influences database query construction without adequate input filtering or parameterization mechanisms.

This vulnerability falls under the common weakness enumeration CWE-89 which specifically addresses sql injection flaws in software applications. The attack surface is particularly concerning as it targets the administrative backend of the booking system, providing potential threat actors with access to sensitive customer data, booking records, and potentially system credentials. The update_status.php endpoint suggests that attackers could manipulate booking statuses, potentially causing service disruption or data corruption while simultaneously gaining unauthorized access to the database. The vulnerability is classified as a remote code execution risk when combined with database privileges, as sql injection attacks can be leveraged to extract, modify, or delete sensitive information.

The operational impact of this vulnerability extends beyond simple data compromise as it enables attackers to perform full database enumeration and manipulation. Successful exploitation could result in unauthorized access to customer personal information including names, contact details, vehicle information, and booking history. Additionally, attackers might escalate privileges within the database to gain shell access or execute administrative commands that could lead to complete system compromise. The vulnerability affects the integrity and confidentiality of the entire booking system, potentially exposing sensitive transactional data and undermining customer trust in the service.

Security mitigations for this vulnerability should include immediate implementation of parameterized queries or prepared statements to prevent sql injection attacks. Input validation and sanitization must be enforced at the application level for all user-supplied parameters including the id parameter in the update_status.php endpoint. Web application firewalls should be configured to detect and block sql injection patterns targeting this specific endpoint. Regular security patching and code review processes should be implemented to identify similar vulnerabilities in other components of the system. Additionally, database access controls should be reviewed to ensure that application accounts have minimal required privileges and that proper monitoring is in place to detect unauthorized database access attempts. The vulnerability also highlights the importance of following secure coding practices and adhering to the principle of least privilege as outlined in the mitre ATT&CK framework for database access and manipulation techniques.

Reservation

05/23/2022

Disclosure

06/02/2022

Moderation

accepted

CPE

ready

EPSS

0.01081

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!