Open redirect through a URL parser differential on the login and registration endpoints
Finding
The login and registration endpoints accepted a redirect parameter shaped like https://<anything>@target.example/ and echoed it back unchanged in the JSON response. The client then navigated to that string. The server validated the URL with one parser; the browser resolved it with another, where a backslash inside the authority is treated as /. Same string, two different hosts: the server saw ours, the browser went to the attacker's.
Reproduction
POST /login/ HTTP/1.1
Host: target.example
Content-Type: application/json
{"redirect":"https:\\evil.example/@target.example/"}
1. The server answers 200 and returns the value verbatim in redirectUrl. 2. The client calls navTo(data.redirectUrl). 3. The browser normalises \\ to / and resolves the host as evil.example.
Verified on three independent stacks — curl, Python urllib and a real Chromium navigation — because a redirect bug that only exists in your HTTP client is not a redirect bug.
Negative controls: five variants were rejected (javascript: → 403, protocol-relative → rejected, absolute off-domain → rejected). The backslash form is the one that got through.
Reference
| Field | Value |
|---|---|
| Report | SOCIALDEAL-XP9XFVVQ |
| Program | Social Deal |
| Reported | 2026-09-23 |
| Severity | Low |
| CVSS 3.1 | 4.7 — AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Takeaway
Redirect validation breaks where two parsers disagree. Before calling a redirect safe, run the same string through the browser's own parser (new URL(value)) and try \\, //, %5C, %2F, @ and Unicode look-alikes. Allow-listing a path beats validating a URL.