This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
Testing for Bypassing Authorization Schema (OTG-AUTHZ-002)
OWASP Testing Guide v3 Table of Contents
This article is part of the OWASP Testing Guide v3. The entire OWASP Testing Guide v3 can be downloaded here.
OWASP at the moment is working at the OWASP Testing Guide v4: you can browse the Guide here
This is a draft of a section of the new Testing Guide v3
Brief Summary
This kind of test focuses on verify how the authorization schema has been impleemted for each role/privilege to access to reserved functions/resources.
Description of the Issue
For every specif roles the tester holds during the assessment, for every function and request that the application executes during the post-authentication phase, it is necessary to verify:
- It's possible to access to that resource also if the user is not authenticated?
- It is possible to access after the log-out?
- It is possible to access to functions and resources that should be accessible to a user that holds a different role/privilege?
- Try to access to the application as an administrative user and track all the adiministrative functions. It is possible to access to administrative functions also if the tester is logged as a user with standard privileges?
- It is possible to use these functionalities for a user with different role and for whom that action should be denied?
Black Box testing and example
Testing for Topic X vulnerabilities:
For example if the application 'AddUser.jsp' is a part of the administrative menu of the application, and it is possible to access request the following URL:
The following HTTP request is generated calling the AddUser function:
POST /admin/addUser.jsp HTTP/1.1 Host: www.example.com [others HTTP headers]
userID=fakeuser&ruolo=3&gruppo=grp001
What if a not adimistrative user try to execute that request? The user will be created? He can use his privileges?
Result Expected:
Execute administrative functions or access to administrative resources as a standard user.
Gray Box testing and example
Testing for Topic X vulnerabilities:
...
Result Expected:
...
References
Whitepapers
...
Tools
...