Pedro Reis

Web Application Pentest — OWASP Juice Shop

23 June 2022 · web-security, burp-suite, sql-injection, xss, csrf, owasp

Overview

A simulated penetration test against OWASP Juice Shop — a deliberately insecure modern web application — using Burp Suite Professional. The Kali Linux and target machines were provided for the course. The exercise covered the common web vulnerability classes an auditor tests for, from authentication bypass to client-side injection.

What I did

Reconnaissance. Fingerprinted the application’s technologies and ran dirb to discover hidden pages, config files, and resources that shouldn’t be reachable.

SQL injection authentication bypass. Using Burp’s Proxy and Repeater, I exploited SQL injection in the login request to authenticate as the application administrator, then reused the same weakness to access the accounts of several regular users after harvesting their email addresses from the app.

Broken access control. Accessed other users’ shopping baskets while authenticated as a test account — a straightforward but high-impact authorisation flaw.

File upload bypass. Defeated a client-side file-size restriction to upload a file larger than the enforced 100 KB limit.

Cross-Site Request Forgery. Built a proof-of-concept CSRF page that changed a victim’s username through a forged request.

JWT analysis. Decoded an intercepted JSON Web Token, read its contents, and cracked the MD5-hashed password inside it — a demonstration of why weak hashing plus a readable token is a serious exposure.

Reflected XSS. Found and triggered reflected cross-site scripting in the search bar.

Password manipulation. Chained an earlier SQL injection foothold into changing a compromised user’s password.

Automated scanning. Mapped the full request set through Burp and ran an automated vulnerability scan, then cross-checked which manually-found issues the scanner also caught and explained several of the additional findings.

What I learned

Working through Juice Shop is the clearest way to internalise the OWASP Top 10 — not as a checklist but as lived attacks. The recurring theme was trust: the app trusted client-side validation, trusted user-supplied identifiers, trusted a token it should have verified. Nearly every finding traced back to trusting input that should have been checked server-side. That single principle explains most of what a web pentest looks for.

← Back