One Request Away No. 09 Streak 0 Solved 0 of 27

The page after consent

Medium Open Redirect 2 Aug 2026 Solved by 3

Scenario

Cowley Wells uses a central portal to connect staff accounts to third-party tools. A reporting tool has prepared this consent link for its users.

You are reviewing the link before it is shared with staff. You also control notes.example.

One change to this request triggers the vulnerability. The challenge is to use your security intuition to work out what to change. Find the value the server shouldn’t trust, change it, and send it. The response tells you whether you were right.

Request Tap any part of it
//?client_id=&return_to= HTTP/1.1
Host:
Cookie: session=
No change — send it as it stands
Response

  • 01 What the server believed

    “A value that begins with a slash is a path on this site.”

  • 02 The fix

    Resolve the destination with a URL parser and allow it only when the final scheme and host match your own origin. A safer design is to accept a short destination name and look up its path on the server. Add tests for values beginning with two slashes, encoded slashes, and backslashes.

  • 03 Where else to look for this

    Check login, consent, logout, password reset, and invitation flows. Look for parameters such as return_to, next, continue, redirect_uri, and RelayState, especially when the code validates them with a prefix or regular expression.

The series

Every drill 27

One Request Away is a daily series of challenges. They’re like code review, but for HTTP requests: in each one you’re one request away from triggering a vulnerability, and your goal is to identify what you need to change.

Do not stop here

A drill is one request.
A lab is the whole app.

Uphack labs are believable products with one realistic flaw buried in an ordinary feature. Same instinct, nothing highlighted — you get a running application and have to find it yourself.

Browse the labs
Registration is open Closes today

Turn the instinct into practice.

Drills are free and stay that way. The labs put the same reasoning against a whole application, and members get all of them. Registration is open until Saturday 19 September.

Create your account

Already a member? Sign in