Skip to content
Access control Disclosed report Beginner CVE-2022-1397

Privilege escalation in easyappointments

The API authorization only checked whether a user existed, not their permissions. A low-privileged user could create an admin account and take over the system.

alextselegidis/easyappointments

Originally disclosed on huntr

The Easy!Appointments API authorization is checked against the user's existence, without validating the permissions. As a result, a low privileged user (eg. provider) can create a new admin user via the "/api/v1/admins/" endpoint and take over the system. A patch is available on the develop branch of the repository.

From the GitHub Advisory Database (GHSA-7f62-4887-cfv5, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The API endpoint for creating admins only verified that the requesting user existed, not that they had admin privileges.

Impact

A low-privileged user could create an admin account and take over the system.

What the attacker needed

A low-privileged account (e.g. provider)

The fix

A patch is available on the develop branch of the repository.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

The system checked that you were logged in but not what you were allowed to do. So a normal user could use a special web address to create a new administrator account and then control the whole system.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from alextselegidis/easyappointments

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.