Skip to content
CSRF Disclosed report Beginner

[CSRF] Activate PayPal Express Checkout

A CSRF vulnerability allowed an attacker to activate PayPal Express Checkout on a Shopify store without the admin's consent. The attacker could trick an admin into visiting a crafted link, which would activate the payment method, though attempts to link a malicious PayPal email failed.

Mahmoud Gamal Follow

Originally disclosed on HackerOne

  • Triaged in 5 hours
  • Fixed in 8 days
  • Paid in 21 days
  • Disclosed after 21 days

Hi , i have found a CSRF issue when activating PayPal Express checkout. #Steps to reproduce:

  1. Create a new store then login with the admin account.
  2. Go to https://<your_store>.myshopify.com/admin/settings/payments and you'll see that PayPal Express checkout is already active , so click the edit button and deactivate it.
  3. Go to the following link: https://<your_store>.myshopify.com/admin/payments/complete_paypal_oauth/41 and you'll see that PayPal Express checkout was activated and you'll get a message saying: Successfully activated your account.

I have been trying to link a malicious paypal email through this CSRF by using the following link: https://<your_store>.myshopify.com/admin/payments/complete_paypal_oauth/41?verification_token=<PAYPAL_TOKEN> but it doesn't work.

This issue is a little bit confusing when being reproduced since it will only work on a store in which the admin never tried to activate PayPal before because if he did so , a request token will be generated and will be validated for whenever the link is visited.

Please tell me if you are having an issue reproducing it and I will send you a PoC video.

Thanks.

The original report as published on HackerOne, by zombiehelp54. 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 endpoint that completes PayPal OAuth activation lacked CSRF protection, allowing activation via a GET request without a valid token.

What the attacker needed

Victim is logged in as admin; victim visits a crafted link; admin has never activated PayPal before

How it was found

  1. Create a new store and log in as admin.
  2. Go to the payments settings page and deactivate PayPal Express checkout.
  3. Visit the complete_paypal_oauth endpoint with a specific ID.
  4. Observe that PayPal Express checkout is activated and a success message appears.

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.

This report describes a CSRF (Cross-Site Request Forgery) flaw. In CSRF, an attacker makes a victim's browser send a request to a site where the victim is logged in, without the victim's knowledge. Here, visiting a special link could turn on a payment option in a Shopify store without the store owner agreeing.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More by Mahmoud Gamal

View all

32 more disclosed reports, best first.

More from Shopify

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.