sudo apt update
sudo apt install nodejs npm git -y
git clone https://github.com/sambowne/juice-shop-orig.git --depth 1
cd juice-shop-orig
npm install
npm start
It took about 7 minutes to install on a
Google Cloud server with 2 vCPUs and 8 GB RAM.
I tried using a minimal server and abandoned it
after waiting 30 minutes for the installation.
OWASP Juice Shop starts, showing a "Server listening on port 3000" message, as shown below.
https://console.cloud.google.comAt the top left, click the three-bar icon.
Point to "Compute Engine" and click "VM instances", as shown below.
On the "VM instances" page, click the name of your server, as shown below.Note your External IP address, outlined in yellow in the image below. You'll need it later.
On the next page, in the "Network interfaces" section, click your Network name, which is probably "default", as shown below. On the "VPC network details" page, on the left side, click Firewall, as shown below. On the "Firewall policies" page, at the top, click "CREATE FIREWALL RULE" and enter these values:http://35.222.29.122:3000The Dashboard appears, as shown below.
Flag SC 100.1: Help Message (15 pts)
At the top left of the "OWASP Juice Shop" page, click the three-bar "hamburger" icon.The flag is covered by a green rectangle in the image below.
Then execute this command:
nano ./frontend/src/assets/i18n/en.json
Add the word "Changed", outlined in yellow
in the image below.
Execute these commands to rebuild and start
the app:
npm install
npm start
At the top left of the "OWASP Juice Shop" page,
click the three-bar "hamburger" icon.
The change is visible, as shown in the image below.
Then execute this command:
grep Customer\ Feedback -r . | less -S
Then
execute this command:
nano ./frontend/src/assets/i18n/en.json
A long list of files containing "Customer Feedback"
appears. Press the SPACEBAR to go to the next page,
as necessary, until you see the line outlined
in yellow below.
Press Q to exit "less".
Use nano to edit that label and make it "Customer Feedback CHANGED".
Rebuild the app and restart it.
Verify that the change is visible, outlined in yellow in the image below.
Execute these commands to rebuild and start the app:
npm install
npm start
At the top left of the "OWASP Juice Shop" page,
click the three-bar "hamburger" icon.
The change is visible, as shown in the image below.
Flag SC 100.2: Feedback Message (10 pts)
Stop the app. Edit the file you just changed.Examine the lines near the change you made.
The flag is covered by a green rectangle in the image below.
Posted 2-26-24