Created
March 12, 2017 12:19
-
-
Save Swalloow/6ddf641ae4cef63ac479c0865aecf23c to your computer and use it in GitHub Desktop.
XSS Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route('/hi/<user>') | |
def hi(user): | |
return "<h1>hello, %s!</h1>"%user | |
# 위와 같은 간단한 라우팅에서 아래와 같이 공격할 수 있습니다. | |
# GET /hi/alert("hacked!") | |
# <h1> hello, alert("hacked!") </h1> | |
# 이걸 본 유저는 javascript alert창이 나타난다 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment