Testing for Bypassing Authorization Schema (OTG-AUTHZ-002)

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: https://www.example.com/admin/addUser.jsp

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: ...

Gray Box testing and example
Testing for Topic X vulnerabilities: ... Result Expected: ...