The WikiLove extension is vulnerable to stored XSS through the wikilove-what-is-this-link system message.
Reproduction
- Edit MediaWiki:Wikilove-what-is-this-link to javascript:alert(document.domain)
- Go to Special:Preferences and enable Enable showing appreciation for other users with the WikiLove tab under the Editing tab
- Go to the talk page of a different user and click on the heart icon
- Middle click on the "What is this?" link
- If the new tab has opened in the background, open it
Cause
The message is inserted into the href attribute of an HTML element without any validation:
https://gerrit.wikimedia.org/g/mediawiki/extensions/WikiLove/+/5835f41c7995b45feed96850d64e3ecc9596adb3/resources/ext.wikiLove.startup/WikiLoveDialog.vue#27
