FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/python/ql/src/Statements/ExecUsed.qhelp at codeql-cli/v2.26.0 · github/codeql · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
github
/
codeql
Public
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
10k
Code
Issues
998
Pull requests
460
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
python
/
ql
/
src
/
Statements
/
ExecUsed.qhelp
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (23 loc) · 1019 Bytes
Breadcrumbs
codeql
/
python
/
ql
/
src
/
Statements
/
ExecUsed.qhelp
Copy path
File metadata and controls
30 lines (23 loc) · 1019 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!
DOCTYPE
qhelp
PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<
qhelp
>
<
overview
>
<
p
> Using <
code
>exec</
code
> may introduce a security vulnerability into your program unless
you ensure that the data passed to the statement is neutralized.
</
p
>
</
overview
>
<
recommendation
>
<
p
>Review all uses of the <
code
>exec</
code
> statement (Python 2) or function (Python 3).
Where possible, replace the <
code
>exec</
code
> statement or function with normal python code.
Alternatively, ensure that all data passed to the statement is neutralized.</
p
>
</
recommendation
>
<
example
>
<
p
>In the example, the <
code
>exec</
code
> statement is used and may result in executing code from an attacker.</
p
>
<
sample
src
=
"
ExecUsed.py
"
/>
</
example
>
<
references
>
<
li
>Python 2.7 Language Reference: <
a
href
=
"
https://docs.python.org/2.7/reference/simple_stmts.html#the-exec-statement
"
>The exec statement</
a
>.</
li
>
<
li
>Python 3 Standard Library: <
a
href
=
"
https://docs.python.org/3/library/functions.html#exec
"
>exec</
a
>.</
li
>
</
references
>
</
qhelp
>
Back
|
FazBrowse Home
|
New Git URL