-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15905 from yoff/python/stdlib-start-modeling-usin…
…g-mad Python: Start modelling the standard library using MaD
- Loading branch information
Showing
2 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
python/ql/lib/semmle/python/frameworks/Stdlib/StdLib.model.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
extensions: | ||
- addsTo: | ||
pack: codeql/python-all | ||
extensible: sourceModel | ||
data: [] | ||
|
||
- addsTo: | ||
pack: codeql/python-all | ||
extensible: sinkModel | ||
data: [] | ||
|
||
- addsTo: | ||
pack: codeql/python-all | ||
extensible: summaryModel | ||
data: | ||
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote | ||
- ["urllib", "Member[parse].Member[quote]", "Argument[0,string:]", "ReturnValue", "taint"] | ||
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote_plus | ||
- ["urllib", "Member[parse].Member[quote_plus]", "Argument[0,string:]", "ReturnValue", "taint"] | ||
# See https://epydoc.sourceforge.net/stdlib/urllib-module.html | ||
- ["urllib", "Member[parse].Member[splitquery]", "Argument[0,url:]", "ReturnValue.TupleElement[0,1]", "taint"] | ||
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.unquote | ||
- ["urllib", "Member[parse].Member[unquote]", "Argument[0,string:]", "ReturnValue", "taint"] | ||
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.unquote_plus | ||
- ["urllib", "Member[parse].Member[unquote_plus]", "Argument[0,string:]", "ReturnValue", "taint"] | ||
# We could consider a more precise source than the first argument, namely tuple or dict content. | ||
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode | ||
- ["urllib", "Member[parse].Member[urlencode]", "Argument[0,query:]", "ReturnValue", "taint"] | ||
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urljoin | ||
- ["urllib", "Member[parse].Member[urljoin]", "Argument[0,base:,1,url:]", "ReturnValue", "taint"] | ||
- addsTo: | ||
pack: codeql/python-all | ||
extensible: neutralModel | ||
data: [] | ||
|
||
- addsTo: | ||
pack: codeql/python-all | ||
extensible: typeModel | ||
data: [] | ||
|
||
- addsTo: | ||
pack: codeql/python-all | ||
extensible: typeVariableModel | ||
data: [] |