summaryrefslogtreecommitdiff
path: root/tests/test_integration.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_integration.py')
-rw-r--r--tests/test_integration.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_integration.py b/tests/test_integration.py
index 0b55872d2..184368214 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -220,10 +220,17 @@ class TestEventOnlySubscribers(IntegrationBase, unittest.TestCase):
class TestStaticAppUsingAbsPath(StaticAppBase, unittest.TestCase):
package = 'tests.pkgs.static_abspath'
+ def test_nulbyte_chroot(self):
+ super_w_null = '/static/..\x00/'
+ res = self.testapp.get(f'/{super_w_null}', status=404)
+
class TestStaticAppUsingAssetSpec(StaticAppBase, unittest.TestCase):
package = 'tests.pkgs.static_assetspec'
+ def test_nulbyte_chroot(self):
+ super_w_null = 'static/..\x00/'
+ res = self.testapp.get(f'/{super_w_null}', status=404)
class TestStaticAppWithEncodings(IntegrationBase, unittest.TestCase):
package = 'tests.pkgs.static_encodings'