Page MenuHomePhabricator

CVE-2025-62652: Stored XSS in WebAuthn key name
Closed, ResolvedPublicSecurity

Description

  • With an account that doesn't have 2FA enabled, enable WebAuthn
  • When it prompts for the name of the key, enter oops<script>alert('xss')</script>
  • Finish the process and get redirected back to Special:AccountSecurity
  • An alert now pops up every time you visit Special:AccountSecurity

This probably isn't very exploitable, but we still shouldn't have this happen. It could also be a way that user scripts could wiggle their way onto Special:AccountSecurity (user scripts are disabled there, but this XSS could let them run code on that page), but that's also unlikely since completing the key setup process requires user interaction.

Event Timeline

Nice find. Patch LGTM but can we follow the current naming guidelines for sec patches? https://wikitech.wikimedia.org/wiki/How_to_deploy_code#Creating_a_Security_Patch. Thanks.

Sorry my bad, old habit. Updated patch attached.

Mstyles subscribed.

Sorry my bad, old habit. Updated patch attached.

Deployed

Reedy claimed this task.
Reedy reassigned this task from Reedy to Catrope.
Reedy added subscribers: gerritbot, Reedy.

Change #1189174 merged by jenkins-bot:

[mediawiki/extensions/WebAuthn@master] SECURITY: Escape key name in management UI

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

Change #1189206 had a related patch set uploaded (by Reedy; author: Catrope):

[mediawiki/extensions/WebAuthn@REL1_44] SECURITY: Escape key name in management UI

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

Change #1189207 had a related patch set uploaded (by Reedy; author: Catrope):

[mediawiki/extensions/WebAuthn@REL1_43] SECURITY: Escape key name in management UI

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

Change #1189208 had a related patch set uploaded (by Reedy; author: Catrope):

[mediawiki/extensions/WebAuthn@REL1_39] SECURITY: Escape key name in management UI

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

Change #1189206 merged by Reedy:

[mediawiki/extensions/WebAuthn@REL1_44] SECURITY: Escape key name in management UI

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

Change #1189207 merged by Reedy:

[mediawiki/extensions/WebAuthn@REL1_43] SECURITY: Escape key name in management UI

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

Change #1189208 merged by Reedy:

[mediawiki/extensions/WebAuthn@REL1_39] SECURITY: Escape key name in management UI

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

sbassett renamed this task from Stored XSS in WebAuthn key name to CVE-2025-62652: Stored XSS in WebAuthn key name.Oct 17 2025, 10:15 PM
sbassett triaged this task as Medium priority.
sbassett removed a project: Patch-For-Review.
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 Medium.