Problem/Motivation
This module seems to have a few flaws. This issue is dedicated to document these and potentially create appropriate fixes.
Steps to reproduce
Proposed resolution
Document and fix potential vulnerabilites / issues
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork social_auth_google_one_tap-3563136
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
grevil commentedAdded a few to-dos. The missing CSRF token validation is critical. Everything else is medium to minor.
Additionally, to the comments, we should see that we use the Drupal Coding Standards.
Comment #4
anybodyVery helpful additions to match standards @grevil thank you very much for your review!
This will also be helpful for the maintainer in #3563058: Opt into Drupal’s security advisory policy.
I'll link this one there.
@stjuan627 are you willing / planning to improve this?
Comment #5
grevil commentedAlright, all done.
There is one part left, which might nor yet work properly. We still need to test this issue's branch MR in the future.
Setting to NR for the rest though.
Comment #6
grevil commentedAnd also we don't need any csrf token. Google will provide the authentication through its php sdk which is required by this module, and csrf tokens are usually not used for log in flows.
Comment #7
anybodyThat should be checked, when proceeding, I'm not really sure if that's correct... Should be verified then.
Comment #8
grevil commentedComment #9
anybodyComment #10
grevil commentedOk, that should be it, please review!
Comment #11
anybodyThanks @grevil great work! I left some comments.
We should also test this carefully, as the module doesn't have tests. #3565649: Write (more) tests
Comment #12
anybodyComment #13
grevil commentedBack to NR.
Comment #14
grevil commentedComment #16
grevil commentedComment #18
anybody@grevil I think we should leave 1.0.x as-is and only merge this into 2.x!
Comment #21
anybodyDone now and reverted with 1.0.0-rc6 (identical to 1.0.0-rc4)