From 072c661aa71d63b10ba390046cd9cf17c4c11361 Mon Sep 17 00:00:00 2001 From: Andrew Krasichkov Date: Tue, 6 Jun 2017 22:10:17 +0300 Subject: [PATCH] [alias_traversal] Added tests --- tests/plugins/simply/alias_traversal/config.json | 3 +++ tests/plugins/simply/alias_traversal/nested.conf | 5 +++++ tests/plugins/simply/alias_traversal/nested_fp.conf | 5 +++++ tests/plugins/simply/alias_traversal/simple.conf | 3 +++ tests/plugins/simply/alias_traversal/simple_fp.conf | 3 +++ 5 files changed, 19 insertions(+) create mode 100644 tests/plugins/simply/alias_traversal/config.json create mode 100644 tests/plugins/simply/alias_traversal/nested.conf create mode 100644 tests/plugins/simply/alias_traversal/nested_fp.conf create mode 100644 tests/plugins/simply/alias_traversal/simple.conf create mode 100644 tests/plugins/simply/alias_traversal/simple_fp.conf diff --git a/tests/plugins/simply/alias_traversal/config.json b/tests/plugins/simply/alias_traversal/config.json new file mode 100644 index 0000000..abad4d1 --- /dev/null +++ b/tests/plugins/simply/alias_traversal/config.json @@ -0,0 +1,3 @@ +{ + "severity": "HIGH" +} diff --git a/tests/plugins/simply/alias_traversal/nested.conf b/tests/plugins/simply/alias_traversal/nested.conf new file mode 100644 index 0000000..6630b92 --- /dev/null +++ b/tests/plugins/simply/alias_traversal/nested.conf @@ -0,0 +1,5 @@ +location /files/ { + location /files/images { + alias /home/; + } +} diff --git a/tests/plugins/simply/alias_traversal/nested_fp.conf b/tests/plugins/simply/alias_traversal/nested_fp.conf new file mode 100644 index 0000000..5c3dccb --- /dev/null +++ b/tests/plugins/simply/alias_traversal/nested_fp.conf @@ -0,0 +1,5 @@ +location /files/ { + location /files/images { + } + alias /home/; +} diff --git a/tests/plugins/simply/alias_traversal/simple.conf b/tests/plugins/simply/alias_traversal/simple.conf new file mode 100644 index 0000000..3b54b8c --- /dev/null +++ b/tests/plugins/simply/alias_traversal/simple.conf @@ -0,0 +1,3 @@ +location /files { + alias /home/; +} diff --git a/tests/plugins/simply/alias_traversal/simple_fp.conf b/tests/plugins/simply/alias_traversal/simple_fp.conf new file mode 100644 index 0000000..c30e22e --- /dev/null +++ b/tests/plugins/simply/alias_traversal/simple_fp.conf @@ -0,0 +1,3 @@ +location /files/ { + alias /home/; +}