FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pyt/example/vulnerable_code/XSS_url.py at 8githubScanRefactor · python-security/pyt · GitHub
python-security
pyt
Repository navigation
Code
Issues
26
(26)
Pull requests
2
(2)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pyt
/
example
/
vulnerable_code
/
XSS_url.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (10 loc) · 338 Bytes
Breadcrumbs
pyt
/
example
/
vulnerable_code
/
XSS_url.py
Copy path
File metadata and controls
13 lines (10 loc) · 338 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
from
flask
import
Flask
,
request
,
make_response
app
=
Flask
(
__name__
)
@
app
.
route
(
'/XSS_param/<path:url>'
,
methods
=
[
'GET'
])
def
XSS1
(
url
):
param
=
url
html
=
open
(
'templates/XSS_param.html'
).
read
()
resp
=
make_response
(
html
.
replace
(
'{{ param }}'
,
param
))
return
resp
if
__name__
==
'__main__'
:
app
.
run
(
debug
=
True
)
Back
|
FazBrowse Home
|
New Git URL