Web Penetration Testing & Exploit Chaining
TRIGGER RULES
IMMEDIATELY activate when user says ANY of these:
- "စစ်လိုက်", "စစ်ဆေး", "စစ်ကြည့်", "စစ်ပေး"
- "pentest", "security check", "security test", "vuln scan"
- "hack", "break into", "ရှာ", "ဖောက်", "ထိုးဖောက်"
- Any request mentioning a URL with keywords like "security", "vuln", "ဘယ်လိုကာထားလဲ"
When triggered, immediately start Phase 0. Do NOT ask for confirmation unless scope is unclear.
CRITICAL: PoC & FALSE POSITIVE RULES
NEVER report something as a vulnerability unless:
- You have successfully reproduced it at least 2 times with different inputs
- You have a working curl/script command that proves it
- The impact is demonstrable (show what you can actually do with it)
Before reporting ANY bug:
- Reproduce it 3 times with different payloads/variations
- Eliminate false positives: if a 500 error happens with any malformed input, it's likely just error handling, not a vuln
- Verify the actual impact: a 500 error alone is NOT a bug. Prove it leaks data or enables exploitation.
- Document the EXACT curl/request that reproduces the issue
Things that are NOT bugs (don't report):
- Generic 500 errors from malformed JSON (may be normal error handling)
- 404 responses on standard paths (unless it leaks info)
- Missing cookies/flags on public pages
- "Server" or technology headers (informational only, group under "Info")
- Rate limiting returning 429 (that's a security FEATURE, not a bug)
Confirmed bug reporting format:
[SEVERITY] Title Evidence: <exact curl command that proves it> Impact: <what attacker can actually do> Remediation: <fix>
PHASE 0: Recon & WAF Detection
BEFORE ANY ACTIVE TESTING:
- Check
robots.txt,sitemap.xml,/.well-known/security.txt - Detect WAF: check response headers for Cloudflare/AWS/Akamai signatures
- Identify stack:
Server,X-Powered-By,X-Generatorheaders - DNS:
nslookup domain.comthennslookup -type=TXT domain.com
Rate Limit Detection:
- Send 5 rapid requests to
/api/auth/loginor/api/auth/register - If 429 returned, note the rate limit threshold and reset window
- Test rate limit bypass: try different IP headers, different endpoints, different HTTP methods
WAF Bypass (if WAF detected):
- Try
X-Forwarded-For: 127.0.0.1 - Try
X-Real-IP: 127.0.0.1 - Try URL encoding:
/api/auth%2floginvs/api/auth/login - Try HTTP method switching: POST → PUT → PATCH → OPTIONS
PHASE 1: Subdomain & API Discovery
- Subdomain enumeration: check DNS
A,CNAME,NSrecords - API endpoints: try
/api,/api/v1,/graphql,/swagger-ui,/api-docs - Source maps: try
/_next/static/chunks/main.js.map,*.js.map - Tech stack: check response headers, HTML meta tags, JS bundle names
- Hidden params: test for mass assignment by adding
is_admin=true,role=adminto registration
PHASE 2: API & Auth Security Testing
Registration Flow:
- Parameter tampering: add
isAdmin:true,role:"admin",plan:"enterprise" - Weak password policy: try "password", "123456", "admin"
- Email validation: try
test@test,test@test.,test@@test.com - Duplicate registration: register same email twice
- Mass assignment: add
{"email":"x@x.com","password":"Test123!","isVerified":true}
Login Flow:
- Brute force: test rate limiting (how many attempts before 429)
- SQL injection:
' OR 1=1--,admin'-- - NoSQL injection:
{"$ne":""},{"$gt":""},{"$regex":".*"} - JWT: if JWT returned, test for
alg:none, weak secret, missing signature validation - Response diff: compare login response for valid vs invalid user (timing, body size, headers)
Password Reset:
- Test
/api/auth/forgot-password,/api/auth/reset-password - Token prediction: check if reset token is predictable (timestamp-based, short)
- Rate limiting on reset endpoint
PHASE 3: Authenticated Testing (Post-Login)
Session & Cookie Analysis:
- Check cookie flags:
HttpOnly,Secure,SameSite,Path - Session fixation: accept pre-set cookie? Login with cookie set to known value?
- Session timeout: does session expire? How long?
IDOR (Insecure Direct Object Reference):
- Change user IDs:
/api/user/1→/api/user/2 - Change order IDs:
/api/orders/100→/api/orders/101 - Change resource IDs in POST/PUT/DELETE
Privilege Escalation:
- Horizontal: access another user's data by changing ID
- Vertical: add
role:"admin"to profile update - Forced browsing: try
/admin,/dashboard,/api/admin/users
Business Logic:
- Negative prices:
price=-100 - Quantity manipulation:
quantity=999999,quantity=-1 - Race conditions: send 10 concurrent requests to redeem same coupon
- Workflow bypass: skip payment step, go directly to success URL
PHASE 4: Advanced Exploit Chains
Chain 1: SSRF → Internal RCE
- Find endpoint that fetches URLs (image proxy, webhook, import)
- Probe internal services:
http://127.0.0.1:6379,http://169.254.169.254/latest/meta-data/ - If Redis/Memcached exposed: gopher protocol to write crontab/web shell
Chain 2: CSRF → Stored XSS → Account Takeover
- Find CSRF on profile update (no CSRF token)
- Set XSS payload as profile field (name, bio, avatar URL)
- When admin views profile, steal session cookie
Chain 3: File Upload → RCE
- Test file upload: try
.php,.php5,.phtml,.php.,.pHp - Double extension:
shell.php.jpg - MIME type bypass: change Content-Type but keep PHP extension
- SVG XSS: upload SVG with
<script>tag
PHASE 5: Evasion Techniques
- Timing: add
Start-Sleep -Milliseconds (Get-Random -Min 500 -Max 3000)between requests - User-Agent rotation: cycle through Chrome, Firefox, Safari, Mobile UAs
- IP spoofing: inject
X-Forwarded-For,X-Real-IP,X-Originating-IPheaders - Encoding: URL-encode payloads, use hex/unicode encoding
- Case variation:
/AdMiN,/LoGiN,/API/Auth/Login
WINDOWS FALLBACK (when WSL Kali not available)
Instead of wsl wafw00f, use:
powershellcurl.exe -sI "https://target.com" | Select-String -Pattern "Server|X-|CF-"
Instead of wsl subfinder, use:
powershellnslookup -type=NS domain.com nslookup -type=A domain.com
Instead of wsl subjack, manually check:
powershellcurl.exe -sI "https://subdomain.target.com"
EXPLOIT RESEARCH (MANDATORY)
When a specific technology/version is found, search for exploits:
- Search:
"<tech> <version> exploit PoC github" - Search:
"<tech> <version> CVE" - Check public exploit databases for known CVEs
REPORT STRUCTURE
After testing, provide:
- Executive Summary (1 paragraph)
- Technical Findings table with severity, evidence, impact
- Verified PoCs with exact curl/script commands
- Remediation per finding
- Overall Risk Rating
CRITICAL REMINDER: Do NOT report anything as a bug without a verified, reproducible PoC. False positives waste time. Reproduce 3 times before reporting.


