src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/prohibitedCalls.py

branch
eric7
changeset 10507
d1c6608155ef
parent 10503
6a37b6ac3928
child 10638
12558008c269
equal deleted inserted replaced
10506:321555d0303b 10507:d1c6608155ef
33 "dill.loads", 33 "dill.loads",
34 "dill.load", 34 "dill.load",
35 "dill.Unpickler", 35 "dill.Unpickler",
36 "shelve.open", 36 "shelve.open",
37 "shelve.DbfilenameShelf", 37 "shelve.DbfilenameShelf",
38 "jsonpickle.decode",
39 "jsonpickle.unpickler.decode",
40 "jsonpickle.unpickler.Unpickler",
41 "pandas.read_pickle",
38 ], 42 ],
39 "M", 43 "M",
40 ), 44 ),
41 "S302": (["marshal.load", "marshal.loads"], "M"), 45 "S302": (["marshal.load", "marshal.loads"], "M"),
42 } 46 }
99 ), 103 ),
100 "S305": (["cryptography.hazmat.primitives.ciphers.modes.ECB"], "M"), 104 "S305": (["cryptography.hazmat.primitives.ciphers.modes.ECB"], "M"),
101 "S306": (["tempfile.mktemp"], "M"), 105 "S306": (["tempfile.mktemp"], "M"),
102 "S307": (["eval"], "M"), 106 "S307": (["eval"], "M"),
103 "S308": (["django.utils.safestring.mark_safe"], "M"), 107 "S308": (["django.utils.safestring.mark_safe"], "M"),
104 "S309": (
105 [
106 "httplib.HTTPSConnection",
107 "http.client.HTTPSConnection",
108 "six.moves.http_client.HTTPSConnection",
109 ],
110 "M",
111 ),
112 "S310": ( 108 "S310": (
113 [ 109 [
114 "urllib.urlopen",
115 "urllib.request.urlopen", 110 "urllib.request.urlopen",
116 "urllib.urlretrieve",
117 "urllib.request.urlretrieve", 111 "urllib.request.urlretrieve",
118 "urllib.URLopener",
119 "urllib.request.URLopener", 112 "urllib.request.URLopener",
120 "urllib.FancyURLopener",
121 "urllib.request.FancyURLopener", 113 "urllib.request.FancyURLopener",
122 "urllib2.urlopen",
123 "urllib2.Request",
124 "six.moves.urllib.request.urlopen", 114 "six.moves.urllib.request.urlopen",
125 "six.moves.urllib.request.urlretrieve", 115 "six.moves.urllib.request.urlretrieve",
126 "six.moves.urllib.request.URLopener", 116 "six.moves.urllib.request.URLopener",
127 "six.moves.urllib.request.FancyURLopener", 117 "six.moves.urllib.request.FancyURLopener",
128 ], 118 ],
129 "", 119 "",
130 ), 120 ),
131 "S311": ( 121 "S311": (
132 [ 122 [
123 "random.Random",
133 "random.random", 124 "random.random",
134 "random.randrange", 125 "random.randrange",
135 "random.randint", 126 "random.randint",
136 "random.choice", 127 "random.choice",
137 "random.choices", 128 "random.choices",
179 "M", 170 "M",
180 ), 171 ),
181 "S321": (["ftplib.*"], "H"), 172 "S321": (["ftplib.*"], "H"),
182 "S322": (["input"], "H"), 173 "S322": (["input"], "H"),
183 "S323": (["ssl._create_unverified_context"], "M"), 174 "S323": (["ssl._create_unverified_context"], "M"),
184 "S324": (["os.tempnam", "os.tmpnam"], "M"),
185 } 175 }
186 ) 176 )
187 177
188 178
189 def getChecks(): 179 def getChecks():

eric ide

mercurial