HexBrain

Shopify · Report #1547684

Disconnecting an external login provider does not revoke session

Validstatus
mediumseverity
$1,600bounty
21upvotes
1 Dec 2022disclosed

How it was found

Hi team,

Summary: attacker could create a backdoor using google login function.if an attacker stole the login password of victims throught any means. attacker could connect his/her google account and create a backdoor and attacker login with google if the victim disconnect attacker session did not expire and still get access beacuse of no session expire after disconnected with google account .attacker could still connect his google account again.

Steps To Reproduce:

  1. attacker stole the login password of victims throught any means - https://accounts.shopify.com {{attacker prespective}}
  2. attacker could connect his/her google account {{attacker prespective}}
  3. attacker login with google authentication {{attacker prespective}}
  4. victim disconnect attacker session did not expire and still get access beacuse of no session expire in the attacker browser after disconnected with google account {{victims prespective}}
  5. attacker could still connect his google account again. {{attacker prespective}}

POC video attached in this report

Impact

no session expire after disconnected with google account an attacker can still logined to the victim account .thus an attacker could create a backdoor in victim account to login even if the victims changes the password attacker has a backdoor way to login to the account .

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original