Software Development Community Question

What are the risks of broken function level authorization in APIs?

Posted on 2025-01-22 • In Software Development • By Bradley Myers

I'm trying to understand why unauthorized administrative access happens so frequently. What are the biggest API security mistakes developers make when structuring user roles and access rights? We need to fix our broken function level authorization immediately.

3 Answers 8,970 Views

All answers to this question 3 Answers

Stephanie Page Answered on 2025-01-25
Answered

Broken function level authorization occurs when an application relies on the UI to hide admin features rather than validating roles on the server side. Developers might make an endpoint like /api/v1/users require admin rights, but then create an endpoint like /api/v1/admin/deleteUser and forget to restrict it. Attackers can guess these URL patterns or read documentation files to find hidden paths. They then send direct API requests to execute administrative commands that their normal user account should never be allowed to run.

Ronald Fischer Answered on 2025-01-26
Answered

Is it better to use a Role-Based Access Control system for this, or should we move toward a more granular Attribute-Based Access Control model instead?

Douglas Newman Commented on 2025-01-28
Commented

For most applications, Role-Based Access Control is completely sufficient as long as it is systematically enforced at the global controller level. Attribute-Based Access Control is great but adds massive complexity that you only really need for highly dynamic enterprise environments.

Rebecca Floyd Answered on 2025-01-29
Answered

The fundamental problem is adopting a default-allow security posture. Instead, your backend framework should default to denying all API access unless explicit permissions are specified.

Bradley Myers Commented on 2025-01-30
Commented

Completely agree, Rebecca. A deny-by-default architecture ensures that even if a developer forgets to add security annotations to a new endpoint, it remains closed to the public.

Write a Comment

Your email address will not be published. Required fields are marked (*)

Join the LearnersEra Community

Ask questions, share knowledge and learn from professionals across technology, project management and certification topics.

Change Country and Nearest City

Select your country and nearest city to see courses available in your region.