Users are able to change the linked user, but not the supposed fields #509

Closed
opened 2021-09-26 00:27:04 +02:00 by tteichler · 9 comments
Owner

If you allow users to edit fields on themselves (e.g. last_name), they are theoretically able to change the linked user. Django will throw an error because django.db.utils.IntegrityError: duplicate key value violates unique constraint "core_person_user_id_key", but this is not an security feature…

Funniest thing about: Users are NOT able to change the configured allowed fields.

If you allow users to edit fields on themselves (e.g. last_name), they are theoretically able to change the linked user. Django will throw an error because `django.db.utils.IntegrityError: duplicate key value violates unique constraint "core_person_user_id_key"`, but this is not an security feature… Funniest thing about: Users are NOT able to change the configured allowed fields.
Author
Owner

assigned to @debdolph

assigned to @debdolph
Author
Owner

created merge request !2362 to address this issue

created merge request !2362 to address this issue
Author
Owner

mentioned in merge request !2362

mentioned in merge request !2362
Owner

changed the description

changed the description
Owner

assigned to @hansegucker and unassigned @debdolph

assigned to @hansegucker and unassigned @debdolph
Owner

changed title from Users are able to change the linked user to Users are able to change the linked user{+, but not the supposed fields+}

changed title from **Users are able to change the linked user** to **Users are able to change the linked user{+, but not the supposed fields+}**
Owner

created merge request !2397 to address this issue

created merge request !2397 to address this issue
Owner

mentioned in merge request !2397

mentioned in merge request !2397
nik closed this issue 2021-10-25 20:23:16 +02:00
Owner

mentioned in commit 1290e631a4

mentioned in commit 1290e631a45995249c41ab27eaf75b2a02b4f789
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core#509
No description provided.