CVE-2026-12937 in Tourfic Plugin
Summary
by MITRE • 06/25/2026
The Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin plugin for WordPress is vulnerable to generic SQL Injection via the 'post_id' parameter in all versions up to, and including, 2.22.7 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The AJAX handler is registered for unauthenticated users via wp_ajax_nopriv_tf_room_availability, and the required nonce is emitted on the public single-hotel page template, allowing unauthenticated attackers to freely obtain a valid nonce and reach the vulnerable code path.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 06/25/2026
The Tourfic WordPress plugin presents a critical generic SQL injection vulnerability that affects all versions up to and including 227, creating a significant security risk for WordPress installations. This vulnerability stems from inadequate input sanitization practices where the 'post_id' parameter receives insufficient escaping before being incorporated into database queries. The flaw exists within the plugin's architecture where existing SQL queries lack proper preparation mechanisms to handle user-supplied data, allowing malicious actors to inject additional SQL commands that can manipulate or extract sensitive information from the underlying database.
The vulnerability's exploitation potential is amplified by the plugin's AJAX handler registration pattern that intentionally exposes functionality to unauthenticated users through the wp_ajax_nopriv_tf_room_availability endpoint. This design decision creates an attack surface where even without authentication credentials, malicious actors can leverage the publicly available nonce generation mechanism embedded within the single-hotel page template. The nonce emission on public pages eliminates the requirement for legitimate user context, enabling attackers to freely obtain valid nonces and subsequently access the vulnerable code path that processes the 'post_id' parameter.
This vulnerability directly maps to CWE-89 which classifies SQL injection as a weakness where untrusted data is incorporated into SQL queries without proper sanitization or parameterization. The attack vector aligns with ATT&CK technique T1213.002 which focuses on data from information repositories, specifically targeting database systems through injection techniques. The impact extends beyond simple data extraction to potentially allow full database compromise, user credential theft, and unauthorized modification of travel booking records within the plugin's functionality.
The security implications are severe as attackers can leverage this vulnerability to access sensitive customer information including personal details, booking records, and payment information stored within the WordPress database. The lack of proper input validation combined with exposed AJAX endpoints creates a perfect storm for exploitation, where the attack surface is deliberately expanded to include unauthenticated users who would normally require legitimate authentication to access such functionality. Organizations using affected versions should immediately implement mitigation strategies including input sanitization, parameterized queries, and restricting public access to vulnerable AJAX handlers.
Mitigation measures should prioritize updating to patched versions of the plugin when available, implementing proper input validation for all user-supplied parameters, and configuring appropriate access controls for AJAX endpoints. The WordPress security community should monitor for similar vulnerabilities in third-party plugins that expose unauthenticated functionality or fail to properly sanitize database inputs. Additionally, administrators should conduct comprehensive security audits of their plugin ecosystem to identify other potential SQL injection vectors and ensure proper implementation of database query preparation techniques as recommended by industry standards including OWASP Top Ten and NIST cybersecurity guidelines.