-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathtest-security-warning.html
More file actions
117 lines (111 loc) · 4.97 KB
/
test-security-warning.html
File metadata and controls
117 lines (111 loc) · 4.97 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
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
<!DOCTYPE html>
<html>
<head>
<title>Security Warning Test</title>
<meta charset="UTF-8">
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 50px auto;
padding: 20px;
}
h1 {
color: #333;
}
.test-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 10px;
margin: 20px 0;
}
.test-link {
display: block;
padding: 10px;
background: #f0f0f0;
text-decoration: none;
color: #333;
border-radius: 4px;
text-align: center;
transition: background 0.2s;
}
.test-link:hover {
background: #e0e0e0;
}
.insecure {
background: #ffe0e0;
}
.insecure:hover {
background: #ffcccc;
}
.secure {
background: #e0ffe0;
}
.secure:hover {
background: #ccffcc;
}
.description {
margin: 20px 0;
padding: 15px;
background: #f5f5f5;
border-radius: 4px;
}
</style>
</head>
<body>
<h1>Security Warning Test Page</h1>
<div class="description">
<p>This page tests the insecure stream ID warning system. Click on any link below to test different stream IDs:</p>
<ul>
<li>Red links = Insecure IDs (should trigger warning)</li>
<li>Green links = Secure IDs (should not trigger warning)</li>
</ul>
</div>
<h2>Test Links</h2>
<h3>Insecure Stream IDs (should show warning):</h3>
<div class="test-grid">
<a href="index.html?room=test" class="test-link insecure">test</a>
<a href="index.html?room=demo" class="test-link insecure">demo</a>
<a href="index.html?room=guest" class="test-link insecure">guest</a>
<a href="index.html?room=guest3" class="test-link insecure">guest3</a>
<a href="index.html?room=user123" class="test-link insecure">user123</a>
<a href="index.html?room=admin" class="test-link insecure">admin</a>
<a href="index.html?room=1234" class="test-link insecure">1234</a>
<a href="index.html?room=abc" class="test-link insecure">abc (too short)</a>
<a href="index.html?room=111" class="test-link insecure">111 (repeated)</a>
<a href="index.html?room=room1" class="test-link insecure">room1</a>
<a href="index.html?room=cc" class="test-link insecure">cc</a>
<a href="index.html?room=caption" class="test-link insecure">caption</a>
<a href="index.html?room=caption5" class="test-link insecure">caption5</a>
<a href="index.html?room=english" class="test-link insecure">english</a>
<a href="index.html?room=stream" class="test-link insecure">stream</a>
<a href="index.html?room=show" class="test-link insecure">show</a>
<a href="index.html?room=a" class="test-link insecure">a</a>
<a href="index.html?room=meeting" class="test-link insecure">meeting</a>
<a href="index.html?room=class1" class="test-link insecure">class1</a>
<a href="index.html?room=monday" class="test-link insecure">monday</a>
<a href="translate.html?room=webinar" class="test-link insecure">translate: webinar</a>
<a href="translate.html?room=presenter2" class="test-link insecure">translate: presenter2</a>
<a href="translate_premium.html?room=office" class="test-link insecure">premium: office</a>
<a href="translate_premium.html?room=january" class="test-link insecure">premium: january</a>
</div>
<h3>Secure Stream IDs (should NOT show warning):</h3>
<div class="test-grid">
<a href="index.html?room=Xk9Zp3Qm7N" class="test-link secure">Xk9Zp3Qm7N</a>
<a href="index.html?room=MySecureRoom123" class="test-link secure">MySecureRoom123</a>
<a href="index.html?room=UniqueID2024" class="test-link secure">UniqueID2024</a>
<a href="translate.html?room=ProdMeeting789" class="test-link secure">translate: ProdMeeting789</a>
<a href="translate_premium.html?room=SecureStream456" class="test-link secure">premium: SecureStream456</a>
</div>
<h3>Edge Cases:</h3>
<div class="test-grid">
<a href="index.html?room=GUEST" class="test-link insecure">GUEST (uppercase)</a>
<a href="index.html?room=TeSt" class="test-link insecure">TeSt (mixed case)</a>
<a href="index.html?room=guest_user" class="test-link secure">guest_user (underscore)</a>
<a href="index.html?room=guestroom" class="test-link secure">guestroom (compound)</a>
</div>
<div class="description">
<p><strong>Note:</strong> The warning will automatically dismiss when transcription/TTS starts.</p>
</div>
</body>
</html>