Skip to content
Open redirect Disclosed report Beginner

Redirect url after login is not validated

The login page accepted a redirect parameter containing a path traversal sequence, allowing a user to be redirected to a different page on the same domain after authentication. An attacker could craft a link that sends a victim to a storefront page containing malicious JavaScript.

capripio Follow

Originally disclosed on HackerOne

  • Fixed in 3 days
  • Disclosed after 3 days

Summary by the program

It was possible to provide a URL starting with ../ and redirect to a page on the same domain. This was not intended so we decided to fix the issue even though it had minimal security implications.

The report

Hey,

I have noticed and redirect hidden field in admin/staff login page so I though give it a little shot!

What happened another user create a Shopify page with bad javascript code in it.

and when any user or owner login with following traversal URL he/she will be redirected to bad js containing a page with any intentional.

"https://capripio.myshopify.com/admin/auth/login?redirect=../pages/about-us"

I am well aware of the following description on your bug bounty page. "Any issue where a store administrator is able to insert javascript in the storefront area of their own store, including the checkout pages."

But I think security issue is greater here as you were aware of above statement so it might be dangerous to redirect someone to a bad page on a front store, so I submitted.

Please see POC video for more demo. available at private dropbox folder follow link below: https://www.dropbox.com/s/49odz7owp1oj53t/poc.zip?dl=0

Sorry for my bad English!

The original report as published on HackerOne, by capripio. 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 application did not validate the redirect parameter, allowing relative path traversal to change the destination page.

Impact

An attacker could redirect a victim to a storefront page containing malicious JavaScript, though the program stated the security implications were minimal.

What the attacker needed

Victim clicks a crafted login link; attacker can create a storefront page

The fix

The issue was fixed by the program.

How it was found

  1. Create a Shopify page containing malicious JavaScript.
  2. Craft a login URL with a redirect parameter using '../' to point to that page.
  3. Send the link to a victim; after login they are redirected to the malicious page.

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.

After logging in, a website often sends you to a page you were trying to reach. This site let an attacker control that destination using a trick called path traversal, where '../' moves up a folder level. The attacker could make the login send you to a page they control on the same site, which might run harmful code.

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 from Shopify

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.