Skip to content
Access control Disclosed report Intermediate CVE-2021-32726

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.

rtod Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 40 days
  • Disclosed after 3 months
  1. userA has an account on serverA
  2. userA enables passwordless login (webauthn) and registers a key/device
  3. userA is removed from the system
  4. a new user comes along and gets assigned userA as id
  5. the old userA tries to login with their key
  6. 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!

The original report as published on HackerOne, by rtod. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. A user creates an account and registers a WebAuthn key for passwordless login.
  2. The user is deleted from the system.
  3. A new user is created and receives the same user id as the deleted user.
  4. The old user logs in with their still-registered key.
  5. 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.

More by rtod

View all

33 more disclosed reports, best first.

More from Nextcloud

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.