-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
25 lines (22 loc) · 719 Bytes
/
Copy pathsearch.php
File metadata and controls
25 lines (22 loc) · 719 Bytes
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
<?php
// ============ HelpDesk Portal · search (REFLECTED HTML INJECTION) ============
require __DIR__ . '/includes/functions.php';
require_login();
$q = (string)($_GET['q'] ?? '');
page_header('Search');
?>
<div class="card" style="max-width:560px">
<h2>Search</h2>
<form method="get">
<label>Kata kunci</label>
<input type="text" name="q" value="<?= e($q) ?>" placeholder="mis. VPN, laptop…">
<button>Cari</button>
</form>
<?php if ($q !== ''): ?>
<div class="list-item" style="margin-top:16px">
<span class="muted">Hasil pencarian untuk:</span>
<?= $q /* INTENTIONALLY VULNERABLE — reflected HTML injection */ ?>
</div>
<?php endif; ?>
</div>
<?php page_footer(); ?>