How to do it...

Let's look at a practical example using WebGoat:

  1. Log in to WebGoat and go to Access Control Flaws | LAB Role Based Access Control | Stage 1: Bypass Business Layer Access Control:
  1. Use Tomcat's credentials (Tom:tom) to log in and enable Firefox's Developer Tools (F12).
  2. Let's inspect the list of employees. We can see that the only element, Tom Cat (employee), is an option HTML tag with the value 105:
  1. Go to the Network tab in Developer Tools and click on ViewProfile. Notice how the request has a parameter called employee_id and its value is 105:
  1. Click on ListStaff to go back to the list.
  2. Change to the Inspector tab in Developer Tools.
  3. Double-click on the value (105) of the option tag and change it to 101. We want to see whether it is possible to look at other users' information by changing this parameter.
  1. Click on ViewProfile again:
  1. Now, the task in WebGoat is to delete Tom's profile using his own account, so let's try that. Click on ListStaff to go back to the list.
  2. Now, inspect the ViewProfile button.
  1. Notice how its name is action and its value is ViewProfile; change the value to DeleteProfile:
  1. The text in the button will change. Click DeleteProfile and this stage will be completed:
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.164.34