Page MenuHomePhabricator

CVE-2023-29140: GrowthExperiments new impact module shows revdeleted edits
Closed, ResolvedPublicSecurity

Description

The impact module displays the article titles for a select few edits of the user (last, or most viewed). The old Impact module had a check for rev_deleted, but I forgot to add that when writing the equivalent code for the new module, so it might show edits for which the username has been hidden.

Event Timeline

Adding other Growth engineers (+my WMF self).

The patch was unfortunately published in Gerrit (pushed a new version of it to fix that).

CR+2, patch looks good to me and fixes the issue.

The patch was unfortunately published in Gerrit (pushed a new version of it to fix that).

CR+2, patch looks good to me and fixes the issue.

Ok, so the literal patch file appears to have been accidentally included with an unrelated change set? So this still needs a deploy, soon-ish, with your CR+2.

Ok, so the literal patch file appears to have been accidentally included with an unrelated change set? So this still needs a deploy, soon-ish, with your CR+2.

Indeed. Deployed (SAL):

16:50 <urbanecm> !log Deploy security patch for T327613
16:50 <+stashbot> Logged the message at https://wikitech.wikimedia.org/wiki/Server_Admin_Log

The patch was unfortunately published in Gerrit (pushed a new version of it to fix that).

Ugh, sorry. I tracked this down to a setting in PhpStorm that I wasn't aware of (When files are created / Add silently / Apply to files created outside PhpStorm).

Hey all - thanks for the quick response and deployment. Tracking this issue for the next supplemental security release at T325849, but this can be opened up and backported in gerrit any time now.

Change 885042 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] SECURITY: Do not include edits with revdeleted user in NewImpact

https://gerrit.wikimedia.org/r/885042

Removed /srv/patches/1.40.0-wmf.21/extensions/GrowthExperiments/01-T327613.patch just now.

Checked for revdeleted in betalabs - works as expected: if a revision is deleted, the Impact module would not display the stats for pageviews.

@Etonkovidova @Urbanecm_WMF - I assume we're fine to make this task public since the lone backport to master already went through gerrit?

sbassett changed the visibility from "Custom Policy" to "Public (No Login Required)".
sbassett changed the edit policy from "Custom Policy" to "All Users".
sbassett changed Risk Rating from N/A to Low.
mmartorana renamed this task from GrowthExperiments new impact module shows revdeleted edits to CVE-2023-29140: GrowthExperiments new impact module shows revdeleted edits.Apr 3 2023, 3:19 PM