Lucene search

K
huntrSeifallahhomrani162096B15-2B7B-4DE3-96D1-32754C5F9D44
HistorySep 18, 2022 - 11:50 a.m.

User's session persist after permanently deleting his account

2022-09-1811:50:13
seifallahhomrani1
www.huntr.dev
12
user session
permanently delete
admin role
access control

0.001 Low

EPSS

Percentile

42.9%

Description

If a user is logged in, and an admin decided to delete his accountpermanently, the user is still able to perform his normal actions until his session gets expired.

If a logged in user with admin role is deleted permanently, he’s still able todeleteother adminspermanently, and if they are not logged in at that moment, they won’t be able to access their account in the future.

Proof of Concept

  • Login as “admin” (Super-Admin)
  • Create a user ( tmp_admin ) with admin role
  • Login as “tmp_admin” in another browser
  • Using the “admin” account, delete “tmp_admin” account permanently
  • Go back the other browser where “tmp_admin” is logged in, and perform your normal actions, like creating a ticket, etc.
  • Log out from “admin” account
  • Using “tmp_admin” delete the “admin” account permanently
  • Now, you can’t login as “admin”

0.001 Low

EPSS

Percentile

42.9%

Related for 62096B15-2B7B-4DE3-96D1-32754C5F9D44