Back

OAuth works for login but, deleting seesion doesn't if project is removed.

  • 0
  • Accounts
Drake
8 May, 2023, 15:33

well ya...email/password login would only work if the platform was registered

TL;DR
Issue: OAuth login works fine, but deleting the session does not work if the project is removed. Summary: The user is discussing the potential vulnerability of OAuth login. They express concerns about creating fake OAuth logins and the possibility of someone using exposed client keys to perform malicious actions. They suggest disallowing OAuth logins if the project is not linked and recommend creating a GitHub issue to address the problem. Solution: The user suggests disallowing OAuth login if the project is not linked. Creating a GitHub issue will help address the problem and consider implementing the user's suggestion.
Vedsaga
8 May, 2023, 15:34

mm, I guess will create the github issue

Drake
8 May, 2023, 15:34

for what?

Vedsaga
8 May, 2023, 15:35

umm, disallow OAuth πŸ‘€ from happening if project is not linked

Drake
8 May, 2023, 15:36

the thing is oauth2 isn't really happening on the mobile device. it's happening on the appwrite server and then they're redirected into the app

Vedsaga
8 May, 2023, 15:37

yaa mm, I mean it safe but still from not happening if somehow keys are exposed then some-one can use it to do this nasty things

Drake
8 May, 2023, 15:37

what keys?

Vedsaga
8 May, 2023, 15:38

client key may I is only need to trigger oAuth login ( of couse when google is enabled)

Vedsaga
8 May, 2023, 15:38

so, if Client Key exposed and as endpoint is always exposed

Drake
8 May, 2023, 15:38

what client key?

Vedsaga
8 May, 2023, 15:39

I mean project Id sorry

Drake
8 May, 2023, 15:40

these are all non-sensitive

Vedsaga
8 May, 2023, 15:40

so some-one can create Appwrite instance and start OAuth login ( assuming if OAuth enable)

Drake
8 May, 2023, 15:40

not really because the redirect url is configured to point to your appwrite instance

Vedsaga
8 May, 2023, 15:42

correct me if I am missing here,

  1. if someone know endpoint
Vedsaga
8 May, 2023, 15:42
  1. some-one know project Id
Vedsaga
8 May, 2023, 15:42
  1. If oauth enable can't some-one start creating fake OAUTH login
Vedsaga
8 May, 2023, 15:44

and worst case if there are Fuction setup to trigger then that's another issue

Drake
8 May, 2023, 15:44

what do you mean by "fake OAUTH login"?

Vedsaga
8 May, 2023, 15:45

I mean some can create random gmail account ans start doing login attempts

Drake
8 May, 2023, 15:45

sure...but that has nothing to do with registered platforms

Drake
8 May, 2023, 15:45

if you let people create accounts, they can create as many as rate limit allows. if you have oauth2 enabled, anyone can use it

Vedsaga
8 May, 2023, 15:46

umm, so OAUTH is not bound to having project being register at first place mean

Drake
8 May, 2023, 15:47

right...registered platforms isn't really directly connected

Vedsaga
8 May, 2023, 15:48

ahh got it mm, anyway till it's not a vulnerability then it's fine

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more