Open dpkn opened 4 years ago
Posts in discussions allow students to inject custom HTML with the position:fixed; attribute, allowing it to take over the whole page.
<h1 style="font-size: 10em; position: fixed; top: 0; left: 0; width:100%;height:100%;background:red;z-index: 9999999999;">hello</h1>
The position:fixed; will get stripped or the written HTML will be contained within the post borders.
The custom HTML is allowed to transcend the post borders, rendering the whole discussion page usesless for others.
Haha I just found this was possible today and was looking to submit an issue, you raced me to it 🥂
Summary:
Posts in discussions allow students to inject custom HTML with the position:fixed; attribute, allowing it to take over the whole page.
Steps to reproduce:
Expected behavior:
The position:fixed; will get stripped or the written HTML will be contained within the post borders.
Actual behavior:
The custom HTML is allowed to transcend the post borders, rendering the whole discussion page usesless for others.