일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 케이쉴드주니어4기
- wargame
- 인젝션
- 정보보호관리진단
- hacker101
- 컨설팅
- 면접후기
- report
- 케이쉴드주니어
- 호스트헤더
- writeup
- 케쉴주4기
- game
- XSS
- Googledorks
- 웹해킹
- CTF
- 버그바운티
- wargmae
- 우버
- hackerone
- 취약점
- 구글해킹
- IDOR
- bugbounty
- 케쉴주
- Today
- Total
Hack The World
XSS game : Level 5 Write up 본문
이 사이트의 기능은 회원가입을 하는데 이메일을 입력하고 넘기면 회원가입이되는 구조인거같다.
코드를 살펴보면
confirm.html
<!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="level5">
<img src="/static/logos/level5.png" /><br><br>
Thanks for signing up, you will be redirected soon...
<script>
setTimeout(function() { window.location = '{{ next }}'; }, 5000);
</script>
</body>
</html>
signup.html
<!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="level5">
<img src="/static/logos/level5.png" /><br><br>
<!-- We're ignoring the email, but the poor user will never know! -->
Enter email: <input id="reader-email" name="email" value="">
<br><br>
<a href="{{ next }}">Next >></a>
</body>
</html>
welcome.html
<!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="level5">
Welcome! Today we are announcing the much anticipated<br><br>
<img src="/static/logos/level5.png" /><br><br>
<a href="/level5/frame/signup?next=confirm">Sign up</a>
for an exclusive Beta.
</body>
</html>
singup.html 에서
next 를 href 태그로 받아서 값을 넘기는거같다.
href 태그이기에 간단하게 javascript:alert(1) 을 입력해주면 해결
'Wargame > XSS game' 카테고리의 다른 글
XSS game: Level 4 Write up (0) | 2020.03.13 |
---|---|
XSS game: Level 3 Write up (0) | 2020.03.13 |
XSS game: Level2 Write up (0) | 2020.03.12 |
XSS game: Level 1 Write up (0) | 2020.03.12 |
Comments