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 golem 본문

Web/Lord of Sql Ingection

LOS golem

언우s 2018. 4. 11. 09:58

11. golem

if(preg_match('/or|and|substr\(|=/i', $_GET[pw])) exit("HeHe"); 

or, and, substr, = 필터링
$query = "select id from prob_golem where id='guest' and pw='{$_GET[pw]}'"; 

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

pw를 맞춰야 하므로 블라인드 인젝션

=을 사용할 수 없으므로 like로 우회

?pw=88e3137f

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

LOS bugbear  (0) 2018.04.11
LOS darkknight  (0) 2018.04.11
LOS skeleton  (0) 2018.04.11
LOS vampire  (0) 2018.04.11
LOS troll  (0) 2018.04.11
Comments