Page MenuHomePhabricator

CVE-2022-34912: Username not escaped in the contributions-title message
Closed, ResolvedPublicSecurity

Description

The contributions-title, used on Special:Contributions, is used as page title without escaping. Hence, if a username contains HTML entities (not possible by default, T308465), it won't be escaped.

Event Timeline

Mstyles changed Risk Rating from N/A to High.Jun 3 2022, 11:13 PM

@Daimona will you be able to create a patch to escape the HTML? For guidance please check out steps 2, 3, and 4 in the mediawiki documentation

Untested patch that should fix this issue, unless it garbles usernames in some way. But it shouldn't. This is likely low risk enough to just go through gerrit, as similar patches have before (T2212).

sbassett changed Author Affiliation from N/A to WMF Product.
sbassett changed Risk Rating from High to Low.

Change 807225 had a related patch set uploaded (by SBassett; author: SBassett):

[mediawiki/core@master] SECURITY: Escape contributions-title msg for use within page title

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

Change 807225 merged by jenkins-bot:

[mediawiki/core@master] SECURITY: Escape contributions-title msg for use within page title

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

Change 807164 had a related patch set uploaded (by SBassett; author: SBassett):

[mediawiki/core@REL1_38] SECURITY: Escape contributions-title msg for use within page title

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

Change 807165 had a related patch set uploaded (by SBassett; author: SBassett):

[mediawiki/core@REL1_37] SECURITY: Escape contributions-title msg for use within page title

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

Change 807165 merged by jenkins-bot:

[mediawiki/core@REL1_37] SECURITY: Escape contributions-title msg for use within page title

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

Change 807164 merged by jenkins-bot:

[mediawiki/core@REL1_38] SECURITY: Escape contributions-title msg for use within page title

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

sbassett claimed this task.
sbassett moved this task from Backlog to Done on the MediaWiki-Logevents board.
sbassett moved this task from In Progress to Our Part Is Done on the Security-Team board.
sbassett moved this task from In Progress to Done on the user-sbassett board.
sbassett changed the visibility from "Custom Policy" to "Public (No Login Required)".
sbassett changed the edit policy from "Custom Policy" to "All Users".
Reedy renamed this task from Username not escaped in the contributions-title message to CVE-2022-34912: Username not escaped in the contributions-title message.Jul 2 2022, 7:40 PM