Skip to content

Verbum: Remove Facebook sign-in - #55614

Open
arcangelini wants to merge 4 commits into
trunkfrom
cm-1067-verbum-wpcom-v2-verbum-auth-returns-the
Open

arcangelini wants to merge 4 commits into
trunkfrom
cm-1067-verbum-wpcom-v2-verbum-auth-returns-the

Conversation

@arcangelini

Copy link
Copy Markdown
Member

The Verbum wpcom/v2/verbum/auth route returned a visitor's Facebook name, email and picture to any caller that sent the wpc_fbc cookie, 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

  • Auth route: only the logged-in WordPress.com branch is left. A logged-out caller gets 403 whatever cookie it sends.
  • PHP: remove verify_facebook_identity(), clear_fb_cookies(), allow_logged_out_user_to_comment_as_external(), verify_external_account(), their hooks, and the facebook case in add_verbum_meta_data().
  • Client: remove the Facebook service, button, icon, style and wpc_fbc cookie handling. getUserInfoCookie() ignores a leftover wpc_fbc cookie.

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

  • On WordPress.com Simple with Verbum enabled, request wpcom/v2/verbum/auth as a logged-out visitor with a wpc_fbc cookie. It returns 403.
  • Logged in to WordPress.com, the comment form still shows your identity.
  • The compiled Verbum bundle ships separately, so the Facebook button disappears once it is rebuilt.

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 -l on both edited PHP files passed.
  • A search of the Verbum folder finds no facebook, verify_facebook_identity or wpc_fbc read or write. The only hits are a translators comment and the line that ignores the old cookie.
  • PHPCS, ESLint, tsc and 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.

  • Fixed (round 1): a leftover wpc_fbc cookie was read as a guest identity, so the old Facebook name and email would prefill the form. getUserInfoCookie() now skips it.
  • Declined: none.

Created with Claude Sonnet 5.5 in Claude Code.

Howdy-Stage: scout
Howdy-Stage: scout
Howdy-Stage: scout
Howdy-Stage: review
@arcangelini arcangelini added the [Status] Needs Review This PR is ready for review. label Nov 30, 2026
@arcangelini arcangelini self-assigned this Nov 30, 2026
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (WordPress.com Site Helper), and enable the cm-1067-verbum-wpcom-v2-verbum-auth-returns-the branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack-mu-wpcom-plugin cm-1067-verbum-wpcom-v2-verbum-auth-returns-the

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions Bot added [mu wpcom Feature] Verbum Comments Verbum, a better comment experience, app developed in the mu-wpcom plugin [Package] Jetpack mu wpcom WordPress.com Features Docs labels Nov 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

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:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!

@jp-launch-control

jp-launch-control Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Code Coverage Summary

Coverage changed in 5 files.

File Coverage Δ% Δ Uncovered
projects/packages/jetpack-mu-wpcom/src/features/verbum-comments/src/components/logged-out.tsx 0/164 (0.00%) 0.00% -1 💚
projects/packages/jetpack-mu-wpcom/src/features/verbum-comments/src/images/index.ts 0/3 (0.00%) 0.00% -1 💚
projects/packages/jetpack-mu-wpcom/src/features/verbum-comments/assets/class-wpcom-rest-api-v2-verbum-auth.php 0/29 (0.00%) 0.00% -11 💚
projects/packages/jetpack-mu-wpcom/src/features/verbum-comments/src/utils.ts 0/229 (0.00%) 0.00% -11 💚
projects/packages/jetpack-mu-wpcom/src/features/verbum-comments/class-verbum-comments.php 0/347 (0.00%) 0.00% -35 💚

Full summary · PHP report · JS report

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Docs [mu wpcom Feature] Verbum Comments Verbum, a better comment experience, app developed in the mu-wpcom plugin [Package] Jetpack mu wpcom WordPress.com Features [Status] Needs Review This PR is ready for review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant