In the Quiz extension, the quiz-ignore-coef system message is inserted into raw HTML unescaped, allowing JavaScript to be executed.
Reproduction steps:
- Edit MediaWiki:quiz-ignore-coef and replace it with (or add) <script>alert("hi!")</script>
- Visit a page with a quiz
I'm not sure which quizzes exactly display this message, so here is the example quiz I used:
<quiz>
{Question
|type="()"}
+ The correct answer.
- Distractor.
- Distractor.
- Distractor.
</quiz>Alternatively:
- Make sure wgUseXssLanguage is set to true
- Go to a page with a quiz and append ?uselang=x-xss to the URL
Explanation
The message is provided to the template using the text() output mode and then inserted unescaped.

