OWASP Security Shepherd – Failure To Restrict Access Solution – LSB

Am I Vulnerable To ‘Failure to Restrict URL Access’?

The best way to find out if an application has failed to properly restrict URL access is to verify every page. Consider for each page, is the page supposed to be public or private. If a private page:

  1. Is authentication required to access that page?
  2. Is it supposed to be accessible to ANY authenticated user? If not, is an authorization check made to ensure the user has permission to access that page?

External security mechanisms frequently provide authentication and authorization checks for page access. Verify they are properly configured for every page. If code level protection is used, verify that code level protection is in place for every required page. Penetration testing can also verify whether proper protection is in place.

Hyperledger Fabric Fundamentals (LFD271) $299

With that in mind let’s tackle the next Security Shepherd challenge – Failure To Restrict Access.FTRA1

Above is the screen we are presented with on Security Shepherd. It’s all straight forward and what we notice straight away is that the words “web page” is highlighted. When we click on it the website does nothing but it still looks like a link. We will need the developer tools in Chrome to look at the code behind it. Right click on the highlighted words and choose Inspect. This will inspect that elements HTML.

FTRA3

Now we can see the code a bit clearer. Notice the div 2 lines under the web page text, the style=”display: none”. This is telling the web page not to display that element. Let’s change the text shall we?

FTRA4

Instead of style=”display: none” we change it to style=”display: text” this pops onto the screen what the developer did not want us to see.  FTRA5

We have access to the Admin page now, this is where the key to the round resides. Click on the link and collect the key.

$299 REGISTERS YOU FOR OUR NEWEST SELF PACED COURSE! LFD201 – INTRODUCTION TO OPEN SOURCE DEVELOPMENT, GIT, AND LINUX!

How Do I Prevent ‘Failure to Restrict URL Access’?

Preventing unauthorized URL access requires selecting an approach for requiring proper authentication and proper authorization for each page. Frequently, such protection is provided by one or more components external to the application code. Regardless of the mechanism(s), all of the following are recommended:

  1. The authentication and authorization policies be role based, to minimize the effort required to maintain these policies.
  2. The policies should be highly configurable, in order to minimize any hard coded aspects of the policy.
  3. The enforcement mechanism(s) should deny all access by default, requiring explicit grants to specific users and roles for access to every page.
  4. If the page is involved in a workflow, check to make sure the conditions are in the proper state to allow access.

 

Thanks for reading and don’t forget to return for further OWASP Security Shepherd solutions.

QuBits

REGISTER TODAY FOR YOUR KUBERNETES FOR DEVELOPERS (LFD259) COURSE AND CKAD CERTIFICATION TODAY! $499!

 

1 Comment

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.