ν°μ€ν 리 λ·°
μ€λͺ (λ²μ)
XSS ( κ΅μ°¨ μ¬μ΄νΈ μ€ν¬λ¦½ν ) λ²κ·Έλ μΉ μμ© νλ‘κ·Έλ¨μμ κ°μ₯ μΌλ°μ μ΄κ³ μνν μ νμ μ·¨μ½μ μ€ νλμ λλ€. μ΄λ¬ν μ±κ°μ λ²κ±°λ μ μ΄ μ±μμ μ¬μ©μ λ°μ΄ν°λ₯Ό νμΉκ±°λ μμ ν μ μλλ‘ νμ©ν μ μμΌλ©°, μ΄λ¬ν μ μμ μΈ μ€ν¬λ¦½νΈλ₯Ό 보λ΄λ λ²μ λ°°μμΌ ν©λλ€
Googleμμλ μ΄λ¬ν λ²κ·Έκ° μΌλ§λ μ€μνμ§ μ μκ³ μμ΅λλ€. μ€μ λ‘ Googleμ XSS λ¬Έμ λ₯Ό μ°Ύκ³ μμ νλ λ° λ§€μ° μ§μ§ νμ¬ κ°μ₯ λ―Όκ°ν μ νμμ λ°κ²¬λ μνν XSS λ²κ·Έμ λν΄ μ΅λ 7,500 λ¬λ¬λ₯Ό μ©λ³μκ² μ§λΆνκ³ μμ΅λλ€.
ν΄λΉ κ²μμ ν΅ν΄ XSS λ²κ·Έλ₯Ό μ°Ύκ³ νμ©νλ λ°©λ²μ λ°°μλλ€. μ΄ μ§μμ μ¬μ©νμ¬ μ ν리μΌμ΄μ μμ μ΄λ¬ν λ²κ·Έκ° λ°μνλ κ²μ λ°©μ§νμ¬ μ μ νΌλμ€λ½κ² νκ³ λΆλ Ένκ² ν κ²μ λλ€.
μνμ΄ λλλ©΄ μΌμ΄ν¬κ° λμ΅λλ€.
page_header = """
<!doctype html>
<html>
<head>
<!-- Internal game scripts/styles, mostly boring stuff -->
<script src="/static/game-frame.js"></script>
<link rel="stylesheet" href="/static/game-frame-styles.css" />
</head>
<body id="level1">
<img src="/static/logos/level1.png">
<div>
"""
page_footer = """
</div>
</body>
</html>
"""
main_page_markup = """
<form action="" method="GET">
<input id="query" name="query" value="Enter query here..."
onfocus="this.value=''">
<input id="button" type="submit" value="Search">
</form>
"""
class MainPage(webapp.RequestHandler):
def render_string(self, s):
self.response.out.write(s)
def get(self):
# Disable the reflected XSS filter for demonstration purposes
self.response.headers.add_header("X-XSS-Protection", "0")
if not self.request.get('query'):
# Show main search page
self.render_string(page_header + main_page_markup + page_footer)
else:
query = self.request.get('query', '[empty]')
# Our search engine broke, we found no results :-(
message = "Sorry, no results were found for <b>" + query + "</b>."
message += " <a href='?'>Try again</a>."
# Display the results page
self.render_string(page_header + message + page_footer)
return
application = webapp.WSGIApplication([ ('.*', MainPage), ], debug=False)
κΈ°λ³Έ ꡬ문μΌλ‘ μΆ©λΆν ν΄λ¦¬μ΄ κ°λ₯ν λ¨κ³μ λλ€.
ννΈ
1. μμ© νλ‘κ·Έλ¨μ μμ€λ₯Ό λ³΄λ €λ©΄ νλ μμ λ§μ°μ€ μ€λ₯Έμͺ½ λ²νΌμΌλ‘ ν΄λ¦νκ³ μ»¨ν μ€νΈ λ©λ΄μμ View Frame Sourceλ₯Ό λΈλΌμ°μ μ κ°λ°μ λꡬλ₯Ό μ¬μ©νμ¬ λ€νΈμν¬ νΈλν½μ κ²μ¬ν μ μμ΅λλ€.
2. <h1>κ³Ό κ°μ ν리μ ν μ΄μ νκ·Έλ₯Ό μ λ ₯νλ©΄ μ΄λ»κ² λ©λκΉ?
3. μ’μ΅λλ€. λ§μ§λ§ ννΈ : <script>... alert...
'CHALLENGE' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
XSS-Game Level 6 (0) | 2020.12.01 |
---|---|
XSS-Game Level 5 (0) | 2020.11.30 |
XSS-Game Level 4 (0) | 2020.11.29 |
XSS-Game Level 3 (0) | 2020.11.28 |
XSS-Game Level 2 (0) | 2020.11.27 |