Tries --:--:-- left
Next hack in --:--:--
Warm-up

Your first hack, in 60 seconds

Every Daily Hack works the same way: read the briefing, look at the evidence, type the answer. Try it here first - no XP, no pressure.

Mission briefing

Developers sometimes leave notes in a page's source code that visitors never see. This login page ships one. Read the source below and find the staff password.

Investigate
<form action="/login" method="post">
  <input name="user" placeholder="Username">
  <input name="pass" type="password" placeholder="Password">
  <!-- TODO: remove before launch - staff password is "sunrise" -->
  <button>Sign in</button>
</form>
Your answer
Daily Hack #119 First blood M2F14M3 Solved by Aquatox IBSierra Petrusse freeuser rpaul1730 ghost117

The redirect it only half checked

Web & API Security Difficulty Medium ~5 min +10 XP
Mission briefing

Loomhaus signs you in with OAuth. When it builds the sign-in link it checks that the redirect_uri you asked for belongs to the app, and its check is that the value starts with the registered address https://app.loomhaus.example. The authorization server will send the one-time code to whatever redirect_uri survives that check. A victim has already clicked a link you prepared; the attacker's logging endpoint recorded what arrived. Craft the redirect_uri that passes the check but delivers the code to the attacker, then read the code it captured.

Investigate
Your answer

Play freely - sign up to submit your answer and earn XP.

Solved! +10 XP
First blood! You were first to crack today's hack.
How it works

Up next Pro
Play next hack

Nice one!

Sign up free to claim your +10 XP and start your series.

Claim +10 XP - sign up free
32,000+ Hackers Real labs Free
Start Hacking Free or solve today's hack, no account needed