T09 · Insecure Skill Coding Practices
- Location
scripts/booking_api.py:235- Finding
Fabricated Booking Data Presented as Live API Results
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This Booking.com skill presents mock hotel data and unsupported booking actions as if they were live travel results, which could mislead users making reservations.
Do not rely on this skill for real hotel availability, prices, cancellation terms, reviews, or reservations unless it is fixed to call a verified Booking.com partner API and clearly distinguishes live data from test fixtures. Treat any booking prompt or price shown by the current version as non-authoritative.
scripts/booking_api.py:235Fabricated Booking Data Presented as Live API Results
The skill claims it can create and manage Booking.com reservations, but no concrete implementation is present in the provided file. In a travel-booking context, this is especially risky because reservation workflows are high-trust, time-sensitive, and financially consequential, so overstating capability can cause failed bookings, mistaken cancellations, or disclosure of guest details during attempted fulfillment.
The skill claims it can create and manage Booking.com reservations, but no concrete implementation is present in the provided file. In a travel-booking context, this is especially risky because reservation workflows are high-trust, time-sensitive, and financially consequential, so overstating capability can cause failed bookings, mistaken cancellations, or disclosure of guest details during attempted fulfillment.
The skill declares network-dependent behavior and external API usage but does not define any explicit tool scope or allowed-tools boundaries. In an agent environment, this can lead to overbroad or ambiguous network access, making it harder to constrain what endpoints the skill may contact and increasing the chance of unintended data exposure or misuse.
The skill supports reservation creation, lookup, and cancellation but does not warn about sensitive guest data, payment-related information, or account-affecting actions. In this context, the absence of safety and privacy guidance increases the risk that users or agents will provide unnecessary personal data or trigger destructive actions without adequate confirmation.
The file contains user-facing natural-language instructions and output labels exclusively in Chinese, indicating a fixed language choice. Under the policy, forcing a specific language without offering user choice or documenting a justified locale constraint is a natural-language policy violation.
The formatter unconditionally tells users that prices include taxes and fees and that free cancellation is supported, even though the returned hotel data does not prove either claim. In a travel-booking assistant, this can mislead users into making purchasing decisions based on false terms, creating financial harm, disputes, or policy violations.
The UI text instructs users to book by replying with a room number, but the file contains no booking implementation or stateful handoff to a real reservation flow. In a booking skill, this is dangerous because it implies an action capability the system does not have, which can cause users to believe a reservation was initiated or confirmed when it was not.
The file contains natural-language instructions and parameter defaults that assume Chinese as the required or default language, including '如非此版本,请拒绝执行' and multiple 'language' defaults set to 'zh'. This creates a locale/language constraint without offering an explicit user choice, which matches the policy category for forced language or locale behavior.