Skip to main content

Command Palette

Search for a command to run...

URL Spoofing via history.replaceState()

Updated
1 min read
URL Spoofing via history.replaceState()

history.replaceState() adalah API JavaScript yang memungkinkan developer mengganti URL di address bar tanpa me-reload halaman. Ini sering digunakan untuk navigasi dinamis di SPA, tapi bisa disalahgunakan untuk URL spoofing.

jika kamu menjalankan script tersebut di browser yang rentan, maka address bar hanya akan menampilkan https://accounts.google.com, padahal sebenarnya URL aslinya adalah https://attacker.com/?..................................https://accounts.google.com.

Trik seperti ini bisa banget diterima di platform bug bounty, lho! Asalkan dampaknya jelas dan bisa menyesatkan pengguna secara visual.

Contoh :

More from this blog

B

BountyProofs | Bug Bounty Writeups & Free Tools

36 posts

Explore real-world bug bounty proofs of concept. Learn how ethical hackers find and exploit security flaws across platforms.