[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.
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:
- Create a new store then login with the admin account.
- Go to
https://<your_store>.myshopify.com/admin/settings/paymentsand you'll see that PayPal Express checkout is already active , so click the edit button and deactivate it. - Go to the following link:
https://<your_store>.myshopify.com/admin/payments/complete_paypal_oauth/41and 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.
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
- Create a new store and log in as admin.
- Go to the payments settings page and deactivate PayPal Express checkout.
- Visit the complete_paypal_oauth endpoint with a specific ID.
- 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.