Skip to content

Commit 768d866

Browse files
committed
python: model urllib.parse.parse_qs
1 parent 0462809 commit 768d866

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

python/ql/lib/semmle/python/frameworks/Stdlib.model.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ extensions:
134134
- ["traceback.StackSummary", "Member[from_list]", "Argument[0,a_list:]", "ReturnValue", "taint"]
135135
# See https://docs.python.org/3/library/typing.html#typing.cast
136136
- ["typing", "Member[cast]", "Argument[1,val:]", "ReturnValue", "value"]
137+
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.parse_qs
138+
- ["urllib", "Member[parse].Member[parse_qs]", "Argument[0,qs:]", "ReturnValue", "taint"]
137139
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote
138140
- ["urllib", "Member[parse].Member[quote]", "Argument[0,string:]", "ReturnValue", "taint"]
139141
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote_plus

python/ql/test/library-tests/frameworks/urllib/taint_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ def test():
66
params = urllib.parse.parse_qs(ts)
77

88
ensure_tainted(
9-
params, # $ MISSING: tainted
9+
params, # $ tainted
1010
)

0 commit comments

Comments
 (0)