You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Choose a web framework: `The -a option chooses what functions will have their arguments tainted`_, by default it is Flask.
67
+
68
+
2. (optional) Customize source and sink information: Use the ``-t`` option to specify sources and sinks, by default `this file is used`_.
69
+
70
+
3. (optional) Customize which library functions propagate taint: For functions that are imported from libraries, e.g. ``url_for`` or ``os.path.join``, use the ``-m`` option to specify whether or not they return tainted values given tainted inputs, by `default this file is used`_.
71
+
72
+
.. _The -a option chooses what functions will have their arguments tainted: https://github.com/python-security/pyt/tree/master/pyt/web_frameworks#web-frameworks
73
+
.. _this file is used: https://github.com/python-security/pyt/blob/master/pyt/vulnerability_definitions/all_trigger_words.pyt
74
+
.. _default this file is used: https://github.com/python-security/pyt/blob/master/pyt/vulnerability_definitions/blackbox_mapping.json
75
+
76
+
61
77
Usage
62
78
=====
63
79
@@ -106,25 +122,6 @@ Usage
106
122
-i, --interactive Will ask you about each blackbox function call in
107
123
vulnerability chains.
108
124
109
-
Choosing a Web Framework
110
-
========================
111
-
112
-
`The -a option chooses what functions will have their arguments tainted`_
113
-
114
-
.. _The -a option chooses what functions will have their arguments tainted: https://github.com/python-security/pyt/tree/master/pyt/web_frameworks#web-frameworks
115
-
116
-
Configuring Source and Sink Information
117
-
=======================================
118
-
119
-
Use the ``-t`` option to specify sources and sinks, by default `this file is used`_.
120
-
121
-
.. _this file is used: https://github.com/python-security/pyt/blob/master/pyt/vulnerability_definitions/all_trigger_words.pyt
122
-
123
-
For functions that are imported from libraries, use the ``-m`` option to specify whether or not they
124
-
return tainted values given tainted inputs, by `default this file is used`_.
125
-
126
-
.. _default this file is used: https://github.com/python-security/pyt/blob/master/pyt/vulnerability_definitions/blackbox_mapping.json)
0 commit comments