Shopify · Report #55525
Open redirection in OAuth
Validstatus
$500bounty
14upvotes
3 Jul 2015disclosed
How it was found
Hello,
When we specify an invalid scope then the authorize url redirects to the site mentioned in redirect_uri. So, attacker can create an app and use it as open redirector to redirect victims to fake sites.
eg. Attacker can host same phishing page and hack the victims.
Proof Of Concept :
- I created an app
- Now, visit this ...
This will redirect ...
- This will redirect with an error to ... https://www.facebook.com/abc?error=invalid_scope&hmac=07657fedf1815f84248dfc6c372ba002e3ea5041df849080269786ae732aed99&shop=prans.myshopify.com&signature=6ecc20da3eb66500d9245635ead45315×tamp=1428607537
Simple patch :
Only a error should be shown and no redirection should take place so as to protect users.
Thanks, Pranav