Impact
Any ScratchOAuth2-related data normally accessible and modifiable by a user can be read and modified by a third party.
- Scratch user visits 3rd party site
- 3rd party site asks user for Scratch username
- 3rd party site pretends to be user and gets login code from ScratchOAuth2
- 3rd party site gives code to user and instructs them to post it on their profile
- User posts code on their profile, not knowing it is a ScratchOAuth2 login code
- 3rd party site completes login with ScratchOAuth2
- 3rd party site has full access to anything the user could do if they directly logged in
Patches
Warning included in code itself to only trust codes from the right site. (Commit 9220c2a)
Workarounds
Do not trust login codes that perfectly match the original ScratchOAuth2 format (fivec:harac:tersc:olons:epara:ted...).
For more information
If you have any questions or comments about this advisory:
Impact
Any ScratchOAuth2-related data normally accessible and modifiable by a user can be read and modified by a third party.
Patches
Warning included in code itself to only trust codes from the right site. (Commit 9220c2a)
Workarounds
Do not trust login codes that perfectly match the original ScratchOAuth2 format (
fivec:harac:tersc:olons:epara:ted...).For more information
If you have any questions or comments about this advisory: