GHSA-4vcf-q4xf-f48m Better Auth Passkey Plugin allows passkey deletion through IDOR
HighCVSS 7.1
- Published
- Updated
- Exploit status
- No public exploit known
Description
Summary
Affected versions of the better-auth passkey plugin allow users with any valid session to delete arbitrary passkeys via their ID using POST /passkey/delete-passkey.
Details
ctx.body.id is implicitly trusted and used in passkey deletion queries.
better-auth applications configured with useNumberId may use auto incrementing IDs which makes it trivial to delete all passkeys via enumeration.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| better-auth @better-auth/passkey(npm) | < 1.4.0 | 1.4.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| better-auth @better-auth/passkey(npm) | < 1.4.0 | 1.4.0 |
References
- github.com vendor-advisory
- github.com patch
- github.com