Repository navigation
Expand file tree
/
Copy pathverification_test.html
More file actions
76 lines (64 loc) · 2.13 KB
/
Copy pathverification_test.html
File metadata and controls
76 lines (64 loc) · 2.13 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VaptFinder Verification Page</title>
<style>
body {
font-family: sans-serif;
padding: 20px;
}
.card {
border: 1px solid #ccc;
padding: 15px;
margin-bottom: 20px;
border-radius: 8px;
}
code {
background: #f0f0f0;
padding: 2px 4px;
border-radius: 4px;
}
</style>
</head>
<body>
<h1>VaptFinder Verification Page</h1>
<p>This page simulates a vulnerable environment to test the VaptFinder extension.</p>
<div class="card">
<h3>Loaded Libraries (Mocked & Real)</h3>
<ul>
<li><strong>jQuery 1.6.2</strong> (loaded via CDN) - Known Vulnerable</li>
<li><strong>AngularJS 1.5.8</strong> (Mocked) - Known Vulnerable</li>
<li><strong>React 15.6.2</strong> (Mocked) - Known Vulnerable</li>
</ul>
</div>
<!-- 1. Real jQuery Load -->
<script src="https://code.jquery.com/jquery-1.6.2.min.js"></script>
<script>
// 2. Mock AngularJS
window.angular = {
version: { full: "1.5.8" }
};
// 3. Mock React (Simulating DevTools hook presence)
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = {};
window.React = {
version: "15.6.2"
};
window.Modernizr = { _version: "3.11.7" };
// -----------------------------------------------------
// UNKNOWN LIBRARY MOCK (For Dynamic Auto-Discovery Test)
// -----------------------------------------------------
// This library is NOT in the hardcoded list.
// The detector should find it because it's an extra global with a 'version' property.
window.SuperCorpLib = {
version: "9.9.9",
doSomething: function () { }
};
window.LegacyPlugin = {
VERSION: "1.0.0-beta"
};
console.log("Environment prepared for VaptFinder scan.");
</script>
</body>
</html>