Page MenuHomePhabricator

Permanent XSS exploitable by wiki admins in SpecialEditGrowthConfig (CVE-2021-42042)
Closed, ResolvedPublicSecurity

Description

Similar to other subtasks of T289067: Audit GrowthExperiments for XSS vulnerabilities.

Affected message is growthexperiments-edit-config-error-invalid-title -- any content added there will be included as raw HTML in Special:EditGrowthConfig, if config page is improperly configured.

Wiki admin can intentionally make that form include growthexperiments-edit-config-error-invalid-title by changing content model of MediaWiki:NewcomerTasks.json.

Event Timeline

Thanks for the deploy, @Tgr. Sal. Also tracked at T285414 and T276237.

sbassett lowered the priority of this task from High to Low.Sep 10 2021, 2:56 AM
sbassett moved this task from Incoming to Watching on the Security-Team board.
sbassett added a project: SecTeam-Processed.

This needs a backport (watching is probably the most appropriate column for that). I'll do that soon :).

This needs a backport (watching is probably the most appropriate column for that). I'll do that soon :).

@Urbanecm_WMF just checking in on this, any update?

@Urbanecm_WMF @kostajh - the Security-Team will handle the backports for this one today, in preparation for the supplemental announcement (T285414), likely to be sent early next week.

sbassett changed the visibility from "Custom Policy" to "Public (No Login Required)".Sep 29 2021, 9:11 PM
sbassett changed the edit policy from "Custom Policy" to "All Users".
sbassett changed Risk Rating from N/A to Low.

Change 724795 had a related patch set uploaded (by Mstyles; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@REL1_37] SECURITY: Fix XSS in SpecialEditGrowthConfig

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

Change 724844 merged by Mstyles:

[mediawiki/extensions/GrowthExperiments@master] SECURITY: Fix XSS in SpecialEditGrowthConfig

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

Merged to master as well: https://gerrit.wikimedia.org/r/724844. DIdn't apply cleanly to 1.36 or 1.35 - not sure if the relevant code existed back then.

Change 724795 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@REL1_37] SECURITY: Fix XSS in SpecialEditGrowthConfig

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

Merged to master as well: https://gerrit.wikimedia.org/r/724844. DIdn't apply cleanly to 1.36 or 1.35 - not sure if the relevant code existed back then.

I just checked, and no, we added the functionality as part of 1.37. Closing, as there's nothing else to do.

sbassett renamed this task from Permanent XSS exploitable by wiki admins in SpecialEditGrowthConfig to Permanent XSS exploitable by wiki admins in SpecialEditGrowthConfig (CVE-2021-42042).Oct 7 2021, 8:35 PM