Skip to content
Access control Disclosed report Beginner CVE-2021-4119

BookStack is vulnerable to Improper Access Control.

BookStack before 21.11.3 had an improper access control flaw in the /search/users/select endpoint, which was meant for admins. A logged-in user with no privileges or a guest (if public access was enabled) could access it to dump all usernames and harvest email addresses by searching.

bookstackapp/bookstack

Originally disclosed on huntr

BookStack prior to version 21.11.3 is vulnerable to Improper Access Control. A logged-in user with no privileges OR guest user (if public access enabled) can access the /search/users/select AJAX endpoint meant for admins to manage audit logs, to dump all usernames existing in the Bookstack database. This can also be used to harvest email belonging to a user because BookStack also uses the code where(email, like, % . $search . %) to search for users based on email.

From the GitHub Advisory Database (GHSA-9c5c-5j4h-8q2c, 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

Likely the /search/users/select endpoint lacked an authorisation check to ensure the requester had admin privileges.

Impact

An attacker could dump all usernames and harvest email addresses, which could aid further attacks such as phishing or password guessing.

What the attacker needed

A logged-in user with no privileges; or guest access if public access enabled

The fix

The vulnerability was fixed in version 21.11.3.

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.

This is a case where a feature meant only for administrators was not properly protected. Anyone with an account, or even a guest if the site allowed public access, could use a special web address to list every username in the system. Because the same search also looked at email addresses, an attacker could try different letters to find out people's email addresses.

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 bookstackapp/bookstack

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.