FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/python/ql/src/Security/CWE-643/xpathBad.py at codeql-cli/v2.27.1 · github/codeql · GitHub
github
codeql
Repository navigation
Code
Issues
1k
(1k)
Pull requests
481
(481)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
python
/
ql
/
src
/
Security
/
CWE-643
/
xpathBad.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (13 loc) · 379 Bytes
Breadcrumbs
codeql
/
python
/
ql
/
src
/
Security
/
CWE-643
/
xpathBad.py
Copy path
File metadata and controls
18 lines (13 loc) · 379 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
from
lxml
import
etree
from
io
import
StringIO
from
django
.
urls
import
path
from
django
.
http
import
HttpResponse
from
django
.
template
import
Template
,
Context
,
Engine
,
engines
def
a
(
request
):
value
=
request
.
GET
[
'xpath'
]
f
=
StringIO
(
'<foo><bar></bar></foo>'
)
tree
=
etree
.
parse
(
f
)
r
=
tree
.
xpath
(
"/tag[@id='%s']"
%
value
)
urlpatterns
=
[
path
(
'a'
,
a
)
]
Back
|
FazBrowse Home
|
New Git URL