# WP Hotelier <= 2.20.0 - Unauthenticated Insecure Direct Object Reference via Predictable Reservation Key

- **ID:** WPSEC-2026-3204
- **Plugin:** WP Hotelier (`wp-hotelier`), https://wordpress.org/plugins/wp-hotelier/
- **Affected versions:** all versions before 2.20.1
- **Fixed in:** 2.20.1 (Update to 2.20.1 or later.)
- **Severity:** Medium 4.8 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N)
- **Weakness:** CWE-330
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-16)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-hotelier
- **Fix released:** 2026-11-15
- **Published:** 2026-11-16
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3204/

## Description

The WP Hotelier plugin for WordPress is vulnerable to Insecure Direct Object Reference via the reservation key in all versions up to, and including, 2.20.0, due to reservation keys being generated with uniqid(), which produces a predictable, timestamp-based value. Because this key is the only check guarding guest access to the reservation-received page, the pay-reservation page and the guest cancellation action, this makes it possible for unauthenticated attackers who know a reservation ID and its approximate creation time to guess the key, view other guests' reservation and personal details, and cancel other guests' reservations.

## References

- https://wpsec.com/vuln/WPSEC-2026-3204/
- https://plugins.svn.wordpress.org/wp-hotelier/tags/2.20.1/
- https://wordpress.org/plugins/wp-hotelier/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3204/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
