Bypass of Open Redirect Fix on lovable.dev via /..// Path Traversal in redirect parameter
The open redirect fix on lovable.dev was incomplete, allowing a path traversal sequence with double slashes to bypass the denylist. An attacker could redirect authenticated users to an arbitrary external domain after login.
Originally disclosed on HackerOne
- Triaged in 2 hours
- Fixed in 5 hours
- Disclosed after 5 hours
Summary:
A bypass exists for the previously patched open redirect vulnerability (report #3581815)
on lovable.dev. The original fix blocked backslash-based payloads (/\ and /%5C), but
fails to account for path traversal sequences combined with double slashes. By supplying
/..//google.com as the redirect value, an attacker can still redirect authenticated
users to arbitrary external domains.
After logging in, the application processes a redirect via: https://lovable.dev/auth/post-login?redirect=/..//google.com
The server normalizes the path traversal /../ and then treats //google.com as a
protocol-relative URL, resulting in a redirect to https://google.com.
This bypass demonstrates that the previous fix used an incomplete denylist rather than a proper allowlist or URL parser validation.
Steps To Reproduce:
- Create or log in to an existing account on lovable.dev
- Visit the following URL while authenticated: https://lovable.dev/auth/post-login?redirect=/..//google.com
- Observe that you are redirected to https://google.com (external domain)
Supporting Material/References:
- Previous related report: #3581815 (resolved)
- Payload used: /..//google.com
- Final redirect URL observed in browser: https://google.com
- The fix from report #3581815 only blocked /\ and /%5C variants
- This payload was not covered by the fix
- I have a poc
Impact
An attacker can craft a trusted lovable.dev URL that silently redirects authenticated users to an arbitrary external website. This can be used in targeted phishing campaigns where victims trust the lovable.dev domain in the link. Since the redirect occurs post-login, victims are already authenticated, making social engineering attacks significantly more credible. The attacker could redirect to a lookalike page to steal credentials or session tokens.
Attachments
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The fix used an incomplete denylist that blocked backslash-based payloads but failed to account for path traversal sequences combined with double slashes, which the server normalises into a protocol-relative URL.
Impact
An attacker could craft a trusted lovable.dev URL that silently redirects authenticated users to an arbitrary external website, which could be used in phishing campaigns to steal credentials or session tokens.
What the attacker needed
Victim clicks a crafted link; victim is authenticated
The fix
The redirect parameter should be validated using a proper allowlist or URL parser rather than a denylist.
How it was found
- Create or log in to an existing account on lovable.dev
- Visit the crafted URL while authenticated
- Observe the redirect 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 report has not been written yet. The Original tab links to the source.
An open redirect is when a website lets you specify where to send someone after they log in, and it doesn't check that the destination is safe. Here, the site tried to block bad destinations but missed a trick using '..' and '//' to sneak past the check. This means attackers can send people to fake sites that look trustworthy because the link starts with the real site's address.
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.