In the UrlShortener extension, the urlshortener-failed-try-again system message is inserted as HTML without proper sanitization.
Reproduction Steps
- Clone UrlShortener, add it to LocalSettings and run update.php
- Go to any article in your wiki
- Append the ?uselang=x-xss parameter to the end of the url
- Open the "Tools" dropdown and click on the entry containing urlshortener-toolbox
(Not sure what I did wrong when setting up the extension but this way I got the error message to show up)
Cause
The unsanitized system message is passed into jQuery's .html() function:
