The mwe-upwiz-source-ownwork-origin-option-ai-description system message is inserted as raw HTML by the UploadWizard extension, allowing for stored XSS.
Reproduction steps
- Make sure $wgUseXssLanguage is set to true
- Make sure uploads are enabled and you're logged in
- Go to /wiki/Special:UploadWizard?uselang=x-xss
- Click the blue button
- Click the blue upload button and select any file
- Click the blue "Next" button in the bottom right
Cause
The result of mw.msg, which returns the unescaped contents of the message, is wrapped in an HtmlSnippet.
https://gerrit.wikimedia.org/g/mediawiki/extensions/UploadWizard/+/f86dd16bcb67ece9d838d4b5fffbb41a91ab069f/resources/deed/uw.deed.OwnWork.js#147
