The word-separator system message is inserted as HTML at Special:ApiSandbox if certain actions are selected.
Reproduction steps
- Edit MediaWiki:Word-separator to <img src=x onerror=alert(1)>
- Go to /wiki/Special:ApiSandbox#action=opensearch (all actions with a parameter using the limit type work, e.g. /wiki/Special:ApiSandbox#action=query&list=allimages)
Cause
Similar code is also present here, but while I tried various modules that had parameters marked as PARAM_ISMULTI => true, ppi.multi was never present in the API responses for me:
https://gerrit.wikimedia.org/g/mediawiki/core/+/e07d3c7a37fbc26d70562d153c1f7b0f5f07e044/resources/src/mediawiki.special.apisandbox/ApiSandboxLayout.js#144
Additional information
- MediaWiki: 1.45.0-alpha
