Python: Expand flask test

This commit is contained in:
Rasmus Wriedt Larsen
2020-09-22 16:10:50 +02:00
parent e614365963
commit 5709189c2a
2 changed files with 10 additions and 0 deletions

View File

@@ -94,3 +94,5 @@
| test.py:178 | ok | test_taint | a.getlist(..) |
| test.py:179 | ok | test_taint | b.getlist(..) |
| test.py:180 | ok | test_taint | gl(..) |
| test.py:187 | ok | test_taint | req.path |
| test.py:188 | fail | test_taint | gd() |

View File

@@ -180,6 +180,14 @@ def test_taint(name = "World!", number="0", foo="foo"):
gl('key'),
)
# aliasing tests
req = request
gd = request.get_data
ensure_tainted(
req.path,
gd(),
)