Lab 2 – Hacking the Juice Shop ------------------------------ Objective ~~~~~~~~~ - Demonstrate the vulnerabilities in the Juice Shop web application. - Demonstrate a cross site scripting (XSS) vulnerability. - Demonstrate a SQL injection vulnerability. - Demonstrate a privilege escalation vulnerability. - Demonstrate an unauthorized file access. Task – Demonstrate a cross site scripting (XSS) vulnerability ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This hack we will cause a simple reflected XSS attack on the Juice Shop application by compromising a parameter value in the URL. First go to **Account** in the upper right corner, then to **Orders and Payment**, select **Order History**. .. image:: ../images/mod1lab2-xss-orderhistory.png Click on the truck. This will take you to an expected delivery page with search results. Carefully look at the URI and notice that it is not encoded or using a trusted html link for the parameter value. .. image:: ../images/mod1lab2-xss-uricompare.png Paste the following code after **yourhost.access.udf.f5.com/#/track-result?id=** in the URI. .. code-block:: none