Home

Published

- 2 min read

OWASP Jucie Shop. Broken Access Control

img of OWASP Jucie Shop. Broken Access Control

This blog explains a breakdown of the Broken Access Control in the OWASP juice shop website.

Manipulate Basket

Put another product in another user’s shopping Basket

  • Go to Account > Login > register new user New user create

  • Now login with new user New user login

  • Go to basket. See that it’s empty

  • Go to Home page and add Banana Juice to basket New user login

  • Go to burp and check request

  • See the productId, BascketId and quantity

  • Send request again, we see a product id validation error errors

  • Change productid and try again success Noe we get a success reponse

  • Let’s check our basket for the added product success

  • We see a T-Shirt

  • Now, that we understand the functionality, let’s see if we can add something to another basket that we shouldn’t have access to

  • Change basketid to 6, we et 401 unauthorized error. Now, what can we do to circumvent this control Error BAC Basketid change

  • There are fairly various mechanisms to bypass access control

See OWASP parameter pollution strategies

We could try to send the request with the parameter twice

  • So, what we’re trying to do here is parameter pollution.

  • After lots of maniputlation, we get a successful addition Error BAC Basketid change

  • We see that using the actual basketid first before the target basket leads us to add items to a basket we originally should not have contorl over.