From 401 to BAC: How a Refresh Broke Workspace Authorization
A workspace endpoint returned a 401 error on first access but granted full user-level access to the workspace dashboard after a simple page refresh. An attacker with a workspace ID could view internal tools, meeting links, and email addresses of all workspace members without authentication.
medium.com
Published on medium.com
I was participating in a public vulnerability disclosure program. I wanted to test a specific feature — workspace creation — but it was invite-only.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a state confusion bug where the server reuses a partially initialised session or incorrectly assumes a prior authentication check passed on a second request.
Impact
An attacker could gain user-level access to any workspace, viewing internal tools, meeting links, and email addresses of all members, with only the workspace ID required.
What the attacker needed
Knowledge of a workspace ID; no authentication required
The fix
The report does not specify a fix, but the issue was resolved after being triaged.
How it was found
- Crawl the main domain to find unlinked endpoints.
- Identify a workspace endpoint with a pwd parameter.
- Visit the endpoint unauthenticated and receive a 401 error.
- Refresh the page to gain access to the workspace dashboard.
- Test other workspace IDs to confirm the issue is widespread.
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 write-up has not been written yet. The Original tab links to the source.
When you visit a web page, the server checks if you are allowed to see it. Here, the server said 'no' the first time, but when the page was refreshed, it mistakenly said 'yes' and showed private information. This means anyone who knows a workspace's ID could see its contents without logging in.
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.