Skip to content
Open redirect Write-up Beginner

Open Redirect Vulnerability in OAuth Flow on Lichess4545.com

The OAuth login flow on lichess4545.com did not properly validate the redirect_uri parameter, allowing an attacker to redirect users to any external domain after authentication. This could be used for phishing or other malicious activity.

regan_temudo Follow

Published on medium.com

Open redirect vulnerabilities remain a subtle but impactful web security risk. When they occur in authentication flows — such as OAuth — they can be exploited for phishing attacks, tricking users into trusting malicious sites after login.

Regan Temudo, 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 OAuth implementation did not validate the redirect_uri parameter against a whitelist of allowed URLs, allowing any external domain to be used.

Impact

This could be exploited to redirect users to phishing or malicious sites immediately after login, increasing the likelihood of successful social engineering attacks.

What the attacker needed

A test account on lichess4545.com; victim clicks a crafted OAuth link

The fix

The OAuth redirect_uri parameter should be strictly validated and restricted to prevent open redirects.

How it was found

  1. Visit the blitzbattle page and log into a test account.
  2. After login, you are redirected to an OAuth authorization page on lichess.org.
  3. In the URL of the OAuth page, locate the redirect_uri parameter.
  4. Modify the redirect_uri parameter to an arbitrary external domain.
  5. Click Authorize; the flow completes and redirects the user 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.

When you log in to a website using another service (like logging into a game site with your Lichess account), the site tells the service where to send you back afterwards. This is called a redirect. If the site doesn't check that the return address is one of its own, an attacker can change it to their own website. Then, after you log in, you're sent to the attacker's site, which might look like the real one and trick you into giving away your password.

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.

More by regan_temudo

View all

3 more disclosed reports, best first.

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.