|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.djangoSqlInjection</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.djangoSqlInjection</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing checks for potential SQL injections risks. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 <tr><td>None</td></tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 |
|
40 <table> |
|
41 |
|
42 <tr> |
|
43 <td><a href="#checkDjangoExtraUsed">checkDjangoExtraUsed</a></td> |
|
44 <td>Function to check for potential SQL injection on extra function.</td> |
|
45 </tr> |
|
46 <tr> |
|
47 <td><a href="#checkDjangoRawSqlUsed">checkDjangoRawSqlUsed</a></td> |
|
48 <td>Function to check for potential SQL injection on RawSQL function.</td> |
|
49 </tr> |
|
50 <tr> |
|
51 <td><a href="#getChecks">getChecks</a></td> |
|
52 <td>Public method to get a dictionary with checks handled by this module.</td> |
|
53 </tr> |
|
54 <tr> |
|
55 <td><a href="#keywords2dict">keywords2dict</a></td> |
|
56 <td>Function to extract keywords arguments into a dictionary.</td> |
|
57 </tr> |
|
58 </table> |
|
59 <hr /> |
|
60 <hr /> |
|
61 <a NAME="checkDjangoExtraUsed" ID="checkDjangoExtraUsed"></a> |
|
62 <h2>checkDjangoExtraUsed</h2> |
|
63 <b>checkDjangoExtraUsed</b>(<i>reportError, context, config</i>) |
|
64 |
|
65 <p> |
|
66 Function to check for potential SQL injection on extra function. |
|
67 </p> |
|
68 <dl> |
|
69 |
|
70 <dt><i>reportError</i> (func)</dt> |
|
71 <dd> |
|
72 function to be used to report errors |
|
73 </dd> |
|
74 <dt><i>context</i> (SecurityContext)</dt> |
|
75 <dd> |
|
76 security context object |
|
77 </dd> |
|
78 <dt><i>config</i> (dict)</dt> |
|
79 <dd> |
|
80 dictionary with configuration data |
|
81 </dd> |
|
82 </dl> |
|
83 <div align="right"><a href="#top">Up</a></div> |
|
84 <hr /> |
|
85 <hr /> |
|
86 <a NAME="checkDjangoRawSqlUsed" ID="checkDjangoRawSqlUsed"></a> |
|
87 <h2>checkDjangoRawSqlUsed</h2> |
|
88 <b>checkDjangoRawSqlUsed</b>(<i>reportError, context, config</i>) |
|
89 |
|
90 <p> |
|
91 Function to check for potential SQL injection on RawSQL function. |
|
92 </p> |
|
93 <dl> |
|
94 |
|
95 <dt><i>reportError</i> (func)</dt> |
|
96 <dd> |
|
97 function to be used to report errors |
|
98 </dd> |
|
99 <dt><i>context</i> (SecurityContext)</dt> |
|
100 <dd> |
|
101 security context object |
|
102 </dd> |
|
103 <dt><i>config</i> (dict)</dt> |
|
104 <dd> |
|
105 dictionary with configuration data |
|
106 </dd> |
|
107 </dl> |
|
108 <div align="right"><a href="#top">Up</a></div> |
|
109 <hr /> |
|
110 <hr /> |
|
111 <a NAME="getChecks" ID="getChecks"></a> |
|
112 <h2>getChecks</h2> |
|
113 <b>getChecks</b>(<i></i>) |
|
114 |
|
115 <p> |
|
116 Public method to get a dictionary with checks handled by this module. |
|
117 </p> |
|
118 <dl> |
|
119 <dt>Return:</dt> |
|
120 <dd> |
|
121 dictionary containing checker lists containing checker function and |
|
122 list of codes |
|
123 </dd> |
|
124 </dl> |
|
125 <dl> |
|
126 <dt>Return Type:</dt> |
|
127 <dd> |
|
128 dict |
|
129 </dd> |
|
130 </dl> |
|
131 <div align="right"><a href="#top">Up</a></div> |
|
132 <hr /> |
|
133 <hr /> |
|
134 <a NAME="keywords2dict" ID="keywords2dict"></a> |
|
135 <h2>keywords2dict</h2> |
|
136 <b>keywords2dict</b>(<i>keywords</i>) |
|
137 |
|
138 <p> |
|
139 Function to extract keywords arguments into a dictionary. |
|
140 </p> |
|
141 <dl> |
|
142 |
|
143 <dt><i>keywords</i> (list of ast.keyword)</dt> |
|
144 <dd> |
|
145 list of keyword nodes |
|
146 </dd> |
|
147 </dl> |
|
148 <dl> |
|
149 <dt>Return:</dt> |
|
150 <dd> |
|
151 dictionary with keyword name and value |
|
152 </dd> |
|
153 </dl> |
|
154 <dl> |
|
155 <dt>Return Type:</dt> |
|
156 <dd> |
|
157 dict |
|
158 </dd> |
|
159 </dl> |
|
160 <div align="right"><a href="#top">Up</a></div> |
|
161 <hr /> |
|
162 </body></html> |