Repository navigation
Verbum: Remove Facebook sign-in - #55614
Open
arcangelini wants to merge 4 commits into
Open
arcangelini wants to merge 4 commits into
arcangelini wants to merge 4 commits into
Conversation
Contributor
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Contributor
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Code Coverage SummaryCoverage changed in 5 files.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Verbum
wpcom/v2/verbum/authroute returned a visitor's Facebook name, email and picture to any caller that sent thewpc_fbccookie, with no Origin or nonce check. Verbum is being retired and Facebook sign-in is on under 1% of comments, so this removes Facebook sign-in instead of hardening it.Proposed changes
verify_facebook_identity(),clear_fb_cookies(),allow_logged_out_user_to_comment_as_external(),verify_external_account(), their hooks, and thefacebookcase inadd_verbum_meta_data().wpc_fbccookie handling.getUserInfoCookie()ignores a leftoverwpc_fbccookie.Related product discussion/links
Does this pull request change what data or activity we track or use?
No. It removes a data path.
Testing instructions
wpcom/v2/verbum/authas a logged-out visitor with awpc_fbccookie. It returns 403.Proof
The route exists only on WordPress.com Simple, and showing the leak needs a live Facebook token, so I did not reproduce the leak or watch the 403 live. On the wpcom sandbox the route returned 404 for the unchanged code on every URL tried, even with Verbum forced on for a test site, so there was no baseline. Checks that ran:
php -lon both edited PHP files passed.facebook,verify_facebook_identityorwpc_fbcread or write. The only hits are a translators comment and the line that ignores the old cookie.tscand PHPUnit did not run locally, since the worktree has no dependencies installed.The before and after screenshots are in the Howdy GP dashboard.
Review
a8c-review, risk low, approval 92%, 2 rounds.wpc_fbccookie was read as a guest identity, so the old Facebook name and email would prefill the form.getUserInfoCookie()now skips it.Created with Claude Sonnet 5.5 in Claude Code.