forked from juice-shop/juice-shop
-
Notifications
You must be signed in to change notification settings - Fork 2
Lab 04 Broken Access Control
Tomas Rosenqvist edited this page Nov 19, 2018
·
7 revisions
- With the Juice Shop open, go to the Sources tab of the Developer tools in your browser.
- Go to the
dist/juice-shop.min.jsresource in the source tree. - Notice how the file has been minified and is hard to read.
- Use the "Pretty print"/code formatting feature to make it more readable.
- Scroll down a bit to find the route configuration (try searching within the file view for
routeproviderif you can't find it). - This section shows some of the logical contents of the site, not all of which are accessible via the navigation.
- Notice how there's a route that looks particularly interesting called
/administration.
- Try appending
/administrationafter the hash sign (#) in the address bar of your browser.
- What security measures seems to have been used to protect the Administration section from unintended use?
- Login as any user.
- Add some Strawberry juice to the basket.
- Logout.
- Login as any other user (create a new if necessary).
- Go to the "Application"(Chrome) or "Debug"(Edge) tab of the developer tools and check under "Session storage".
- Notice there's a
bidkey there. Maybe "bid" is short for "basket id"? - Decrease the value of
bidby 1. - Refresh the page.
- Go to the basket/checkout page.
- What risk does this present to
- the Juice Shop?
- the customers of the Juice Shop?
- How could this vulnerability be negated?