Skip to content
Open redirect Write-up Beginner

Bypass of Open Redirect Fix on lovable.dev via /..// Path Travers

The redirect parameter on lovable.dev's post-login endpoint could be abused to send users to an external site by using a path that normalises to a protocol-relative URL. An attacker could craft a link that appears to stay on lovable.dev but redirects the victim to an attacker-controlled site after login.

nocxs Follow

Published on medium.com

That redirect parameter tells the app where to send you after login. Normally, it should only send you to pages inside lovable.dev — like /dashboard or /settings.

nocxs, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the redirect validation used a denylist that blocked backslash patterns but did not re-check the normalised path, allowing a path traversal sequence to become a protocol-relative external URL.

Impact

An attacker could use a trusted lovable.dev link to phish users after login, potentially stealing session tokens or credentials via a fake login page.

What the attacker needed

Victim is logged in; victim clicks a crafted link

The fix

The redirect parameter should be validated against an allowlist of internal paths or parsed as a URL and rejected if it resolves to an external hostname.

How it was found

  1. Log in to lovable.dev.
  2. Click a crafted link containing the redirect parameter with the bypass path.
  3. The server normalises the path and issues a redirect to an external site.
  4. The browser follows the protocol-relative URL to the external domain.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

An open redirect is when a website takes a user-supplied address and sends the browser there without checking it is safe. Here, the site tried to block bad addresses but missed a trick: a path like /..//google.com gets cleaned up by the server into //google.com, which browsers treat as a full external address. So a link that looks like it stays on lovable.dev actually takes you to another site.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.