Back to list
CTFVery Easy
HackThisSite — Basic Mission 4
ducky
2026-05-19
19 views
1 min read
HackThisSite — Basic Mission 4
What Happened
Inspecting the form reveals a hidden field:
The script blindly emails the password to whatever address is in this field.
Exploit
- Open DevTools → Inspector
- Find the hidden
toinput - Change
sam@hackthissite.orgto your HTS registered email - Click "Send password to Sam"
- Check your HTS inbox — password arrives in the message
Root Cause
The email recipient is controlled entirely by the client via a hidden input. The server never validates or restricts who it sends to.
Key Takeaway
Never trust client-supplied form values for sensitive operations. The recipient of a password email must be hardcoded or validated server-side — never sourced from user-controllable input.
Tags
#hackthissite#basic mission 4#/missions/basic/4/
Keep Reading