Skip to main content
Vulnerability Database/CVE-2025-13208

CVE-2025-13208: FantasticLBP Hotels Server SQL Injection

CVE-2025-13208 is an SQL injection vulnerability in FantasticLBP Hotels Server affecting the hotelList.php file. Attackers can remotely exploit this flaw through parameter manipulation. This article covers technical details, impact analysis, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-13208 Overview

CVE-2025-13208 is a SQL injection vulnerability in the FantasticLBP Hotels Server project. The flaw resides in controller/api/hotelList.php, where the subjectId and cityName parameters are passed into database queries without proper sanitization. Remote attackers with low privileges can manipulate these parameters to inject arbitrary SQL statements. The project uses a rolling release model, so no fixed version identifier is available for affected or patched builds. Public exploit details have been disclosed, and the vendor did not respond to disclosure outreach. The weakness is tracked under [CWE-74] (Improper Neutralization of Special Elements in Output Used by a Downstream Component).

Critical Impact

Authenticated remote attackers can inject SQL through the subjectId or cityName arguments in hotelList.php, exposing hotel database contents and enabling unauthorized data manipulation.

Affected Products

  • FantasticLBP Hotels Server (rolling release)
  • Commit 67b44df162fab26df209bd5d5d542875fcbec1d0 and earlier builds
  • Deployments exposing controller/api/hotelList.php to untrusted callers

Discovery Timeline

  • 2025-11-15 - CVE-2025-13208 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-13208

Vulnerability Analysis

The vulnerability is a classic SQL injection in a PHP-based API endpoint. The handler in controller/api/hotelList.php builds a SQL query that concatenates request parameters directly into the statement. Both subjectId and cityName are injectable sinks. An attacker can supply crafted values to break out of the expected string or integer context and append arbitrary SQL clauses. Because the endpoint is reachable over the network, exploitation does not require local access. The attacker only needs the minimal authentication level the API accepts to invoke the hotel list functionality. Successful exploitation permits reading, modifying, or deleting records in the backing database, and in some configurations, extracting server metadata through nested queries.

Root Cause

The root cause is missing input validation and the absence of parameterized queries. The affected PHP code trusts request input and interpolates subjectId and cityName directly into SQL strings. No type casting, allow-list filtering, or prepared statement binding is applied before execution.

Attack Vector

An attacker sends an HTTP request to the hotel list API endpoint with a malicious payload supplied in the subjectId or cityName parameter. The crafted payload closes the original SQL fragment and appends attacker-controlled clauses such as UNION SELECT statements or boolean-based blind probes. Technical details and reproduction notes are documented in the GitHub CVE issue tracker and the VulDB entry 332527.

Detection Methods for CVE-2025-13208

Indicators of Compromise

  • HTTP requests to controller/api/hotelList.php containing SQL metacharacters such as ', --, UNION, SLEEP(, or information_schema in subjectId or cityName.
  • Database error messages or elevated response latency correlated with requests to the hotel list endpoint.
  • Unexpected SELECT activity against hotel-related tables outside normal application workflows.

Detection Strategies

  • Deploy web application firewall rules that flag SQL syntax tokens in the subjectId and cityName parameters.
  • Enable verbose query logging on the backing MySQL or MariaDB instance and alert on anomalous UNION or time-delay functions.
  • Correlate authentication logs with API request bodies to identify low-privilege accounts probing the endpoint.

Monitoring Recommendations

  • Baseline normal request patterns for hotelList.php and alert on parameter length or character-class deviations.
  • Monitor outbound database connections for anomalous row counts returned to the application server.
  • Forward web and database telemetry to a centralized analytics pipeline for cross-source correlation.

How to Mitigate CVE-2025-13208

Immediate Actions Required

  • Restrict access to controller/api/hotelList.php using network ACLs or authenticated reverse proxy rules until a code fix is deployed.
  • Audit application logs for prior exploitation attempts against the subjectId and cityName parameters.
  • Rotate database credentials used by the application if evidence of exploitation is found.

Patch Information

No vendor patch is available. The project uses a rolling release model and the maintainer did not respond to disclosure contact, per the published advisory. Operators should apply source-level fixes by converting the affected queries to prepared statements with bound parameters and validating subjectId as an integer and cityName against a strict character allow-list.

Workarounds

  • Place a web application firewall in front of the API to block SQL metacharacters in the vulnerable parameters.
  • Enforce strict server-side input validation, casting subjectId to an integer before use.
  • Apply least-privilege database accounts that cannot read system catalogs or write to sensitive tables.
  • Disable or firewall the hotel list API if it is not required for production operation.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.