Task 1: Perform a simple SQL injection attack
Goal | Perform SQL injection attack |
Task | Perform a simple browser based attack |
Verify task completion | You should see that the SQLi attack is accepted by Juice Shop. |
Log into Kali linux:
https://{{Kali IP}}:8443
To avoid any DNS problems during this workshop, we’ll create a static hosts file entry on the Kali Box to resolve our FortiWeb Cloud protected application
- Open the terminal emulator by clicking on the black box at the bottom of the Kali Home screen. At the prompt, type:
bash sudo nano /etc/hosts
When the host file opens, add the following 2 lines to the bottom of the file, and save it.
Navigate to the Firefox browser (located at the top of Kali desktop) and enter our FortiWeb Cloud Protected Juice Shop URL into the navigation bar
https://<FortiWebStudentID>.fwebtraincse.com
. Accept warnings and proceed to the applicationLet’s perform a very simple SQLi attack. To perform a SQLi attack append
?name=' OR 'x'='x
to your URL. Be sure that you use YOUR NUMBER.- For example (be sure to use your studentId)
https://669.fwebtraincse.com/?name=' OR 'x'='x
InfoThe attack will go through, and you will see the Juice Shop Home page
- For example (be sure to use your studentId)