Unauthenticated Post-Booking Action Trigger
CVSS v3.1 Vector Breakdown
Base Score: 6.5 / 10CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:LSummary
Amelia (< 2.4.9) does not require authentication or a valid session token before executing its post-booking action chain. This allows unauthenticated remote attackers to trigger booking notifications, integration callbacks, and paid notification services for arbitrary bookings by enumerating sequential booking and payment identifiers.
Technical Details & Root Cause
The endpoint /bookings/success/{id} in wpamelia_api handles post-booking execution, including dispatching confirmation notifications and firing webhook integrations. However, it does not verify whether the caller is authenticated or authorized to access the specified booking.
While version 2.4.8 introduced a nonce check (wpAmeliaNonce), the nonce can be harvested anonymously by sending an empty POST request to /bookings. Because this nonce is valid across anonymous sessions and booking/payment identifiers are sequential integers, an attacker can enumerate these identifiers without restriction.
Scope & Impact
- Financial Resource Exhaustion: The action chain triggers automated notifications, which can consume paid third-party API credits (such as Twilio SMS or WhatsApp messages) configured on the target site.
- Webhook Integration Leakage: Invokes outgoing webhook callbacks carrying booking metadata to configured third-party integration endpoints.
- Customer & Provider Harassment: Dispatches repetitive confirmation emails and messages to legitimate clients and providers for past or pending bookings.
Fixed In
Fixed in version 2.4.9 by implementing cryptographic token authorization in SuccessfulBookingCommandHandler.php and SuccessfulBookingController.php, requiring a secret booking checkout token verified with hash_equals().