How I bypassed Ebay process on redirect
The login redirect parameter on eBay only checked that the supplied value contained the eBay domain, so a crafted value could still send the user to an external site. By URL-encoding a fragment marker, the attacker made the eBay domain part of the URL be treated as a comment, leaving an attacker-controlled host as the real destination.
Published on medium.com
hey guys this is my first blog so be free to comment any suggestion to improve my blog in the next time.
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 allow-list only checked that the eBay domain appeared somewhere in the value, rather than parsing the URL and confirming the host itself was an eBay domain.
Impact
An attacker could craft a login link that sends the victim to an attacker-controlled site after authentication, which could be used for phishing; the report does not show any further impact.
What the attacker needed
Victim clicks a crafted login link
How it was found
- Log in and notice that a GET parameter controls where the site redirects you afterwards.
- Try replacing the host with an outside domain; the filter blocks it.
- Try a subdomain of eBay as the value; it is accepted, showing subdomains pass the check.
- Try an outside domain placed before the eBay domain; it is accepted and redirects there.
- Add a URL-encoded fragment marker after the outside host so the eBay part is treated as a comment, and the redirect goes to the outside 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 write-up has not been written yet. The Original tab links to the source.
After you log in, some sites send you onward to a page named in the link, for example a page you were trying to reach. eBay checked that this destination contained its own domain name, but it did not check where the domain name actually sat in the address. The researcher put the eBay name after a special character that browsers treat as the start of a comment, so the browser ignored the eBay part and went to an outside site instead.
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.