- 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.