Skip to content
Open redirect Disclosed report Beginner

Open Redirect in Logout & Login

The logout endpoint accepted a URL in a query parameter and redirected the user to it after logging out, instead of only sending them to the site's own homepage. An attacker could craft a logout link that sends a victim to an arbitrary external site, which is useful for phishing and social engineering.

qualw1n Follow

Originally disclosed on HackerOne

  • Triaged in 15 days
  • Fixed in 2 months
  • Paid in 15 days
  • Disclosed after 3 months

Entry

Hello there! While browsing on expedia, I logged out of the account and as soon as I logged out, it was calling me a parameter called "rurl" directly on the link, I examined it and was able to redirect successfully.

Default Request

GET /?logout=1 HTTP/2 Host: www.expedia.com Cookie: { REDACTED } User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8 Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Upgrade-Insecure-Requests: 1 Sec-Fetch-Dest: document Sec-Fetch-Mode: navigate Sec-Fetch-Site: none Sec-Fetch-User: ?1 Te: trailers

Default Response

HTTP/2 200 OK

##In response, it redirects us to the homepage.

Vulnerability Request

GET /?logout=https://qx4lw1nsec.blogspot.com HTTP/2 Host: www.expedia.com Cookie: { REDACTED } User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8 Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Upgrade-Insecure-Requests: 1 Sec-Fetch-Dest: document Sec-Fetch-Mode: navigate Sec-Fetch-Site: none Sec-Fetch-User: ?1 Te: trailers

Note

The part that exposes to explicit redirection is "?" in the section after the address. is use. and whatever he does he will throw redirects.

Video

Impact

Redirect Phishing Social Engineering

The original report as published on HackerOne, by qualw1n. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Likely the logout handler took a user-supplied URL from the query string and used it as the redirect destination without checking that it pointed to the same site.

Impact

A crafted logout link could send a victim to an attacker-controlled site, which could be used for phishing and social engineering.

What the attacker needed

Victim clicks a crafted logout link

How it was found

  1. Log out of the account and notice the logout link carries a redirect parameter.
  2. Send the logout request with the parameter set to an external site.
  3. Observe that the response redirects the browser to that external site.

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.

When you log out of a website, the site usually sends you back to its own homepage. Here the site took a web address from the link and sent the visitor there instead, so anyone could make a link that logs you out and then drops you on a page they control. That page can look like the real site and ask for your password, which is called phishing.

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 qualw1n

View all

4 more disclosed reports, best first.

More from Expedia Group Bug Bounty

View all

The newest disclosed reports for this program.

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.