July 30, 2026
(BAC)User role controlled by request parameter
firstly we explain what of the User role controlled by request parameter???
By Abdallh Mohamed
1 min read
firstly we explain what of the User role controlled by request parameter???
What is the vulnerability and why does it occur?
In secure programming, the server should determine the user's role (Admin, User, Editor) based on secure data stored in the database and linked to its session/JWT system on the server side only.
However, in applications vulnerable to this flaw:
The server blindly relies on the input parameters that come with the request to determine the user's role.
Since the user has complete control over any request sent from their browser (via tools like Burp Suite or DevTools), they can manipulate the parameters to grant themselves higher privileges (such as an Admin account).
okay her we go solve lab
To solved this lab we should access in admin panel and delete carlos list go
after login to (wiener:peter) We found this in the request
Cookie : Admin=false
What if we made it true?
When we searched for the admin, it appeared to us
Cookie : Admin=false
What if we made it true?
we login admin panel without Authorization
congrat we solved this lab
How to fix
التحقق المركزي على جانب الخادم (Server-Side Authorization)
عدم السماح بالتعديل المباشر على الحقول الحساسة (Prevent Mass Assignment)
تطبيق مبدأ الحظر الافتراضي (Deny by Default)
okay we finished this lab see we later and we solve a new bug