diff --git a/instances/test_xss.py b/instances/test_xss.py index b6867ca9..4e9d631d 100644 --- a/instances/test_xss.py +++ b/instances/test_xss.py @@ -3,6 +3,7 @@ Regression tests for ROADMAP Wave 0 item 3 (S-06, S-07): JSON endpoints must not be served as text/html (reflected XSS), and templates must not build HTML by concatenating server data that contains user-controlled names (stored XSS). """ +import re from pathlib import Path from unittest.mock import patch @@ -127,3 +128,40 @@ class TemplateHtmlConcatenationTestCase(TestCase): def test_create_wizard_volume_lists_do_not_concatenate_volume_names_into_html(self): src = self._read("instances/templates/create_instance_w2.html") self.assertNotIn("'