Fix account-takeover: bind users to nextcloud_id, not email
Deploy / deploy (push) Successful in 16s
Deploy / deploy (push) Successful in 16s
Matching users by email alone allows an attacker with a self-registered Nextcloud account to hijack any Filament user. Now we look up by nextcloud_id first; email is only used when creating a brand-new account, and nextcloud_id is immediately written to the row so future logins use the stable Nextcloud user ID. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
25d9330538
commit
4b99ffea15
3 files changed
+41
-7
No files matched your search
@@ -22,6 +22,7 @@ class User extends Authenticatable implements FilamentUser
|
||||
'name',
|
||||
'email',
|
||||
'password',
|
||||
'nextcloud_id',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user