← ChallengesMediumDOM0/13 solved
mission · xss-dom-hash

The Hash in the URL

HackerMart's search is a single-page app: the results route is driven by the URL hash — `#/search?q=<your text>`. The page never sends your input to the server at all. JavaScript reads the hash and writes it into the page. The server is innocent; the browser-side code is the problem. Try it in the address bar.

objective

Fire an alert box by crafting a URL hash — without touching the server.

🔒
HackerMartHomeShopSearchcart · 0
Search (single-page app)

This page never sends your input to a server — it reads the hash part of the URL and writes it into the page.

Results (from location.hash)
Simulated target for training. This page is the vulnerable website — payloads you craft execute here in your browser. Practice only on systems you own or are authorized to test.