Complex Open Redirect Exploitation
The shop name field accepted an arbitrary external URL without server-side validation, and the old shop URL remained active after the change. An attacker could set the shop name to a malicious domain, then use the email verification link from the old shop URL to redirect victims to that domain.
I wrote about my first unique open redirect vulnerability in my previous write-up. You can find it here.
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 server did not validate the shop name as a safe subdomain and kept the old shop URL active, allowing an attacker-controlled redirect target.
Impact
An attacker could redirect users who click the email verification link to an arbitrary external domain, which could be used for phishing.
What the attacker needed
A free account; victim clicks the verification link
How it was found
- Log in to the admin account and go to settings to change the email address.
- In the PUT request, change the shop name URL to an external domain such as evil.com.
- Save the old shop URL before changing the shop name.
- Navigate to the old shop URL and create a new customer account.
- Click the email verification link sent to the customer's email address.
- Observe that the verification link redirects to the external domain set in the shop name.
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 sends you to another site based on a value you can control. Here, the shop name could be set to any web address, and the old shop address still worked, so a verification link sent people to the attacker's site instead of the shop.
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.