Deepshikha Paty
DI-ASM


Access the lab


What is Broken Function Level Authorization?

It's a security flaw where a website or app doesnโ€™t properly check what actions a user is allowed to do.

So, even if you're not an admin, you might still be able to access admin-only functions (like deleting users or changing roles) just by guessing or changing the URL.

This usually happens when:


Example :

Example

Imagine a website with two types of users:

  • ๐Ÿ‘ค Normal user
  • ๐Ÿ›ก๏ธ Admin user

Admins can access this URL to delete a user:

https://example.com/admin/delete-user?userId=123

  • But the website does not check if you're actually an admin.
  • So if a normal user copies that URL and opens it in their browser, the action still works!

๐Ÿšจ This is Broken Function Level Authorization โ€” the function (delete-user) is not protected by checking the userโ€™s role.


๐ŸŽฏ Why it's dangerous:


โœ… How to prevent it:

  1. ๐Ÿ” Always check user roles on the server before allowing any sensitive action.
  2. โŒ Do not rely only on hidden buttons or menus to block users.
  3. ๐Ÿงช Test every function to make sure itโ€™s only available to the correct roles (admin, manager, etc.).

๐Ÿ“ In Short:

Summary

Broken Function Level Authorization means users can access functions they shouldn't be allowed to, because the server doesn't check permissions properly.