NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Preview · 35 min
How browsers resolve the address in a redirect, how to test a next parameter with one request that is not followed, and how to write a check that holds.
Ledgerline sends you back where you were going. Open a settings page that needs fresh MFA and the address bar shows /step-up?next=%2Fsettings%2Fsecurity. After the code is accepted, the application reads next and redirects there. The sign in page does the same. The convenience puts a destination into a value that anyone who writes a link can choose.
Rule I7 limits that choice: both pages follow only relative paths, written with one leading slash and not two. At 10:02:48 you signed in as vera with next set to an address that starts with two slashes and names review.example. The response was a 302 with that value in Location. At 10:09:02 the step up page received the same shape and answered 400. Two pages share one rule and give two answers.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in