Webhacking.kr old-15

정동겸·2023년 3월 23일
0

문제 설명

old-15번은 문제에 들어갈려하면 alert창으로 Access Denied가 뜨며 메인페이지로
돌아가진다

해결 방식

postman을 이용해 문제 url인 https://webhacking.kr/challenge/js-2/ 로 get 요청을 보내보았다.

<html>

<head>
	<title>Challenge 15</title>
</head>

<body>
	<script>
		alert("Access_Denied");
  location.href='/';
  document.write("<a href=?getFlag>[Get Flag]</a>");
	</script>
</body>

이런 식으로 응답이 왔고 document.write 부분을 보면 getFlag로 이동하면 뭔가 될것 같았다.
그리고 실제로 접속해보니 문제가 풀렸다는 alert창이 뜨며 해결됐다.

0개의 댓글