Provider+ Arbitrary Provider Password Update via IDOR
CVSS v3.1 Vector Breakdown
Base Score: 4.7 / 10CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:LSummary
Amelia Pro (< 9.8) does not verify that an authenticated employee (provider) owns the provider account being updated. When the Employee Panel is enabled, an authenticated employee with panel access can overwrite another peer employee’s cabinet password via Insecure Direct Object Reference (IDOR) by omitting the email parameter, gaining access to their employee cabinet interface, customer appointments, and schedule.
Technical Details & Root Cause
The plugin’s API handler for updating users (/users/providers/{id}) via wpamelia_api checks that the caller possesses a valid provider cabinet token, but fails to enforce an ownership check ensuring the token belongs to the targeted provider ID being modified.
While updating the email field checks for uniqueness across existing accounts (returning an “Email already exist” error if different from the target), omitting the email field entirely bypasses this check. The server then processes the update request and overwrites the target provider’s password with the attacker-supplied value.
Scope & Impact
- Horizontal Privilege Escalation / Peer Account Takeover: An employee can overwrite another peer employee’s cabinet password, locking them out of their cabinet and accessing their assigned bookings and schedule.
- Scope Limitations:
- Requires prior access to an authenticated Employee/Provider account (
PR:H). - Does not escalate privileges to WordPress administrator, nor does it provide access to the WordPress backend (
wp-admin), as it only affects the Amelia Employee Cabinet panel. - Modifying the victim’s email is blocked by a collision check, restricting the write to the name and password fields.
- Requires prior access to an authenticated Employee/Provider account (
Fixed In
Fixed in version 9.8 by enforcing strict identity and ownership validation, ensuring that authenticated providers can only modify their own profile data.