Appointment Booking Plugin <= 5.7.4 - Unauthenticated Authentication Bypass via Race Condition on OTP Attempts Counter
- Published
- Last modified
- Status
- published
- Known exploitation
- Not listed in CISA KEV
- Public exploit
- None on Exploit-DB
- Exploitation: none
- Automatable: yes
- Technical impact: total
?
Decision points from CISA's Vulnrichment, assessed (SSVC 2.0.3).
SSVC documentationSummary
The Appointment Booking Plugin – LatePoint | Calendar & Scheduling for WordPress plugin for WordPress is vulnerable to Authentication Bypass via Race Condition in all versions up to, and including, 5.7.4. This is due to a non-atomic read-modify-write on the OTP verification attempts counter in the `verifyOTP` function: the counter is incremented using a stale in-memory value with no conditional `WHERE attempts < 10` guard on the `UPDATE` and no `SELECT ... FOR UPDATE` row lock, creating a TOCTOU window that allows concurrent requests to bypass the 10-attempt lockout. This makes it possible for unauthenticated attackers — who know a target customer's registered email address or phone number — to fire concurrent requests to the `auth__verify_otp` endpoint, defeat the lockout cap, brute-force the 6-digit OTP code, and authenticate as the targeted LatePoint customer, gaining full access to their account, bookings, and personal data. The nonce check present on the endpoint (`otp_verify_otp_nonce`) does not mitigate this issue, as the nonce is publicly emitted by the unauthenticated `request_otp` and `resend_otp` endpoints and is trivially obtainable by any unauthenticated attacker prior to launching the race.
Affected versions
- latepoint Appointment Booking Plugin – LatePoint | Calendar & Scheduling for WordPress
through 5.7.4
References 7
plugins.trac.wordpress.org
- browser/latepoint/tags/5.7.4/lib/helpers/otp_helper.php#L228
- browser/latepoint/tags/5.7.4/lib/helpers/otp_helper.php#L185
- browser/latepoint/tags/5.7.4/lib/controllers/auth_controller.php#L30
- browser/latepoint/tags/5.7.4/lib/controllers/auth_controller.php#L14
- browser/latepoint/tags/5.7.4/lib/models/model.php#L773
- browser/latepoint/tags/5.7.5/lib/helpers/otp_helper.php