Webauthn tokens are not removed on user deletion
WebAuthn credentials registered by a deleted user were not removed, so when a new account was later assigned the same user id, the old user's key still authenticated and granted access to the new user's data. An attacker who controlled a deleted account could therefore read another user's data.
- Triaged in under an hour
- Fixed in 40 days
- Disclosed after 3 months
- userA has an account on serverA
- userA enables passwordless login (webauthn) and registers a key/device
- userA is removed from the system
- a new user comes along and gets assigned userA as id
- the old userA tries to login with their key
- the old userA can see all data of the new userA
Impact
This can lead to an unauthorized actor gaining full access to the data of another user. As suggested in https://hackerone.com/reports/1200700 a blocklist of old userids would help here. However the data should all be cleaned up as well of course!
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
Impact
An unauthorised actor could gain full access to another user's data.
What the attacker needed
A deleted account with a registered key; user ids are reused for new accounts
The fix
User deletion should remove all associated WebAuthn credentials and data, and reusing old user ids should be avoided, for example with a blocklist of retired ids.
How it was found
- A user creates an account and registers a WebAuthn key for passwordless login.
- The user is deleted from the system.
- A new user is created and receives the same user id as the deleted user.
- The old user logs in with their still-registered key.
- The old user can see the new user's data.
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.
When you set up passwordless login, the server stores a credential tied to your account. If that account is deleted but the credential is left behind, and the same account number is later reused for someone else, the old credential can still log in and land in the new person's account. This is a leftover-data problem: deleting a user must also delete everything linked to them.
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.