Profile of disabled user stays accessible
Profiles of disabled users remain publicly accessible at a predictable URL, so the user can no longer control or remove the exposed information. An attacker could view personal data that the disabled user cannot modify or delete.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 2 months
- Paid in 3 months
- Disclosed after 3 months
Summary by the program
Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-8f3p-rcm5-mrg3
The report
Userprofiles of disabled users keep staying accessible. on DOMAIN/u/USERID This is quite undesirable as this user has no way to clear or modify this data in case they do not want it exposed anymore. I'd assume profiles of disabled users would not be visible to ensure they can always be in control of their own data.
Impact
exposure of user info that they can't control anymore.
What the report shows
The target is the user profile feature of Nextcloud server, reachable at a path of the form DOMAIN/u/USERID. The researcher, mikaelgundersen, reported that the profile page of a disabled user remains accessible after the account has been disabled. The report was filed on HackerOne against the nextcloud/server asset, rated low severity with a CVSS score of 3.5, classified as improper access control (generic), and paid a bounty of 100.00 USD. It was disclosed on 2022-11-26. The program's summary links the public security advisory GHSA-8f3p-rcm5-mrg3.
The steps, as the report describes them:
- A user account exists and has profile data associated with it.
- The account is disabled.
- The researcher requests the profile URL for that user,
DOMAIN/u/USERID, and the profile is still served.
The report gives no HTTP request, no response body, no status code and no header detail, so the exact request that demonstrates the issue is not reproduced here. The path pattern is the only concrete artefact in the text:
DOMAIN/u/USERID
The researcher's argument is about control rather than confidentiality alone: a disabled user has no way to clear or modify the data once the account is disabled, so if the profile stays reachable, the data stays exposed with no remedy available to its owner. The stated impact is the exposure of user information that the user can no longer control.
Root cause
The report does not analyse the code, so the cause is only implied. The report does not analyse the code, so the cause is not stated. Disabling an account is treated as an authentication and login concern, while the public profile route is treated as public data and skips the account-state check entirely.
Impact
As the report frames it, the impact is the continued exposure of profile information belonging to a disabled account. The person affected cannot log in to change or remove that information, so the exposure persists for as long as the profile route keeps serving it. The report does not claim that any other data, such as files, shares or settings, is reachable, and it does not describe an attacker model beyond anyone who can load the profile URL. The severity rating of low is consistent with that narrow scope.
How this kind of bug works
Account state and data visibility are usually handled by different parts of an application. Authentication checks whether a principal may log in; authorisation checks whether a request may read or change a resource. When an account is disabled, the login path is updated to reject the principal, but read paths that look up resources by identifier often keep their own logic. If those read paths only ask "does this object exist and is it visible?", a disabled owner's objects remain readable.
The bug class is a form of broken access control, specifically a missing state check on a resource that outlives the account's active life. It appears wherever objects are addressed directly by identifier: profile pages, public share links, avatar and thumbnail endpoints, API resources keyed by user ID, and search or directory endpoints that enumerate users. The defence is to make the account-state check part of the authorisation decision for every route that resolves a user, not just the login route, and to decide explicitly what should happen to a disabled user's public artefacts.
How to test for it
A general method for this class:
- Identify routes that resolve a user or a user-owned object by identifier, such as profile pages, public links, avatars and user-scoped API resources.
- Create or obtain two accounts: one whose state you can change (disable, deactivate, suspend, lock) and one ordinary viewer account.
- Record the responses for the target user's routes while the account is active, including status codes and bodies.
- Disable the account through the administrative interface or API.
- Re-request the same routes as the viewer, as an unauthenticated client, and as the disabled user's own session if one still exists. Compare against the baseline.
- Also test the reverse direction: whether the disabled account can still authenticate, refresh tokens, or read its own data, since a partial disable is itself a finding.
A positive result is a route that still returns the disabled user's data, or a status code that indicates success where the application's own policy says the resource should be gone. A negative result is a consistent 403, 404 or redirect to a login or error page across all viewer contexts.
Common false positives: cached responses served by a CDN or reverse proxy rather than the application; public data that the product intentionally keeps available regardless of account state, such as a display name in historical content; and test accounts that were never actually disabled because the state change failed silently. Confirm the state change took effect before drawing conclusions, and repeat requests with cache-busting to rule out caching.
How it is fixed
A general approach for this class is to enforce the account-state check for every route that resolves a user. Where the product wants to keep some data, the policy should be explicit and documented. The program's summary links the advisory GHSA-8f3p-rcm5-mrg3.
Hunting notes
This bug class tends to hide in features added after the core account lifecycle was designed: profile pages, public share links, activity feeds, mention and search endpoints, avatar and thumbnail services, and API resources keyed by user ID. Recon signals include user-scoped URL patterns, endpoints that accept a user identifier as a path or query parameter, and any feature that advertises a public or shareable view. Administrative interfaces that expose enable and disable actions are worth mapping, because they tell you which state transitions to test.
To make a report land, show the state transition and the before and after responses side by side, state clearly which data remains exposed, and explain who can reach it. If the product documents an expectation that disabled accounts are hidden, quote it. Keep the claim to what you demonstrated: a profile that stays readable is a valid low-severity finding, but it is not the same as file access, and overstating it weakens the report.
What happened, in plain words
Nextcloud is a piece of software that organisations and individuals install on their own servers to store files, calendars and contacts, and to collaborate. One of its features is the user profile, a page about a person. Each profile lives at a web address of the form DOMAIN/u/USERID, where DOMAIN is the server's address and USERID identifies the person.
An account can be disabled, and the report concerns what happens to its profile afterwards. The researcher, mikaelgundersen, found that disabling an account does not switch off its profile page. The profile stays reachable at the same address.
The report was filed on HackerOne against the nextcloud/server project. It was rated low severity with a CVSS score of 3.5, classified as improper access control (generic), and paid a bounty of 100.00 USD. It was disclosed on 2022-11-26. The program's summary links the public security advisory GHSA-8f3p-rcm5-mrg3.
The steps in the report
- A user account exists and has profile data associated with it.
- The account is disabled.
- The researcher requests the profile URL for that user,
DOMAIN/u/USERID, and the profile is still served.
The report gives no HTTP request, no response body, no status code and no header detail, so the exact request that demonstrates the issue is not reproduced here. The path pattern is the only concrete artefact in the text:
DOMAIN/u/USERID
Read it as a template rather than a literal address: DOMAIN stands for the server's hostname, and USERID stands for the identifier of the person whose profile you want to see. The point of the step is that the address does not change when the account is disabled. The profile URL keeps serving the profile after the account is disabled.
Why it matters
The researcher's argument is about control rather than confidentiality alone. A disabled user cannot log in, so they have no way to clear or modify the data once the account is disabled. If the profile stays reachable, the data stays exposed with no remedy available to its owner. The stated impact is the exposure of user information that the user can no longer control.
That framing is what makes this a security issue rather than a cosmetic one. People expect that switching an account off also stops the account's public face from being shown. When it does not, the person has lost the ability to decide what is published about them, and the only party who could change that is the administrator.
What is behind it
The report does not analyse the code, so the cause is only implied. The report does not analyse the code, so the cause is not stated. Disabling an account is treated as a login concern, while the public profile route is treated as public data and skips the account-state check entirely.
What is and is not claimed
The impact is the continued exposure of profile information belonging to a disabled account. The report does not claim that any other data, such as files, shares or settings, is reachable, and it does not describe an attacker model beyond anyone who can load the profile URL. The severity rating of low is consistent with that narrow scope.
In general, how this kind of bug works
Account state and data visibility are usually handled by different parts of an application. Two words matter here. Authentication is the check that decides whether someone may log in at all. Authorisation is the check that decides whether a request may read or change a particular resource. A useful everyday comparison is a building: authentication is the reception desk deciding whether you get a badge, and authorisation is the lock on each individual door deciding whether your badge opens it.
When an account is disabled, the login path is updated to reject the person, but read paths that look up resources by identifier often keep their own logic. If those read paths only ask "does this object exist and is it visible?", a disabled owner's objects remain readable. The badge no longer gets you through the front door, but one side door was never connected to the badge system at all.
The bug class is a form of broken access control, specifically a missing state check on a resource that outlives the account's active life. It appears wherever objects are addressed directly by identifier: profile pages, public share links, avatar and thumbnail endpoints, API resources keyed by user ID, and search or directory endpoints that list users. The defence is to make the account-state check part of the authorisation decision for every route that resolves a user, not just the login route, and to decide explicitly what should happen to a disabled user's public artefacts.
How to test for it
A general method for this class:
- Identify routes that resolve a user or a user-owned object by identifier, such as profile pages, public links, avatars and user-scoped API resources.
- Create or obtain two accounts: one whose state you can change (disable, deactivate, suspend, lock) and one ordinary viewer account.
- Record the responses for the target user's routes while the account is active, including status codes and bodies.
- Disable the account through the administrative interface or API.
- Re-request the same routes as the viewer, as an unauthenticated client, and as the disabled user's own session if one still exists. Compare against the baseline.
- Also test the reverse direction: whether the disabled account can still authenticate, refresh tokens, or read its own data, since a partial disable is itself a finding.
A positive result is a route that still returns the disabled user's data, or a status code that indicates success where the application's own policy says the resource should be gone. A negative result is a consistent 403, 404 or redirect to a login or error page across all viewer contexts.
Common false positives: cached responses served by a CDN or reverse proxy rather than the application; public data that the product intentionally keeps available regardless of account state, such as a display name in historical content; and test accounts that were never actually disabled because the state change failed silently. Confirm the state change took effect before drawing conclusions, and repeat requests with cache-busting to rule out caching.
How it is fixed
A general approach for this class is to enforce the account-state check for every route that resolves a user. Where the product wants to keep some data, the policy should be explicit and documented. The program's summary links the advisory GHSA-8f3p-rcm5-mrg3.
Notes for people hunting this bug
This bug class tends to hide in features added after the core account lifecycle was designed: profile pages, public share links, activity feeds, mention and search endpoints, avatar and thumbnail services, and API resources keyed by user ID. Recon signals include user-scoped URL patterns, endpoints that accept a user identifier as a path or query parameter, and any feature that advertises a public or shareable view. Administrative interfaces that expose enable and disable actions are worth mapping, because they tell you which state transitions to test.
To make a report land, show the state transition and the before and after responses side by side, state clearly which data remains exposed, and explain who can reach it. If the product documents an expectation that disabled accounts are hidden, quote it. Keep the claim to what you demonstrated: a profile that stays readable is a valid low-severity finding, but it is not the same as file access, and overstating it weakens the report.
Glossary
- Nextcloud: self-hosted software for storing files and collaborating, installed on a server.
- User profile: a page showing information about a person, such as their name and chosen details.
- Disabled account: an account that has been switched off so its owner can no longer log in.
- DOMAIN: the hostname part of a web address, identifying the server.
- USERID: the identifier that points to a particular user account.
- URL: the address of a page or resource on the web.
- HTTP request: the message a browser sends to a server to ask for a page or resource.
- Response body: the content a server sends back, such as the HTML of a page.
- Status code: a number in the response saying how the request went, for example 200 for success, 403 for forbidden, 404 for not found.
- Header: extra information attached to a request or response, such as content type or caching rules.
- Authentication: the check that decides whether someone may log in.
- Authorisation: the check that decides whether a request may read or change a particular resource.
- Access control: the rules that decide who may reach which resource.
- Improper access control: a flaw where those rules are missing or wrong, letting someone reach something they should not.
- Broken access control: the broader bug class that improper access control belongs to.
- Route: a rule in an application that maps a URL to the code that handles it.
- Endpoint: a specific URL that an application responds to.
- Identifier: a value such as a user ID that names a particular object.
- Session: a logged-in state a server keeps for a browser, usually tied to a cookie.
- Token: a value used to prove identity or permission, often in place of a password.
- Cookie: a small piece of data a browser stores for a site and sends back with requests.
- CDN: a content delivery network, a service that caches and serves content close to users.
- Reverse proxy: a server in front of the application that forwards requests and may cache responses.
- Cache: a stored copy of a response, served again to save work.
- Cache-busting: adding something to a request so a cached copy is not used.
- False positive: a finding that looks real but is not, for example because of caching or a failed state change.
- CVSS: a standard scoring system for the severity of a vulnerability.
- Bounty: a payment made to a researcher for a valid report.
- Advisory: a public notice describing a vulnerability and its fix.
- Regression test: an automated test that checks a fixed bug stays fixed.
- Recon: the exploratory work of mapping an application's features and URLs before testing.