New users can read all Nextcloud Deck data from previous user with same username
When a Nextcloud account is deleted, its Deck app data (boards, stacks, cards) is not removed from the database. If a new account is later created with the same username, that new user can see all the previous user's confidential Deck content.
Originally disclosed on HackerOne
- Triaged in 18 hours
- Fixed in 16 days
- Disclosed after 9 months
First of all: Sorry, i know there is no scope "Deck" but both Joas and Jus pointed me to hackerone to report this security issue.
- As an administrator create Nextcloud account "test"
- Log in as "test"
- Go to Deck app and create some boards, stacks and cards with personal or confidential stuff.
- As an administrator delete Nextcloud account "test"
- As an administrator create new Nextcloud account "test" (password doesn't need to match)
- Log in as "test" (This might be a completely other human than in step 2!)
- Go to Deck app and see all the secret stuff from the previous user
Impact
Attacker is able to see confidential or private data from previous users with the same user name.
Since the private data of the users is sacred, it is a no-go that the data isn't hard deleted form the database when the user account gets deleted, but it is even worse that another user with the same username can read all the stuff (without any effort to restore data).
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 Deck app does not delete or reassign its data when a Nextcloud user account is deleted, and it identifies data only by username rather than a unique user ID.
Impact
An attacker who obtains a recreated username could read confidential or private Deck data belonging to the previous user with that username.
What the attacker needed
Administrator access to create and delete accounts; ability to recreate the same username; Deck app installed
The fix
The Deck app should hard-delete a user's data when the Nextcloud account is deleted.
How it was found
- As an administrator, create a Nextcloud account named test.
- Log in as test and use the Deck app to create boards, stacks and cards containing private information.
- As an administrator, delete the Nextcloud account test.
- As an administrator, create a new Nextcloud account also named test (the password can differ).
- Log in as the new test account and open the Deck app.
- Observe all the Deck content created by the previous test user.
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.
In Nextcloud, the Deck app stores boards and cards tied to a username. When an admin deletes an account, the app's data is left behind in the database instead of being erased. If someone later creates a new account with the exact same username, the app shows them the old data, so private information leaks to a different person.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.