<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Qetx Blog</title>
        <link>http://qetx.top/</link>
        <description>个人小破站</description>
        <lastBuildDate>Sat, 04 Apr 2026 07:07:55 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-CN</language>
        <copyright>All rights reserved 2026, qetx</copyright>
        <item>
            <title><![CDATA[厦门三日游]]></title>
            <link>http://qetx.top/article/310b233d-8731-8093-849f-e0c582bbed13</link>
            <guid>http://qetx.top/article/310b233d-8731-8093-849f-e0c582bbed13</guid>
            <pubDate>Mon, 23 Feb 2026 00:00:00 GMT</pubDate>
        </item>
        <item>
            <title><![CDATA[2025浙江省CTF决赛]]></title>
            <link>http://qetx.top/article/2025zjctfwp</link>
            <guid>http://qetx.top/article/2025zjctfwp</guid>
            <pubDate>Fri, 21 Nov 2025 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-2b2b233d8731804e9c5ff0c73261a52f"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b2b233d873180bda5c8d57ca1f64ee6" data-id="2b2b233d873180bda5c8d57ca1f64ee6"><span><div id="2b2b233d873180bda5c8d57ca1f64ee6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d873180bda5c8d57ca1f64ee6" title="WEB"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">WEB</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2b2b233d873180b39034feaa7f96f996" data-id="2b2b233d873180b39034feaa7f96f996"><span><div id="2b2b233d873180b39034feaa7f96f996" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d873180b39034feaa7f96f996" title="咋输不进去捏"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">咋输不进去捏</span></span></h3><div class="notion-text notion-block-2b2b233d8731809e8568e2b1872ee85b">查看源代码，输入123456789得到flag</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d87318083afafc2322f3f2589"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:500.96588134765625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1828be5a-f9e8-4658-8d63-e0baaa13006c%3Aimage.png?table=block&amp;id=2b2b233d-8731-8083-afaf-c2322f3f2589&amp;t=2b2b233d-8731-8083-afaf-c2322f3f2589" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873180b59e56fb4899a55f39"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5e4b457e-4094-4241-b60e-083be3e729ea%3Aimage.png?table=block&amp;id=2b2b233d-8731-80b5-9e56-fb4899a55f39&amp;t=2b2b233d-8731-80b5-9e56-fb4899a55f39" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2b2b233d8731809eb6c6dfd22fd4522d" data-id="2b2b233d8731809eb6c6dfd22fd4522d"><span><div id="2b2b233d8731809eb6c6dfd22fd4522d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d8731809eb6c6dfd22fd4522d" title="审计大师"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>审计大师</b></span></span></h3><div class="notion-text notion-block-2b2b233d873180e49c73e60df94a6d14">源码</div><div class="notion-text notion-block-2b2b233d8731803aa90af3b58e2eb19b">最开始的版本找不到了，这个版本我已经翻译了一部分，他把代码里的单词改成了中文。</div><div class="notion-text notion-block-2b2b233d873180248e3be68d48f28e0b">在 <code class="notion-inline-code">/审计</code> 有会将参数 <code class="notion-inline-code">查询参数</code> 作为模板渲染，<code class="notion-inline-code">字符映射</code> 保存了黑名单过滤了三种引号。</div><div class="notion-text notion-block-2b2b233d87318063a320d1c46d9de0bc">猜测是 <code class="notion-inline-code">/audit</code> 和 <code class="notion-inline-code">?query=</code></div><div class="notion-text notion-block-2b2b233d873180ff9166c47e17bed8e4">fengjing一把梭</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873180359f8cc2e833bd9f0b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad38820ef-f61c-41d0-b1b4-3138b93a1821%3Aimage.png?table=block&amp;id=2b2b233d-8731-8035-9f8c-c2e833bd9f0b&amp;t=2b2b233d-8731-8035-9f8c-c2e833bd9f0b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d87318093b627cd0ae48b8bd7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5883cd08-bc1e-4d7f-89f7-d6354adefb3f%3Aimage.png?table=block&amp;id=2b2b233d-8731-8093-b627-cd0ae48b8bd7&amp;t=2b2b233d-8731-8093-b627-cd0ae48b8bd7" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2b2b233d8731805e96faf036ca5d40d6" data-id="2b2b233d8731805e96faf036ca5d40d6"><span><div id="2b2b233d8731805e96faf036ca5d40d6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d8731805e96faf036ca5d40d6" title="Superpop"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>Superpop</b></span></span></h3><div class="notion-text notion-block-2b2b233d8731800e9824c55b1c7765bc">源码</div><div class="notion-text notion-block-2b2b233d87318094b98bd74e6e063e96">构造Pop链</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873180f7b454e7289a1a32bf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad2d8f6f3-983b-48c1-8ce8-d67adb6ec45d%3Aimage.png?table=block&amp;id=2b2b233d-8731-80f7-b454-e7289a1a32bf&amp;t=2b2b233d-8731-80f7-b454-e7289a1a32bf" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d8731806a8e87c14bfed8bc25"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7cc81dca-577b-4792-b231-4eb100860d84%3Aimage.png?table=block&amp;id=2b2b233d-8731-806a-8e87-c14bfed8bc25&amp;t=2b2b233d-8731-806a-8e87-c14bfed8bc25" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d8731809f8ba9dc386e08cf46">查看源代码</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873180b7b6a2c6685f271c94"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A818a955a-9a32-463d-a3c5-d5d25b11ada1%3Aimage.png?table=block&amp;id=2b2b233d-8731-80b7-b6a2-c6685f271c94&amp;t=2b2b233d-8731-80b7-b6a2-c6685f271c94" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b2b233d8731803d9eb8eabdcb30859e" data-id="2b2b233d8731803d9eb8eabdcb30859e"><span><div id="2b2b233d8731803d9eb8eabdcb30859e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d8731803d9eb8eabdcb30859e" title="AI安全"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>AI安全</b></span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2b2b233d8731806fa889cbc94715fcb0" data-id="2b2b233d8731806fa889cbc94715fcb0"><span><div id="2b2b233d8731806fa889cbc94715fcb0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d8731806fa889cbc94715fcb0" title="寻找可爱的小狗"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">寻找可爱的小狗</span></span></h3><div class="notion-text notion-block-2b2b233d87318004afa8d1766f46548a">直接使用本地保存的图像识别模型，识别不是狗的图片</div><div class="notion-text notion-block-2b2b233d873180f9a68cd0f2de732abb">执行结果</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873180d0b619f0bfb7f18571"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac374a271-45ef-49e5-8549-fa9015cf122d%3Aimage.png?table=block&amp;id=2b2b233d-8731-80d0-b619-f0bfb7f18571&amp;t=2b2b233d-8731-80d0-b619-f0bfb7f18571" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d87318018a602c3d85ef862b9">md5后得到flag</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873180718813db7ef6390a87"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abeba296a-e829-477b-a443-ce508c734d4a%3Aimage.png?table=block&amp;id=2b2b233d-8731-8071-8813-db7ef6390a87&amp;t=2b2b233d-8731-8071-8813-db7ef6390a87" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b2b233d8731803cacccd595770593f8" data-id="2b2b233d8731803cacccd595770593f8"><span><div id="2b2b233d8731803cacccd595770593f8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d8731803cacccd595770593f8" title="数据安全"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">数据安全</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2b2b233d873180b598edd4516eeae86b" data-id="2b2b233d873180b598edd4516eeae86b"><span><div id="2b2b233d873180b598edd4516eeae86b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d873180b598edd4516eeae86b" title="shop"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">shop</span></span></h3><div class="notion-text notion-block-2b2b233d8731807f8462cab2dc257578">提交得到flag</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873180e693e6e5f838e7e11e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A402cb789-e954-4426-91ef-ae2aae13d7b4%3Aimage.png?table=block&amp;id=2b2b233d-8731-80e6-93e6-e5f838e7e11e&amp;t=2b2b233d-8731-80e6-93e6-e5f838e7e11e" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b2b233d873180718a98c5466db098b6" data-id="2b2b233d873180718a98c5466db098b6"><span><div id="2b2b233d873180718a98c5466db098b6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d873180718a98c5466db098b6" title="总结"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">总结</span></span></h2><div class="notion-text notion-block-2b2b233d873180cda5e4f1453eac704e">这次省赛总体来说还发挥不错拿了一等奖，这篇wp只记录了有关我的部分，剩余的可以去看我的友链中j1ya大佬的wp</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GeekChallenge2025-web]]></title>
            <link>http://qetx.top/article/2b3b233d-8731-8079-b116-d1f02c4eca7e</link>
            <guid>http://qetx.top/article/2b3b233d-8731-8079-b116-d1f02c4eca7e</guid>
            <pubDate>Thu, 27 Nov 2025 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-2b3b233d87318079b116d1f02c4eca7e"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b3b233d8731809b88c5e075a3333c37" data-id="2b3b233d8731809b88c5e075a3333c37"><span><div id="2b3b233d8731809b88c5e075a3333c37" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b3b233d8731809b88c5e075a3333c37" title="阿基里斯追乌龟"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>阿基里斯追乌龟</b></span></span></h2><div class="notion-text notion-block-2b3b233d8731806d8c9bfdd65c06f5d3">打开环境</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731808ea9cdc51c94b29031"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ada9abf9a-3b9e-4d1d-94eb-3cfae9260bcf%3Aimage.png?table=block&amp;id=2b3b233d-8731-808e-a9cd-c51c94b29031&amp;t=2b3b233d-8731-808e-a9cd-c51c94b29031" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d87318093890ddd3ff58f634c">点击追赶后抓包</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731803c9609c14911899109"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af0f74f75-b006-444a-8cec-442ea7800589%3Aimage.png?table=block&amp;id=2b3b233d-8731-803c-9609-c14911899109&amp;t=2b3b233d-8731-803c-9609-c14911899109" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180a29110e4d6c8021ee2">对data解码，得到</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731804cb080e65b82d8b02f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A35cd0a90-72a8-462e-9ed1-df16ccebfe58%3Aimage.png?table=block&amp;id=2b3b233d-8731-804c-b080-e65b82d8b02f&amp;t=2b3b233d-8731-804c-b080-e65b82d8b02f" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180729120dec063a40d60">直接将乌龟的距离清0构造data</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731806f9eecef512931916c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab4a7f846-256f-41d6-be42-fa15fe631ae3%3Aimage.png?table=block&amp;id=2b3b233d-8731-806f-9eec-ef512931916c&amp;t=2b3b233d-8731-806f-9eec-ef512931916c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180fd9336d04525707e31">进行发包</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180f09f6ccda4d49d1874"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7912e2cb-421a-4313-b943-4cdbd4fcd267%3Aimage.png?table=block&amp;id=2b3b233d-8731-80f0-9f6c-cda4d49d1874&amp;t=2b3b233d-8731-80f0-9f6c-cda4d49d1874" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d87318084843ad90d06bfc991">将返回数据解码得到flag</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180b3bf77f76768915617"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A26b7b57f-25c1-4595-9fd4-7fde2aff147e%3Aimage.png?table=block&amp;id=2b3b233d-8731-80b3-bf77-f76768915617&amp;t=2b3b233d-8731-80b3-bf77-f76768915617" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b3b233d873180d1bce8f8e8471b9a4b" data-id="2b3b233d873180d1bce8f8e8471b9a4b"><span><div id="2b3b233d873180d1bce8f8e8471b9a4b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b3b233d873180d1bce8f8e8471b9a4b" title="Vibe SEO"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>Vibe SEO</b></span></span></h2><div class="notion-text notion-block-2b3b233d87318043b3d8dff3f22d89e8">根据题目描述存在站点地图，去访问/sitemap.xml路由，得到如下结果</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d87318098a640d43d21a30736"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8b3f25fc-5310-4870-a597-12fb57921d6b%3Aimage.png?table=block&amp;id=2b3b233d-8731-8098-a640-d43d21a30736&amp;t=2b3b233d-8731-8098-a640-d43d21a30736" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731809eac5ae190ae3f61f1">得到新的路由/aa__^^.php去访问得到如下报错</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180ad88d9d4300aeb0d96"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7aa25bb7-3433-40ac-bbec-1754d16d5d3f%3Aimage.png?table=block&amp;id=2b3b233d-8731-80ad-88d9-d4300aeb0d96&amp;t=2b3b233d-8731-80ad-88d9-d4300aeb0d96" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180d8bc70dc8cf0820b79">根据报错提示猜测是文件读取，参数是filename，先使用get传参读取自身文件（主要是为了看具体文件源码），然后查看源码得到</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180769480edfb09e8554a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9486ebe3-2043-45c1-beb2-acdcd3376e6f%3Aimage.png?table=block&amp;id=2b3b233d-8731-8076-9480-edfb09e8554a&amp;t=2b3b233d-8731-8076-9480-edfb09e8554a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180ccbed2cb311d703020">得知filename长度不能超过11，但是flag所在的文件文件名很长，所以直接读取肯定不行</div><div class="notion-text notion-block-2b3b233d8731803d9901c811d12905b7">看到有被打开的文件描述符$flag，想到伪协议php://fd/[文件描述符编号]，但是试过长度太长不行，找了一个替代的文件目录/dev/fd/[文件描述符编号]</div><div class="notion-text notion-block-2b3b233d873180009840ed04dd3f36ac">其中文件描述符编号需要自己爆破，最后爆破出来是13，得到flag</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180de9937c20d05604657"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A130a222b-d66a-423c-980f-13e3c8054e58%3Aimage.png?table=block&amp;id=2b3b233d-8731-80de-9937-c20d05604657&amp;t=2b3b233d-8731-80de-9937-c20d05604657" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b3b233d8731801c9009de8f47388514" data-id="2b3b233d8731801c9009de8f47388514"><span><div id="2b3b233d8731801c9009de8f47388514" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b3b233d8731801c9009de8f47388514" title="Xross The Finish Line"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>Xross The Finish Line</b></span></span></h2><div class="notion-text notion-block-2b3b233d8731806ea05cf0b9ef4a0b25">打开一看界面就知道肯定是xss然后外带</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d87318095a3d0d34ff682c94a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A02a1c108-8dbe-4a75-b199-dd78e6d33a01%3Aimage.png?table=block&amp;id=2b3b233d-8731-8095-a3d0-d34ff682c94a&amp;t=2b3b233d-8731-8095-a3d0-d34ff682c94a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180a2a51af700bf7f7732">经过测试发现过滤了</div><div class="notion-text notion-block-2b3b233d8731809d95fcf47d90ba3c65">构造相应的payload</div><div class="notion-text notion-block-2b3b233d8731803b8249e00e2425b73f">输入到留言框提交</div><div class="notion-text notion-block-2b3b233d87318088a0ccc4da10257b13">在公网服务器上开启一个php的网站服务</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d87318028a8e0d3be4b790667"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A15e0571c-8dc7-4735-ab59-adc73d3cb011%3Aimage.png?table=block&amp;id=2b3b233d-8731-8028-a8e0-d3be4b790667&amp;t=2b3b233d-8731-8028-a8e0-d3be4b790667" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180c7b920ed6959c7a911">点击报告给管理员，就能外带管理员的cookie，就得到flag了</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731807693dddde47a0882fd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A41f43fbc-c0bf-4bf8-9a7c-b3ea0811e263%3Aimage.png?table=block&amp;id=2b3b233d-8731-8076-93dd-dde47a0882fd&amp;t=2b3b233d-8731-8076-93dd-dde47a0882fd" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b3b233d873180c69a1ddfada83610d5" data-id="2b3b233d873180c69a1ddfada83610d5"><span><div id="2b3b233d873180c69a1ddfada83610d5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b3b233d873180c69a1ddfada83610d5" title="Expression"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>Expression</b></span></span></h2><div class="notion-text notion-block-2b3b233d8731806cac51c5274035e90e">由题目意思知道这题应该是jwt伪造，先随便注册一个账号然后登陆抓包看jwt</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180fab980e3aaca01e337"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A25974cde-a8bf-4d58-9f46-e54667dae1a9%3Aimage.png?table=block&amp;id=2b3b233d-8731-80fa-b980-e3aaca01e337&amp;t=2b3b233d-8731-80fa-b980-e3aaca01e337" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731802d9429cb1a09be6818">得到了jwt去在线网站解密（<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.jwt.io/">https://www.jwt.io/</a>），因为说密钥没有改，所以大概率猜是secret，结果发现验证通过了</div><div class="notion-text notion-block-2b3b233d873180c382c7cb9b0e62e61a">其实也可以去爆破（爆破工具：c-jwt-cracker）</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d87318014865fd03d49e5d4cf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8901618f-c631-4ddc-87da-d6ac63234595%3Aimage.png?table=block&amp;id=2b3b233d-8731-8014-865f-d03d49e5d4cf&amp;t=2b3b233d-8731-8014-865f-d03d49e5d4cf" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731802883e2df100774e04e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5a66ee7f-4b5a-49ab-9a01-bd4f9635882f%3Aimage.png?table=block&amp;id=2b3b233d-8731-8028-83e2-df100774e04e&amp;t=2b3b233d-8731-8028-83e2-df100774e04e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731804eb6beddfaedb6a869">试一下伪造admin看看</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180498148c1579e7cce93"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abd13f5a9-839e-44ab-88c1-bbd4bea36b31%3Aimage.png?table=block&amp;id=2b3b233d-8731-8049-8148-c1579e7cce93&amp;t=2b3b233d-8731-8049-8148-c1579e7cce93" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180898d5ed79c17852795">将伪造后的值替换原来的token出发包</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180208b84dfb25e68814a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae47c1c7f-f344-4c45-90fb-b855d9435d15%3Aimage.png?table=block&amp;id=2b3b233d-8731-8020-8b84-dfb25e68814a&amp;t=2b3b233d-8731-8020-8b84-dfb25e68814a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180b198cff0e51b89ad5d">看到前端也显示admin了</div><div class="notion-text notion-block-2b3b233d873180d49ac2f280a39c2beb">去查看一下网站用什么写的</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180a29576de0bae0b6de4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3baaa05c-20e8-4166-a808-caf45ad1ee46%3Aimage.png?table=block&amp;id=2b3b233d-8731-80a2-9576-de0bae0b6de4&amp;t=2b3b233d-8731-80a2-9576-de0bae0b6de4" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731806da913d45fefaf3e0f">猜测可能是ejs模板注入，构造payload</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180c5a776ea720136c343"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A206a83f4-53f2-4913-bedf-be84b8937b0e%3Aimage.png?table=block&amp;id=2b3b233d-8731-80c5-a776-ea720136c343&amp;t=2b3b233d-8731-80c5-a776-ea720136c343" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731809891fce3e72f1eb03a">进行jwt伪造发包，得到flag</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180429f4cc940aff4cf7e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aeaba1bc8-f9ea-44c8-a2b7-60b6edd936ce%3Aimage.png?table=block&amp;id=2b3b233d-8731-8042-9f4c-c940aff4cf7e&amp;t=2b3b233d-8731-8042-9f4c-c940aff4cf7e" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b3b233d8731802b990ee6d71766b5d3" data-id="2b3b233d8731802b990ee6d71766b5d3"><span><div id="2b3b233d8731802b990ee6d71766b5d3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b3b233d8731802b990ee6d71766b5d3" title="popself"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>popself</b></span></span></h2><div class="notion-text notion-block-2b3b233d873180dc83f9c7d27c18ac8f">exp</div><div class="notion-text notion-block-2b3b233d8731803e883bfcc7bd4fba4b">得到flag</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180e5a91ee00b7bbd3f74"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa60f89c3-11b2-4e45-b9ba-b6b3470cb437%3Aimage.png?table=block&amp;id=2b3b233d-8731-80e5-a91e-e00b7bbd3f74&amp;t=2b3b233d-8731-80e5-a91e-e00b7bbd3f74" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731805e84affcacbcc55956">这题涉及到双md5还是0e开头的问题，下面贴一些符合要求的字符串</div><div class="notion-text notion-block-2b3b233d87318038ac91caacf90d2402">$md5  					md5(md5($md5))
0e1138100474			0e779212254407018184727546255414
0e1576609003			0e783827937870189505146310298941
0e1576882155			0e063554437755195035165445789139
0e1687027651			0e824361684489256492954843919134
0e1808236718			0e935567136545220553710393252752
0e1883153115			0e215043081382353607609756824848
0e2010692162			0e514898998879174336203746127058
0e2191017163			0e990693510804099511097744934423
0e2263940937			0e468303117297464441647744757721
0e2268790262			00e73242608486551620036091555760
0e2366549572			0e691884388380428395250404229605
0e2815644399			0e662052678416572768754614486758</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b3b233d8731800590ebfb9c10e305d8" data-id="2b3b233d8731800590ebfb9c10e305d8"><span><div id="2b3b233d8731800590ebfb9c10e305d8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b3b233d8731800590ebfb9c10e305d8" title="one last image"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>one last image</b></span></span></h2><div class="notion-text notion-block-2b3b233d873180a1a44ec4ca9fc47e4c">一句话木马，可以直接上传php但是&lt;?php标签被过滤了，我们使用短标签构造木马</div><div class="notion-text notion-block-2b3b233d873180099165c54bd09b19ab">上传后得到地址</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731805392b3c107ccb1e1e3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae4864bd5-cfd0-41f9-b196-56ceca11d31a%3Aimage.png?table=block&amp;id=2b3b233d-8731-8053-92b3-c107ccb1e1e3&amp;t=2b3b233d-8731-8053-92b3-c107ccb1e1e3" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180a2a5feee8e539508d7">去访问木马所在的地址进行命令执行</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d87318050b99cfbb39af1de40"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A005aad53-9490-47dd-8d94-bbbb7d35face%3Aimage.png?table=block&amp;id=2b3b233d-8731-8050-b99c-fbb39af1de40&amp;t=2b3b233d-8731-8050-b99c-fbb39af1de40" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731805194cbc565a37b80cc">得到了flag</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b3b233d873180f3bc30d42f0bc8bda4" data-id="2b3b233d873180f3bc30d42f0bc8bda4"><span><div id="2b3b233d873180f3bc30d42f0bc8bda4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b3b233d873180f3bc30d42f0bc8bda4" title="Sequal No Uta"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>Sequal No Uta</b></span></span></h2><div class="notion-text notion-block-2b3b233d8731801f958ad7627e97d3a3">一题常规的sql注入，但是要注意这个不是mysql是SQLite，语法稍微有点不一样，思路都一样</div><div class="notion-text notion-block-2b3b233d8731804d8d33e4ff08d2be93">直接上exp</div><div class="notion-text notion-block-2b3b233d8731806386f6f1398b8001e3">爆出表和字段</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180f48ca0cf1399a5aa42"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9ed18016-45e5-4db5-a0f6-f010b7b9fd03%3Aimage.png?table=block&amp;id=2b3b233d-8731-80f4-8ca0-cf1399a5aa42&amp;t=2b3b233d-8731-80f4-8ca0-cf1399a5aa42" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180f5ae82d72b19b84cad">去查看secret这个字段</div><div class="notion-text notion-block-2b3b233d873180f3b51acd0455ff5984">得到flag</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731803fb180ca7d5f888261"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4d18db9a-6ea6-48f7-ada3-55ddff976d51%3Aimage.png?table=block&amp;id=2b3b233d-8731-803f-b180-ca7d5f888261&amp;t=2b3b233d-8731-803f-b180-ca7d5f888261" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b3b233d873180cdab18de5cc93cf968" data-id="2b3b233d873180cdab18de5cc93cf968"><span><div id="2b3b233d873180cdab18de5cc93cf968" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b3b233d873180cdab18de5cc93cf968" title="ez read"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>ez read</b></span></span></h2><div class="notion-text notion-block-2b3b233d873180e2a619ff6b1d1d56f2">注册一个账户然后登陆进入读取故事界面，发现有任意文件读写</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d87318076852bd91008e42b8d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A518a3118-6897-4d7f-95e6-f3ab78e93764%3Aimage.png?table=block&amp;id=2b3b233d-8731-8076-852b-d91008e42b8d&amp;t=2b3b233d-8731-8076-852b-d91008e42b8d" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731808eaef1c4d0548a0557">这种题目一般要先读取源码，然后进行代码审计利用漏洞获取flag，不然你flag文件的名字都不知道就很难搞，所以要rce</div><div class="notion-text notion-block-2b3b233d873180f6a68df500702b7a36">先去看看虚拟目录中的项目启动命令</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d87318029af35e9c9cbf93d2c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1d1dcdc-7ab4-4790-9ec7-7f21aeb432ce%3Aimage.png?table=block&amp;id=2b3b233d-8731-8029-af35-e9c9cbf93d2c&amp;t=2b3b233d-8731-8029-af35-e9c9cbf93d2c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731803192b1e4e217240e2b">看见启动看app.py文件所以猜测是flask，但是app.py的所在目录不知道无法读出这个文件的代码</div><div class="notion-text notion-block-2b3b233d87318055a5b8d11b56f36581">再去看一下当前进程的虚拟目录的环境变量</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180e29a7bfe7be7d85c25"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abe618b21-f29e-4a45-9db9-054134e0531c%3Aimage.png?table=block&amp;id=2b3b233d-8731-80e2-9a7b-fe7be7d85c25&amp;t=2b3b233d-8731-80e2-9a7b-fe7be7d85c25" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d87318002908eff4cf30a9b5b">得到了home目录，再去访问这个目录下的app.py文件</div><div class="notion-text notion-block-2b3b233d873180a5a98fde071bed0f7e">然后就看到了debug设置成了false</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180e9bc0ee555bd435dd0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6dac5481-4611-4d2b-bfcc-ae182027d67c%3Aimage.png?table=block&amp;id=2b3b233d-8731-80e9-bc0e-e555bd435dd0&amp;t=2b3b233d-8731-80e9-bc0e-e555bd435dd0" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731801ea9dafc6876cd1c96">所以不能进入调试得换一个方法</div><div class="notion-text notion-block-2b3b233d8731803bbc6ffd2864152903">然后开启了漫长的代码审计过程..........</div><div class="notion-text notion-block-2b3b233d8731808abbf3cdd0807c9ccd">源码</div><div class="notion-text notion-block-2b3b233d87318008ade1e6081680b25c">这边教一个技巧，一般代码中都会有waf，看看哪边调用了waf就去那边找漏洞..…</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731805a8b74f2430382af6b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aba055967-a436-4d97-a6f5-bf970e6009f7%3Aimage.png?table=block&amp;id=2b3b233d-8731-805a-8b74-f2430382af6b&amp;t=2b3b233d-8731-805a-8b74-f2430382af6b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d87318033b998fa08b44cbe38">发现要先用session伪造user（其实直接注册也可以不伪造）然后去进行模板注入</div><div class="notion-text notion-block-2b3b233d87318081932dc5ce0a95c0d3">session的key就是代码中的app_key</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180f59e69c0471cb1b75e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A792ea439-19be-431a-8d5a-f50a18c240e7%3Aimage.png?table=block&amp;id=2b3b233d-8731-80f5-9e69-c0471cb1b75e&amp;t=2b3b233d-8731-80f5-9e69-c0471cb1b75e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180e883eeed7f673b0cf3">接下来是漫长的绕过waf的过程，这边可以用fenjing辅助，就自己本地运行一个让fenjin打</div><div class="notion-text notion-block-2b3b233d873180d1b989e089af3ac486">自己本地搭一个简化的服务</div><div class="notion-text notion-block-2b3b233d873180a08498ce27378205a1">然后让fenjing去跑</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731805a8ae8fd595e0dd678"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A68fd40a0-661b-4e2f-931d-b8a60c8b6fdc%3Aimage.png?table=block&amp;id=2b3b233d-8731-805a-8ae8-fd595e0dd678&amp;t=2b3b233d-8731-805a-8ae8-fd595e0dd678" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180e08ae0d69e2a493c65">发现成功，接下来只要填充到514位即可</div><div class="notion-text notion-block-2b3b233d8731808488d5ca96a5dc222b">首先需要保证自己的exp长度为114或者514，因为没有&#x27;(&#x27;不行</div><div class="notion-text notion-block-2b3b233d873180ef8c8bc8f25a0c7f12">下面是自己手搓的exp</div><div class="notion-text notion-block-2b3b233d8731804985e8ebea8f10d41b">获取所有类</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731808291e4e1e1f9eddd60"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0632aee1-047b-42ae-a106-c43cc3732c2c%3Aimage.png?table=block&amp;id=2b3b233d-8731-8082-91e4-e1e1f9eddd60&amp;t=2b3b233d-8731-8082-91e4-e1e1f9eddd60" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180199c68c530b163dbda">解码后发现第147个类（其实是146，因为从0记）有os可利用popen</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d87318085b26fecb0fe0f967c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A45a97af5-00a2-4754-88b5-ad3b3f850ab7%3Aimage.png?table=block&amp;id=2b3b233d-8731-8085-b26f-ecb0fe0f967c&amp;t=2b3b233d-8731-8085-b26f-ecb0fe0f967c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180d5a30fd1366dea0272">直接写exp利用（同样凑满514）</div><div class="notion-text notion-block-2b3b233d873180c8a626f4110148c308">发现利用成功</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180f3811ec7f2e50812d9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac232b794-660f-4148-89cf-47c098aec414%3Aimage.png?table=block&amp;id=2b3b233d-8731-80f3-811e-c7f2e50812d9&amp;t=2b3b233d-8731-80f3-811e-c7f2e50812d9" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180b4beb7c9cc76888717">直接反弹shell</div><div class="notion-text notion-block-2b3b233d873180418d3af6b6bca8c528">然后去得到shell</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731801d8709cfede3e93d76"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A16a97375-01f9-4bea-a953-d2ab30175369%3Aimage.png?table=block&amp;id=2b3b233d-8731-801d-8709-cfede3e93d76&amp;t=2b3b233d-8731-801d-8709-cfede3e93d76" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731805488e4cb40876a20ca">发现还要提权我真的是麻了</div><div class="notion-text notion-block-2b3b233d873180798b9ff03b8e4217ef">查看当前有suid权限的文件</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180ad8855de5988b4241f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad7f18d45-0870-4f18-8a93-7bf0967d87a4%3Aimage.png?table=block&amp;id=2b3b233d-8731-80ad-8855-de5988b4241f&amp;t=2b3b233d-8731-80ad-8855-de5988b4241f" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d87318078bcc3ff2a93e1fab1">利用env命令进行提权</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731808f852ae4397d62195c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7f6fe079-02b8-4550-93d5-68c1ebd1f31f%3Aimage.png?table=block&amp;id=2b3b233d-8731-808f-852a-e4397d62195c&amp;t=2b3b233d-8731-808f-852a-e4397d62195c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180c1b823dacac59cfdbc">得到flag</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b3b233d873180f4b0dfcf0f32fedff0" data-id="2b3b233d873180f4b0dfcf0f32fedff0"><span><div id="2b3b233d873180f4b0dfcf0f32fedff0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b3b233d873180f4b0dfcf0f32fedff0" title="百年继承"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>百年继承</b></span></span></h2><div class="notion-text notion-block-2b3b233d873180429251e0f08faf7eef">说实话有点猜谜了</div><div class="notion-text notion-block-2b3b233d87318032b44ec845bd0410a4">大致逻辑是通过原型链污染去修改掉execute_method的值，execute_method的值就是要执行的字符串</div><div class="notion-text notion-block-2b3b233d8731801f9c37ee2d4f2dd5bf">exp</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731802ba738ca07360a4eda"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A11c48eaa-d95c-4c49-b090-1140c52323dc%3Aimage.png?table=block&amp;id=2b3b233d-8731-802b-a738-ca07360a4eda&amp;t=2b3b233d-8731-802b-a738-ca07360a4eda" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180b8ad32e9b1064b24ed">得到了flag</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b3b233d873180918c89e0e2e8dde821" data-id="2b3b233d873180918c89e0e2e8dde821"><span><div id="2b3b233d873180918c89e0e2e8dde821" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b3b233d873180918c89e0e2e8dde821" title="ez-seralize"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>ez-seralize</b></span></span></h2><div class="notion-text notion-block-2b3b233d87318054856ac4a39525ec8f">题目环境提供了一个读取文件的接口，老样子能读文件必须先读取源码</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d87318084a56afc5602b1ae9e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac559a4f4-5cb7-4a93-9804-64e4a1a7c739%3Aimage.png?table=block&amp;id=2b3b233d-8731-8084-a56a-fc5602b1ae9e&amp;t=2b3b233d-8731-8084-a56a-fc5602b1ae9e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180e5bd69d4ddd78e7756">源码如下</div><div class="notion-text notion-block-2b3b233d873180bb959df0ab0b8ed407">审计发现应该是利用phar反序列化去利用本来就存在的function.php然后进行相应的命令执行</div><div class="notion-text notion-block-2b3b233d873180f2ae80c42da17eb13f">所以先去看看function.php</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731806e8b69c704aa3b60b6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ade22697c-3f1a-4426-8f02-6341274b7147%3Aimage.png?table=block&amp;id=2b3b233d-8731-806e-8b69-c704aa3b60b6&amp;t=2b3b233d-8731-806e-8b69-c704aa3b60b6" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180cca820dc69bcc72b21">得到源码</div><div class="notion-text notion-block-2b3b233d873180ae9505fdac2ec10cce">但是利用phar反序列化应当会有一个文件上传的点，我们去看一下robots.txt</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180ecb7b7c4c9aeb30e2b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A813cbc43-c0b2-40ca-be75-18e1a1782252%3Aimage.png?table=block&amp;id=2b3b233d-8731-80ec-b7b7-c4c9aeb30e2b&amp;t=2b3b233d-8731-80ec-b7b7-c4c9aeb30e2b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731807194b7ed25fccb3eff">发现文件上传的逻辑代码，我们老样子先看源代码</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180fbb47fd9fbdbab7a75"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2213eb5e-bf5e-4054-9410-2276bd0c3521%3Aimage.png?table=block&amp;id=2b3b233d-8731-80fb-b47f-d9fbdbab7a75&amp;t=2b3b233d-8731-80fb-b47f-d9fbdbab7a75" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180c7ae3eda003dabcced">得到源代码如下</div><div class="notion-text notion-block-2b3b233d873180bca528c078980aadd3">分析可知文件上传的后缀必须是白名单中的后缀</div><div class="notion-text notion-block-2b3b233d8731802ca93cc82d4dfe6405">接下来是构造phar文件的exp</div><div class="notion-text notion-block-2b3b233d873180a2bdc6c389f98317b1">但是文件后缀要改，所以还要重新签名，签名脚本如下</div><div class="notion-text notion-block-2b3b233d87318075a6dbdf5c673e6947">得到了newtest.gif将其通过/uploads路由上传</div><div class="notion-text notion-block-2b3b233d873180a49a18c072a17a624d">这边有个坑，我代码审计没审仔细，还以为文件上传后文件名不变，其实仔细分析uploads.php这个代码能发现文件名变了，且文件吗写到/tmp/log.txt文件中 了</div><div class="notion-text notion-block-2b3b233d873180f4b406cb5b7b8d9112">上传之后先去访问/tmp/log.txt得到真实的文件名</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180e5ac27c99c77775094"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5611841e-85f4-4b76-9e5a-e9d4ef453616%3Aimage.png?table=block&amp;id=2b3b233d-8731-80e5-ac27-c99c77775094&amp;t=2b3b233d-8731-80e5-ac27-c99c77775094" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d87318091ba53dc181fb844e7">再去进行phar反序列化</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d87318025bf90f88d4f746aeb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1c27caf-46d0-46cf-9455-93dfb8fbabdb%3Aimage.png?table=block&amp;id=2b3b233d-8731-8025-bf90-f88d4f746aeb&amp;t=2b3b233d-8731-8025-bf90-f88d4f746aeb" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d87318045a8c2c0fe530ab8f5">然后此时flag被写入/tmp/flag文件中了，直接去读这个文件即可</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731802e8696c50f63d2b4fb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1a199b74-11df-41a0-9957-609728db4969%3Aimage.png?table=block&amp;id=2b3b233d-8731-802e-8696-c50f63d2b4fb&amp;t=2b3b233d-8731-802e-8696-c50f63d2b4fb" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d87318059a7d6ffc5f45a0e51">获得flag</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b3b233d8731805fb7bfdaa31f5f2dbe" data-id="2b3b233d8731805fb7bfdaa31f5f2dbe"><span><div id="2b3b233d8731805fb7bfdaa31f5f2dbe" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b3b233d8731805fb7bfdaa31f5f2dbe" title="eeeeezzzzzzZip"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">eeeeezzzzzzZip</span></span></h2><div class="notion-text notion-block-2b3b233d873180e5983adabcea42cc74">扫描目录发现www.zip路由，直接访问获取源码</div><div class="notion-text notion-block-2b3b233d8731801dad89f1ee59f779c1">先看login.php源码</div><div class="notion-text notion-block-2b3b233d873180049c94deb3088c5689">得到账号是admin密码是guest123，去进行登陆</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731807e8974c372221f73ef"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae7a7329c-ba61-49b2-9eef-e5db26b4b2b7%3Aimage.png?table=block&amp;id=2b3b233d-8731-807e-8974-c372221f73ef&amp;t=2b3b233d-8731-807e-8974-c372221f73ef" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180dca87df8e2dc8a9a94">登陆成功，去查看index.php源码</div><div class="notion-text notion-block-2b3b233d873180fbb7b9c06afe2814d7">发现<code class="notion-inline-code">@include($fullpath);</code> 得知上传的zip文件可以被文件包含，要是上传的zip内容里有php恶意代码就可以命令执行了，接下来主要去看upload.php的源代码</div><div class="notion-text notion-block-2b3b233d87318029ad1ed8eab481750e">可以看到过滤了如下内容</div><div class="notion-text notion-block-2b3b233d87318037bf12f9f98b7cdb4c">但是接着看下去</div><div class="notion-text notion-block-2b3b233d8731801ea9bbfbe2cfa305ca">发现这个代码仅仅对文件开头的4096个字节和文件最后4096个字节进行黑名单检测，那我们中间可以穿插恶意代码</div><div class="notion-text notion-block-2b3b233d8731807c8ae4e85f5fa1501f">得到exp文件</div><div class="notion-file notion-block-2b3b233d873180129b02d82e91e5dd97"><a target="_blank" rel="noopener noreferrer" class="notion-file-link" href="https://file.notion.so/f/f/c39b233d-8731-8163-9bb6-000348a538b5/c1e0ce27-882d-4497-90bd-518aa8d0c045/q.7z?table=block&amp;id=2b3b233d-8731-8012-9b02-d82e91e5dd97&amp;spaceId=c39b233d-8731-8163-9bb6-000348a538b5&amp;expirationTimestamp=1775311200000&amp;signature=9U62fXqdxz1VAXYYcU3UAmsSWIQhvbAsfWqy1OXecLI"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">q.7z</div><div class="notion-file-size">17.3 KiB</div></div></a></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180c09e63d70253858356"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0b9444c9-ee03-4154-a5c2-5190a1de19da%3Aimage.png?table=block&amp;id=2b3b233d-8731-80c0-9e63-d70253858356&amp;t=2b3b233d-8731-80c0-9e63-d70253858356" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731804fb89dd08c77640dd1">进行上传之后访问</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731807ea2cce2edb6348d66"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A47bb86ca-03b6-4272-9788-4557b0808228%3Aimage.png?table=block&amp;id=2b3b233d-8731-807e-a2cc-e2edb6348d66&amp;t=2b3b233d-8731-807e-a2cc-e2edb6348d66" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d87318004be7ad6b91ce1c64e">获得flag</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b3b233d873180a79fffe2cb4379f72e" data-id="2b3b233d873180a79fffe2cb4379f72e"><span><div id="2b3b233d873180a79fffe2cb4379f72e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b3b233d873180a79fffe2cb4379f72e" title="路在脚下"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">路在脚下</span></span></h2><div class="notion-text notion-block-2b3b233d8731802e9787de96c5d66066">ssti注入但是没有回显</div><div class="notion-text notion-block-2b3b233d87318050b363ceb3e1fd2a53">试了很久也不出网真的是麻烦，主要是这题还是easy………</div><div class="notion-text notion-block-2b3b233d8731809f8728f18f592ad445">那只能时间盲注了（第一次用）</div><div class="notion-text notion-block-2b3b233d87318099aad6c956ad30d699">可以参照以下博客：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://err0r233.github.io/posts/42279.html">看看ssti | Err0r233</a></div><div class="notion-text notion-block-2b3b233d873180e4bbd7e4994da9ffe5">首先利用exp找出eval模块所在的位置</div><div class="notion-text notion-block-2b3b233d873180ca8a8bf4d7782b34dd">结果为103</div><div class="notion-text notion-block-2b3b233d8731809d8a17c249c89e345c">先用脚本看一下根目录有哪些文件</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d873180068cd2f6ca855aa6c3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac62e58b8-5fc3-486b-ac95-a2417bbfe956%3Aimage.png?table=block&amp;id=2b3b233d-8731-8006-8cd2-f6ca855aa6c3&amp;t=2b3b233d-8731-8006-8cd2-f6ca855aa6c3" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d873180238381d7643b030bbd">可以看到flag就在根目录下，那就再去cat一下</div><div class="notion-text notion-block-2b3b233d87318061a589cd2f9efc8d4c">被骗了根目录的flag是空的，脚本跑了半天啥都没有，我还以为脚本坏了……</div><div class="notion-text notion-block-2b3b233d873180199daff6a9cf0b9a8e">那就试一下env吧，一般在环境变量最后，我倒着读ahhh</div><div class="notion-text notion-block-2b3b233d873180348510c290e6e086f4">后来想了一下我为什么不直接访问指定名称的环境变量呢<code class="notion-inline-code">echo $FLAG</code></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b3b233d8731803f80c0c5a37f68a40b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3f25448a-6239-4ee4-8357-b74c61643f81%3Aimage.png?table=block&amp;id=2b3b233d-8731-803f-80c0-c5a37f68a40b&amp;t=2b3b233d-8731-803f-80c0-c5a37f68a40b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b3b233d8731805d9a4df4d5718af442">这题还是不错的，学到了如何用SSTI进行盲注</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b3b233d8731806398f8fad6c0fecfd1" data-id="2b3b233d8731806398f8fad6c0fecfd1"><span><div id="2b3b233d8731806398f8fad6c0fecfd1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b3b233d8731806398f8fad6c0fecfd1" title="路在脚下 revenge"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">路在脚下 revenge</span></span></h2><div class="notion-text notion-block-2b4b233d873180a98c25f5978db5d618">顺手接着秒了，和《路在脚下》这题一样的思路</div><div class="notion-text notion-block-2b4b233d87318066a654f7dba3f707e0">可能我一开始就是没用非预期</div><div class="notion-text notion-block-2b4b233d8731805b8007c9e5450ed57b">直接上exp</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b4b233d873180789ebbfa6c45596908"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Affd5e964-f72d-4a48-b602-762bddccc6ac%3Aimage.png?table=block&amp;id=2b4b233d-8731-8078-9ebb-fa6c45596908&amp;t=2b4b233d-8731-8078-9ebb-fa6c45596908" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b4b233d87318048ac2edf0743168f8a">秒了</div><div class="notion-text notion-block-2beb233d87318036bf00efcb3a54348c">官方的wp是实现add_url_rule的底层逻辑来实现新版本flask的添加路由</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b5b233d873180c7a408f6090b14e249" data-id="2b5b233d873180c7a408f6090b14e249"><span><div id="2b5b233d873180c7a408f6090b14e249" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b5b233d873180c7a408f6090b14e249" title="Image Viewer"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Image Viewer</span></span></h2><div class="notion-text notion-block-2b5b233d873180d3a6f5cc033c6488cf">看到能传svg图片，就试试是不是xxe漏洞，直接构造payload上传</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b5b233d8731805ab566f2ae748df831"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5a62e31d-7e84-49c5-ac5b-8e17f9bbf284%3Aimage.png?table=block&amp;id=2b5b233d-8731-805a-b566-f2ae748df831&amp;t=2b5b233d-8731-805a-b566-f2ae748df831" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b5b233d8731802eb971e09cff7d86ca">所得回显去解密得到flag</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b5b233d873180b48283f74f56d43a21"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af4a0c827-4a52-4373-8054-4b01b737d41b%3Aimage.png?table=block&amp;id=2b5b233d-8731-80b4-8283-f74f56d43a21&amp;t=2b5b233d-8731-80b4-8283-f74f56d43a21" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b5b233d8731801495caddf094b122b0" data-id="2b5b233d8731801495caddf094b122b0"><span><div id="2b5b233d8731801495caddf094b122b0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b5b233d8731801495caddf094b122b0" title="PDF Viewer"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">PDF Viewer</span></span></h2><div class="notion-text notion-block-2b5b233d873180ccb7f3c8f875bab97f">现利用ssrf漏洞读取一下/etc/passwd</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b5b233d873180e3a1b9cd5133b8ff1d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4e0ee255-a547-44b5-b3d4-84e3dc0f002a%3Aimage.png?table=block&amp;id=2b5b233d-8731-80e3-a1b9-cd5133b8ff1d&amp;t=2b5b233d-8731-80e3-a1b9-cd5133b8ff1d" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b5b233d8731806c8bcad19467ec788e">获得提示，管理员是弱密码</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b5b233d873180bf92b7e649c3e47a9a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A943669db-526d-4b88-8506-73c7709c6691%3Aimage.png?table=block&amp;id=2b5b233d-8731-80bf-92b7-e649c3e47a9a&amp;t=2b5b233d-8731-80bf-92b7-e649c3e47a9a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b5b233d87318036bce1cf9707e282c8">去进行网站管理员的弱密码爆破</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b5b233d873180f398b3ed04d08a459f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A20684e1c-6bd5-411c-abfa-a6c4dc1f60ac%3Aimage.png?table=block&amp;id=2b5b233d-8731-80f3-98b3-ed04d08a459f&amp;t=2b5b233d-8731-80f3-98b3-ed04d08a459f" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b5b233d87318010b966fba0e159c49b">找到响应大小不一样的那个响应</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b5b233d87318090a258ff23b36e6203"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae38c8155-a754-4f72-bbf5-2e54c5ee83a8%3Aimage.png?table=block&amp;id=2b5b233d-8731-8090-a258-ff23b36e6203&amp;t=2b5b233d-8731-8090-a258-ff23b36e6203" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b5b233d8731804abf4fe03ee9738a36">可以看到登陆成功，密码是<b>qwerty</b></div><div class="notion-text notion-block-2b5b233d87318018a0c7ea23385180f0">得到了flag并提交</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b5b233d87318067b8f2e0b9c6955cbe" data-id="2b5b233d87318067b8f2e0b9c6955cbe"><span><div id="2b5b233d87318067b8f2e0b9c6955cbe" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b5b233d87318067b8f2e0b9c6955cbe" title="77777_time_task"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">77777_time_task</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b5b233d873180b0858ac9910f758be0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5ecac2b2-f36f-4e44-9d08-d740aadb4b3f%3Aimage.png?table=block&amp;id=2b5b233d-8731-80b0-858a-c9910f758be0&amp;t=2b5b233d-8731-80b0-858a-c9910f758be0" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b5b233d8731806d9fa0f61aeeed4c85">看到这里有个定时任务感觉可疑，再看源代码</div><div class="notion-text notion-block-2b5b233d87318032a596ed47bd9d0557">有一个7z解压功能，我们试一下可不可以通过软连接，将自己的shell反弹脚本写入定时任务中</div><div class="notion-text notion-block-2b5b233d873180e4a632f37c225fc6ca">这边很坑，要先下载它用的7z才能成功创建软连接的7z文件，本地试了好久</div><div class="notion-text notion-block-2b5b233d8731808a9efbd2f46abb687d">具体下载看下面的文件</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b5b233d87318027a599dbf0cd613f8a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9d1a5f87-d3ac-4a4e-bf62-e9a97725cb34%3Aimage.png?table=block&amp;id=2b5b233d-8731-8027-a599-dbf0cd613f8a&amp;t=2b5b233d-8731-8027-a599-dbf0cd613f8a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b5b233d873180e6b337e264c6ce9808">然后先创建一个软链接目录指向/etc/cron.d，然后用下载的7zz程序进行软链接压缩上传</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b5b233d873180929e1ad5d9279325c9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:548.59375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac2d27412-e970-42dc-9f1c-68cb32999926%3Aimage.png?table=block&amp;id=2b5b233d-8731-8092-9e1a-d5d9279325c9&amp;t=2b5b233d-8731-8092-9e1a-d5d9279325c9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b5b233d873180a18e03fe9090afbc5b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac8aa5933-3833-4472-9c65-3023610dc857%3Aimage.png?table=block&amp;id=2b5b233d-8731-80a1-8e03-fe9090afbc5b&amp;t=2b5b233d-8731-80a1-8e03-fe9090afbc5b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b5b233d873180c8b2a9d0b82a2f7dda">上传之后可以看到服务器那边软链接指向了/app/etc/cron.d目录</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b5b233d873180b6bbcec82d926494a2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0263bd34-786f-46e2-8348-60f862d71151%3Aimage.png?table=block&amp;id=2b5b233d-8731-80b6-bbce-c82d926494a2&amp;t=2b5b233d-8731-80b6-bbce-c82d926494a2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b5b233d8731801080a1f44bb9927a92">唉~失败了，服务器端的7z自动加上当前目录，最后想了一下找到了漏洞点</div><div class="notion-text notion-block-2b7b233d873180e0babdcf3d7d967d75">可以直接根据这个代码上传名字是<code class="notion-inline-code">../../../etc/cron.d/./7z</code> 的文件，本来想反弹shell的但是一直不成功，干脆直接发flag</div><div class="notion-text notion-block-2b7b233d873180d5afe2dc56cb980759">构造请求包上传</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b7b233d873180288dd5db7a006b22d5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7fdee21f-d1ed-4d39-b2f8-0420de69a462%3Aimage.png?table=block&amp;id=2b7b233d-8731-8028-8dd5-db7a006b22d5&amp;t=2b7b233d-8731-8028-8dd5-db7a006b22d5" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b7b233d873180089352e20b0bde3864">解压失败也没关系反正文件已经在服务器上了</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b7b233d873180e69aa8e26202e03eb0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab597d9d2-655f-4d1f-ae22-d272ecaeb18b%3Aimage.png?table=block&amp;id=2b7b233d-8731-80e6-9aa8-e26202e03eb0&amp;t=2b7b233d-8731-80e6-9aa8-e26202e03eb0" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b7b233d8731804aa01ad599ed084b49">最后得到flag</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b5b233d873180128946ce026a5cff84" data-id="2b5b233d873180128946ce026a5cff84"><span><div id="2b5b233d873180128946ce026a5cff84" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b5b233d873180128946ce026a5cff84" title="Xross The Doom"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Xross The Doom</span></span></h2><div class="notion-text notion-block-2b6b233d873180c383f4c2d3981afc29">先查看源代码，发现很多文件，以下挑几个文件讲解</div><div class="notion-text notion-block-2b6b233d873180ccaf3bf7f4b990ecdf">首先注意到/bot路由，访问这个路由可以获取flag，但是flag在cookie中，一开始想着xss外带但是这个题目用了最新的dompurify找不到相关的cve，所以行不通，后来看了好久，知道看到admin.js的逻辑</div><div class="notion-text notion-block-2b6b233d8731806d8d84ecacfa1690c1">1.代码逻辑分析</div><div class="notion-text notion-block-2b6b233d873180769c29c48d1291bfd7">这段代码的执行流程如下：</div><div class="notion-text notion-block-2b6b233d873180d6a4bcc2e8d789eda0"><b>a.加载内容</b>：从后端 API 获取帖子，经过 <code class="notion-inline-code">DOMPurify</code> 清洗后插入页面 (<code class="notion-inline-code">innerHTML</code>)。</div><div class="notion-text notion-block-2b6b233d8731808b8048c0960a921d26"><b>b.获取配置 (漏洞点)</b>：
代码尝试读取三个全局变量。如果在 JS 中没有定义这些变量（事实上确实没定义），浏览器会去 DOM 中寻找带有对应 <code class="notion-inline-code">id</code> 或 <code class="notion-inline-code">name</code> 的 HTML 元素，并将其赋值给 <code class="notion-inline-code">window.变量名</code>。<div class="notion-text-children"><ul class="notion-list notion-list-disc notion-block-2b6b233d8731807e9b38fa8bf002b1e7"><li><code class="notion-inline-code">window.AUTO_SHARE</code></li></ul><ul class="notion-list notion-list-disc notion-block-2b6b233d8731805b84ecdf784654a2cf"><li><code class="notion-inline-code">window.CONFIG_PATH</code></li></ul><ul class="notion-list notion-list-disc notion-block-2b6b233d87318057a336f83bfa06eeb8"><li><code class="notion-inline-code">window.CONFIG_COOKIE_DEBUG</code></li></ul></div></div><div class="notion-text notion-block-2b6b233d87318083ba13c8babb9ccd8f"><b>c.构建目标 URL</b>：使用 <code class="notion-inline-code">buildTarget</code> 函数，结合 <code class="notion-inline-code">/analytics</code> 和 <code class="notion-inline-code">CONFIG_PATH</code>。</div><div class="notion-text notion-block-2b6b233d873180e9925ed9d4d7df8790"><b>d.发送请求</b>：如果 <code class="notion-inline-code">auto</code> 为真，则向计算出的目标 URL 发送 <code class="notion-inline-code">fetch</code> 请求，并且如果 <code class="notion-inline-code">includeCookie</code> 为真，会把 <b>Cookie</b> 带上。</div><div class="notion-text notion-block-2b6b233d873180f0a594f262c63a58b4">2.核心利用点</div><div class="notion-text notion-block-2b6b233d8731800db0c8e00e27963da4">我们需要满足三个条件才能窃取 Cookie：</div><div class="notion-text notion-block-2b6b233d873180e8bd3ae0cee228b28d">条件 A：让 <code class="notion-inline-code">auto</code> 变为 true</div><div class="notion-text notion-block-2b6b233d8731801f8c08f4697678dfe2"><b>攻击方法</b>：注入任意一个带有 <code class="notion-inline-code">id=&quot;AUTO_SHARE&quot;</code> 的标签。
<b>Payload</b>: <code class="notion-inline-code">&lt;a id=&quot;AUTO_SHARE&quot;&gt;&lt;/a&gt;</code></div><ul class="notion-list notion-list-disc notion-block-2b6b233d873180f3a6bcc62e86f2b188"><li>效果：<code class="notion-inline-code">window.AUTO_SHARE</code> 变成了这个 <code class="notion-inline-code">&lt;a&gt;</code> 元素（对象），<code class="notion-inline-code">asBool</code> 返回 <code class="notion-inline-code">true</code>。</li></ul><div class="notion-text notion-block-2b6b233d87318015b5fac74d7da42e64">条件 B：让 <code class="notion-inline-code">includeCookie</code> 变为 true</div><div class="notion-text notion-block-2b6b233d873180008c61f7b30e2aaae0"><b>攻击方法</b>：注入任意一个带有 <code class="notion-inline-code">id=&quot;CONFIG_COOKIE_DEBUG&quot;</code> 的标签。
<b>Payload</b>: <code class="notion-inline-code">&lt;a id=&quot;CONFIG_COOKIE_DEBUG&quot;&gt;&lt;/a&gt;</code></div><ul class="notion-list notion-list-disc notion-block-2b6b233d87318083b0f5f32f716ec1ac"><li>效果：<code class="notion-inline-code">window.CONFIG_COOKIE_DEBUG</code> 变成元素，<code class="notion-inline-code">asBool</code> 返回 <code class="notion-inline-code">true</code>。</li></ul><div class="notion-text notion-block-2b6b233d87318076a286e80fa01006d7">条件 C：控制 <code class="notion-inline-code">path</code> 并利用目录穿越</div><div class="notion-text notion-block-2b6b233d87318002af3edb1bda26061f">这是最关键的一步。</div><div class="notion-text notion-block-2b6b233d87318001969bf356de244ed1">并且看 <code class="notion-inline-code">buildTarget</code> 函数：</div><div class="notion-text notion-block-2b6b233d87318027a4dcfe8271cfef22">如果我们想把 Flag 发送出去，我们需要访问服务器上的 <code class="notion-inline-code">/log</code> 接口（因为 <code class="notion-inline-code">/analytics</code> 大概率没用或不存在）。
<code class="notion-inline-code">/analytics</code> + <code class="notion-inline-code">../../log</code> -&gt; <code class="notion-inline-code">/log</code>。</div><div class="notion-text notion-block-2b6b233d873180c3b94affd2b5d8406d"><b>攻击方法</b>：我们需要一个带有 <code class="notion-inline-code">action</code> 属性的元素。在 HTML 白名单中，<code class="notion-inline-code">&lt;form&gt;</code> 标签是允许带有 <code class="notion-inline-code">action</code> 属性的。
<b>Payload</b>: <code class="notion-inline-code">&lt;form id=&quot;CONFIG_PATH&quot; action=&quot;../../log&quot;&gt;&lt;/form&gt;</code></div><div class="notion-text notion-block-2b6b233d87318038b121fc68c21f6775">3. 完整的攻击 Payload</div><div class="notion-text notion-block-2b6b233d87318042bc5dd702565171ce">结合以上分析，需要构造一个帖子，内容包含以下三个 HTML 元素。将它们合并在一起：</div><div class="notion-text notion-block-2b6b233d8731800ab3c4ed2a6f094fbd">4. 攻击流程演示</div><ol start="1" class="notion-list notion-list-numbered notion-block-2b6b233d8731803a997ef6caf48b2e05" style="list-style-type:decimal"><li><b>攻击者</b>提交上述 Payload 到 <code class="notion-inline-code">/api/posts</code>。</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-2b6b233d8731806e8bbde76dc72d7a5b" style="list-style-type:decimal"><li>服务器使用 JSDOM/DOMPurify 处理。由于 <code class="notion-inline-code">&lt;a&gt;</code> 和 <code class="notion-inline-code">&lt;form&gt;</code> 都是白名单标签，且 <code class="notion-inline-code">id</code> 和 <code class="notion-inline-code">action</code> 属性在默认配置下通常是被允许的（或者如你之前测试 <code class="notion-inline-code">id=&quot;preview&quot;</code> 能过，说明 <code class="notion-inline-code">id</code> 肯定没被过滤），Payload 被完整存入数据库。</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-2b6b233d873180b4b1c0dd6d98038e40" style="list-style-type:decimal"><li><b>攻击者</b>诱导 Bot (Admin) 访问 <code class="notion-inline-code">/bot?id=你的帖子ID</code>。</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-2b6b233d873180998d6ad6a05eef87f3" style="list-style-type:decimal"><li><b>Bot</b> 打开页面，执行 JS：</li><ol class="notion-list notion-list-numbered notion-block-2b6b233d873180998d6ad6a05eef87f3" style="list-style-type:lower-alpha"><ul class="notion-list notion-list-disc notion-block-2b6b233d873180edbb56e18ef83428db"><li><code class="notion-inline-code">innerHTML</code> 渲染了那三个标签。</li></ul><ul class="notion-list notion-list-disc notion-block-2b6b233d873180ff818dd95e67a96bed"><li><code class="notion-inline-code">window.AUTO_SHARE</code> 被劫持 -&gt; <code class="notion-inline-code">true</code>。</li></ul><ul class="notion-list notion-list-disc notion-block-2b6b233d873180c79a49f835b9c46af6"><li><code class="notion-inline-code">window.CONFIG_COOKIE_DEBUG</code> 被劫持 -&gt; <code class="notion-inline-code">true</code>。</li></ul><ul class="notion-list notion-list-disc notion-block-2b6b233d87318067970ec025e4f64747"><li><code class="notion-inline-code">window.CONFIG_PATH</code> 被劫持，<code class="notion-inline-code">asPath</code> 读取到 <code class="notion-inline-code">action=&quot;../../log&quot;</code>。</li></ul><ul class="notion-list notion-list-disc notion-block-2b6b233d8731803a8b08fe35f6a53dd5"><li><code class="notion-inline-code">buildTarget(&#x27;/analytics&#x27;, &#x27;../../log&#x27;)</code> 解析为 <code class="notion-inline-code">/log</code>。</li></ul></ol></ol><ol start="5" class="notion-list notion-list-numbered notion-block-2b6b233d8731800cb48cfcdb498e717a" style="list-style-type:decimal"><li><b>触发 Fetch</b>：
Bot 执行：<code class="notion-inline-code">fetch(&#x27;/log?id=...&amp;ua=...&amp;c=&#x27; + document.cookie)</code>。</li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-2b6b233d8731801eb9d4e4d8a413a032" style="list-style-type:decimal"><li><b>窃取 Flag</b>：
请求发送到了服务器的 <code class="notion-inline-code">/log</code> 接口。
攻击者访问 <code class="notion-inline-code">/logs</code> 接口（根据之前的 <code class="notion-inline-code">server.js</code> 代码），查看最新的日志记录，其中 <code class="notion-inline-code">cookie</code> 字段里就包含 <b>Flag</b>。</li></ol><div class="notion-blank notion-block-2b7b233d873180eaa718f0ee8113bb6c"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[js原型链污染]]></title>
            <link>http://qetx.top/article/2b7b233d-8731-807a-a84b-f9168db8ff4c</link>
            <guid>http://qetx.top/article/2b7b233d-8731-807a-a84b-f9168db8ff4c</guid>
            <pubDate>Wed, 26 Nov 2025 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-2b7b233d8731807aa84bf9168db8ff4c"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b7b233d87318075b167c06e887c1518" data-id="2b7b233d87318075b167c06e887c1518"><span><div id="2b7b233d87318075b167c06e887c1518" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b7b233d87318075b167c06e887c1518" title="原理"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">原理</span></span></h2><div class="notion-text notion-block-2b7b233d8731803ea135f5ae660a69ed">js创建对象有三种方式</div><div class="notion-text notion-block-2b7b233d873180cea59dd71edbddcd90">在js中所有的东西都可看为对象。</div><div class="notion-text notion-block-2b7b233d8731809da07fe6e248a0d7e1">而在js中每一个对象都会有一个__proto__的属性。</div><blockquote class="notion-quote notion-block-2b7b233d8731807fb898f41f20943be3"><div><b>_</b>_proto_<b>_</b></div><div class="notion-text notion-block-2b7b233d8731801e8fa3c5bca496213f">对象可以通过__proto__来找到其自己的父类。</div></blockquote><div class="notion-text notion-block-2b7b233d873180429507cac843736234">而对于构造函数也有一个prototype与之相对应。</div><blockquote class="notion-quote notion-block-2b7b233d873180d9b276de26ca48e533"><div>prototype</div></blockquote><div class="notion-text notion-block-2b7b233d873180189e54c68c5c9b0365">可以看到，其实两者是一样的。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b7b233d8731805c85b5da9864181083" data-id="2b7b233d8731805c85b5da9864181083"><span><div id="2b7b233d8731805c85b5da9864181083" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b7b233d8731805c85b5da9864181083" title="原型链"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">原型链</span></span></h2><div class="notion-text notion-block-2b7b233d873180e0ae7ad2c30ea7e506">通俗来讲就是js中类之间因继承机制而产生的线性关系。</div><div class="notion-text notion-block-2b7b233d873180f1aecadba76a5f6a5e">如上a()上层为{}，再上为Object，再上就是NULL。</div><div class="notion-text notion-block-2b7b233d87318064b49bc964a704dd39">NULL为链的的末端。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b7b233d873180a8bd8be39238173a0c" data-id="2b7b233d873180a8bd8be39238173a0c"><span><div id="2b7b233d873180a8bd8be39238173a0c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b7b233d873180a8bd8be39238173a0c" title="继承机制"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">继承机制</span></span></h2><div class="notion-text notion-block-2b7b233d873180b5bbb4ce42b3448b10">对于js中类的继承机制为</div><div class="notion-text notion-block-2b7b233d873180e98216f37435efe1c2">可以看到c为b类产生的对象，但是再输出是却又age属性。</div><div class="notion-text notion-block-2b7b233d8731809b94bce77bc1e780b5">这就是继承，b类继承了a的age属性。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b7b233d873180eea807e3360b597279" data-id="2b7b233d873180eea807e3360b597279"><span><div id="2b7b233d873180eea807e3360b597279" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b7b233d873180eea807e3360b597279" title="漏洞思路"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">漏洞思路</span></span></h2><div class="notion-text notion-block-2b7b233d873180799606ffd24c573b3b">先看一个经典的递归漏洞。</div><div class="notion-text notion-block-2b7b233d873180a1acc9dbe2644f7adf">对于merge函数是一个经典的递归js原型链污染。</div><div class="notion-text notion-block-2b7b233d87318006bc29d2477a8f8f99">输入用以上代码即可污染，使o3拥有属性b。</div><div class="notion-text notion-block-2b7b233d873180f98f9af5221683d453">这样要<b>强调一点JSON.parse函数使用是必须的</b>。</div><blockquote class="notion-quote notion-block-2b7b233d87318083933bc661bc0f9404"><div>要实现从<b>JSON字符串</b>转换为<b>JS对象</b>，使用 <code class="notion-inline-code">JSON.parse()</code> 方法</div></blockquote><div class="notion-text notion-block-2b7b233d873180588ce5e63e2a0e44f9">看一下用JSON.parse用与不用的区别。</div><div class="notion-text notion-block-2b7b233d873180ba87e2c449901f3aa2">区别一目了然</div><div class="notion-text notion-block-2b7b233d8731803f9d8dd223a4b0fcfb">如果不用JSON.parse，再递归时key不会等于__proto__，就不会令a的__proto__加上b属性。</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[0xGame-Week3-web]]></title>
            <link>http://qetx.top/article/c7aeb441-da53-4dd4-95ed-f2880860158b</link>
            <guid>http://qetx.top/article/c7aeb441-da53-4dd4-95ed-f2880860158b</guid>
            <pubDate>Fri, 21 Nov 2025 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-c7aeb441da534dd495edf2880860158b"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-2b2b233d873181128068e661ca099bc0">前言：0xGame的web题真恶心啊，题目环境一直重置，给我心态搞崩溃了</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b2b233d8731817693f1dd7f113ebdd8" data-id="2b2b233d8731817693f1dd7f113ebdd8"><span><div id="2b2b233d8731817693f1dd7f113ebdd8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d8731817693f1dd7f113ebdd8" title="notebook"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">notebook</span></span></h2><div class="notion-text notion-block-2b2b233d873181dbba02f459df76ab69">先看一波源码</div><div class="notion-text notion-block-2b2b233d873181a799d1efa007611aaa">先生成一下爆破用的字典，以备后用</div><div class="notion-text notion-block-2b2b233d87318142a702da50d0ad4853">可以得到字典文件hex_dict.txt</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d87318131a5b9cd11a8402d19"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3A23657b40-da1b-4d77-aa48-0644d2f577d5%3A0xGame-Week3-webimage-20231019192601423.png?table=block&amp;id=2b2b233d-8731-8131-a5b9-cd11a8402d19&amp;t=2b2b233d-8731-8131-a5b9-cd11a8402d19" alt="image-20231019192601423" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d8731814087d0fe3100c1e4b5">image-20231019192601423</div><div class="notion-text notion-block-2b2b233d873181b197f0ea15bb713118">之后先得到session值，再用flask-unsign工具爆破得到key</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d87318105aed7ec852c67c52d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3Acfa8ca4f-4398-42a0-938f-c2bb78035363%3A0xGame-Week3-webimage-20231019194859918.png?table=block&amp;id=2b2b233d-8731-8105-aed7-ec852c67c52d&amp;t=2b2b233d-8731-8105-aed7-ec852c67c52d" alt="image-20231019194859918" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d87318193a5ade0f423c5116c">image-20231019194859918</div><div class="notion-text notion-block-2b2b233d873181da8b86cb297c72d825">解密之后的session是这样的</div><div class="notion-text notion-block-2b2b233d873181cd8918f2c3de45b5af">其中</div><div class="notion-text notion-block-2b2b233d87318148820be2254d81044c">就是pickle序列化结果，也是我们要注入的地方，首先我们去写一个代命令执行的pickle序列化的脚本</div><div class="notion-text notion-block-2b2b233d873181bd9589cf4f02c692b3">得到</div><div class="notion-text notion-block-2b2b233d873181499976e7b39876fefa">将得到的字符串拼接到session，即得到</div><div class="notion-text notion-block-2b2b233d873181e0aaf2e0eba30608ec">再将这段代码去去用flask_session_cookie_manager3.py脚本加密</div><div class="notion-text notion-block-2b2b233d87318161ba83df254e8eac40">使用方法如下</div><div class="notion-text notion-block-2b2b233d8731813196a2d109befe4d59">encode</div><div class="notion-text notion-block-2b2b233d8731810b8a34dc896619a93e">decode</div><div class="notion-text notion-block-2b2b233d873181ffa134e4ed0c06eeff">加密语句</div><div class="notion-text notion-block-2b2b233d873181fdb8bafd46a79f3214">上传之后</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873181da8485d64398bc9c85"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3A33031c0f-4f03-4df3-9de2-c8a1170e2a8b%3A0xGame-Week3-webimage-20231019194833906.png?table=block&amp;id=2b2b233d-8731-81da-8485-d64398bc9c85&amp;t=2b2b233d-8731-81da-8485-d64398bc9c85" alt="image-20231019194833906" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d8731817ab62fd67b078eb51f">image-20231019194833906</div><div class="notion-text notion-block-2b2b233d873181a69b7bfa68170740b4">得到</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d8731812496b1eb54fcd3ec81"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3A229100e4-993c-42f9-99f0-b0d1b639fad8%3A0xGame-Week3-webimage-20231019194701982.png?table=block&amp;id=2b2b233d-8731-8124-96b1-eb54fcd3ec81&amp;t=2b2b233d-8731-8124-96b1-eb54fcd3ec81" alt="image-20231019194701982" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d873181b490ecc9ff9d49bf9e">image-20231019194701982</div><div class="notion-text notion-block-2b2b233d8731815c81ced3b5615ba17f">之后就是为所欲为了</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b2b233d873181298f64c648c66d130b" data-id="2b2b233d873181298f64c648c66d130b"><span><div id="2b2b233d873181298f64c648c66d130b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d873181298f64c648c66d130b" title="zip_file_manager"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">zip_file_manager</span></span></h2><div class="notion-text notion-block-2b2b233d873181f38a87c1aefba25944">查看源码</div><div class="notion-text notion-block-2b2b233d8731812ba283d9f550c246b3">关键代码</div><div class="notion-text notion-block-2b2b233d87318170bdf4c11926ed8be4">在</div><div class="notion-text notion-block-2b2b233d873181ddaca1c6dbefd3b166">把文件名改成</div><div class="notion-text notion-block-2b2b233d873181ba8e00e1fa8f6ce862">其中</div><div class="notion-text notion-block-2b2b233d873181ec9d7cd071d7e33152">改完文件名后上传，并在公网的服务器执行nc -lk port</div><div class="notion-text notion-block-2b2b233d873181398cbceaaea6a4a1cc">其中lk表示一直监听直到有人来连</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d8731818ca240ddab359826ed"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3A54c25319-da39-4260-8197-3dfdddc3b8a8%3A0xGame-Week3-webimage-20231019195914134.png?table=block&amp;id=2b2b233d-8731-818c-a240-ddab359826ed&amp;t=2b2b233d-8731-818c-a240-ddab359826ed" alt="image-20231019195914134" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d87318101ba09db639e32967a">image-20231019195914134</div><div class="notion-text notion-block-2b2b233d8731815c80b6d7039ce03157">发现成功，接下来为所欲为</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b2b233d87318136b905e0b60e1246b8" data-id="2b2b233d87318136b905e0b60e1246b8"><span><div id="2b2b233d87318136b905e0b60e1246b8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d87318136b905e0b60e1246b8" title="GoShop"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">GoShop</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d8731819db76dfd1113935dcc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3Ab9601e55-b17b-4061-a416-17fa11cda836%3A0xGame-Week3-webimage-20231019200014474.png?table=block&amp;id=2b2b233d-8731-819d-b76d-fd1113935dcc&amp;t=2b2b233d-8731-819d-b76d-fd1113935dcc" alt="image-20231019200014474" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d873181bb928ae725e4dae58e">image-20231019200014474</div><div class="notion-text notion-block-2b2b233d87318178b83de945fc394bc0">提示整数溢出，没什么好说的，算是pwn的题吧</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b2b233d873181fc8b84f7eb984054ed" data-id="2b2b233d873181fc8b84f7eb984054ed"><span><div id="2b2b233d873181fc8b84f7eb984054ed" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d873181fc8b84f7eb984054ed" title="rss_parser"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">rss_parser</span></span></h2><div class="notion-text notion-block-2b2b233d873181f79e65d42f5ed9281b">XXE 任意文件读</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d8731810db393d610b0a29d2c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3A39c8aa3f-4ff4-4106-afc0-b410cc836c37%3A0xGame-Week3-web1697707588049-021157df-909c-49b6-ac27-3902a48c242e.png?table=block&amp;id=2b2b233d-8731-810d-b393-d610b0a29d2c&amp;t=2b2b233d-8731-810d-b393-d610b0a29d2c" alt="img" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d873181bb8d29d9b16bde69c5">img</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d87318138a510c73067a19a42"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3A377b0b78-2ecb-415e-987e-b46b10bef5db%3A0xGame-Week3-web1697707780780-2740dbb5-76b7-4946-8bb7-47f190a69cde.png?table=block&amp;id=2b2b233d-8731-8138-a510-c73067a19a42&amp;t=2b2b233d-8731-8138-a510-c73067a19a42" alt="img" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d873181809d3ded3ac1a98bf2">img</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873181b2ace7cb707fafee32"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3Ac28ed586-e328-412a-8986-ce11f831246e%3A0xGame-Week3-web1697767691696-38051b06-ec9b-4195-9d8e-f5f0cced00f3.png?table=block&amp;id=2b2b233d-8731-81b2-ace7-cb707fafee32&amp;t=2b2b233d-8731-81b2-ace7-cb707fafee32" alt="img" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d873181d09311e776a1c8c359">img</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[0xGame-Week2-web]]></title>
            <link>http://qetx.top/article/4b981481-25f4-4b30-a21c-3442d44fc8cb</link>
            <guid>http://qetx.top/article/4b981481-25f4-4b30-a21c-3442d44fc8cb</guid>
            <pubDate>Fri, 21 Nov 2025 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-4b98148125f44b30a21c3442d44fc8cb"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b2b233d873181118b92ce542069f593" data-id="2b2b233d873181118b92ce542069f593"><span><div id="2b2b233d873181118b92ce542069f593" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d873181118b92ce542069f593" title="ez_sqli"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">ez_sqli</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873181db915fc83b4de78384"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3A77abc836-f1dc-460d-961a-d5013da85a2e%3A0xGame-Week2-webimage-20231019124601386.png?table=block&amp;id=2b2b233d-8731-81db-915f-c83b4de78384&amp;t=2b2b233d-8731-81db-915f-c83b4de78384" alt="image-20231019124601386" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d873181a9ad1bcbdc6829d8d6">image-20231019124601386</div><div class="notion-text notion-block-2b2b233d8731810e9ff7d00613b44e04">先找注入点，发现更改order by会有注入点</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873181558194d9540f39b5d7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3A76a55c54-75b0-4c19-ac27-b19884ded743%3A0xGame-Week2-webimage-20231019124655192.png?table=block&amp;id=2b2b233d-8731-8155-8194-d9540f39b5d7&amp;t=2b2b233d-8731-8155-8194-d9540f39b5d7" alt="image-20231019124655192" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d873181e89bbcea3670632d59">image-20231019124655192</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873181ef8e54d48c95c1e8e9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3Ad6722a2a-e465-4697-8335-139c26aa89ba%3A0xGame-Week2-webimage-20231019124736372.png?table=block&amp;id=2b2b233d-8731-81ef-8e54-d48c95c1e8e9&amp;t=2b2b233d-8731-81ef-8e54-d48c95c1e8e9" alt="image-20231019124736372" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d873181149a84f4c100dacfd5">image-20231019124736372</div><div class="notion-text notion-block-2b2b233d873181c0abf0f236051de075">给了很多的提示，大致就是堆叠+报错+execute执行</div><div class="notion-text notion-block-2b2b233d8731811d8f5cebda4a3c520a">很推荐去看一下https://xz.aliyun.com/t/10594#toc-5</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d8731818f997bdc9af30a7f13"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3Aa2b09e37-8b3c-46b6-b1d6-a749afd7059e%3A0xGame-Week2-webimage-20231019125806171.png?table=block&amp;id=2b2b233d-8731-818f-997b-dc9af30a7f13&amp;t=2b2b233d-8731-818f-997b-dc9af30a7f13" alt="image-20231019125806171" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d87318175ade5d0d1c437ab16">image-20231019125806171</div><div class="notion-text notion-block-2b2b233d873181618a05e8ace8dda496">这个脚本就差不多是payload了，但ez_sqli把空格过滤了，可以用/**/绕过</div><div class="notion-text notion-block-2b2b233d873181daa940d93221b2162d">源码</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873181b7b14cdf0a4acca57c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3Ae0d37704-8728-4ea8-8595-2f88aa91f20b%3A0xGame-Week2-webimage-20231019141057548.png?table=block&amp;id=2b2b233d-8731-81b7-b14c-df0a4acca57c&amp;t=2b2b233d-8731-81b7-b14c-df0a4acca57c" alt="image-20231019141057548" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d873181a8aa5bdc05ec138f92">image-20231019141057548</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b2b233d8731811da142df73596009b2" data-id="2b2b233d8731811da142df73596009b2"><span><div id="2b2b233d8731811da142df73596009b2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d8731811da142df73596009b2" title="ez_upload"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">ez_upload</span></span></h2><div class="notion-text notion-block-2b2b233d87318151b7adcd74cc89060c">提示</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873181d2b481cad7a091e860"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3A444a0421-ea45-490e-94ad-3d2fb269f6c4%3A0xGame-Week2-webimage-20231019141210648.png?table=block&amp;id=2b2b233d-8731-81d2-b481-cad7a091e860&amp;t=2b2b233d-8731-81d2-b481-cad7a091e860" alt="image-20231019141210648" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d8731815e993ce530bc7d9e3c">image-20231019141210648</div><div class="notion-text notion-block-2b2b233d873181aaa982fd2f8729548c">根据源码的 <em>source</em> = <em>imagecreatefromgif</em>(_FILES[‘file’][‘tmp_name’]);和imagegif($source, $filepath);可以知道是图像的二次渲染类型的文件上传漏洞。</div><div class="notion-text notion-block-2b2b233d873181d5b25ffcd4df0b46fa">根据<em>ext</em> = <em>pathinfo</em>(_FILES[‘file’][‘name’], PATHINFO_EXTENSION);</div><div class="notion-text notion-block-2b2b233d8731816ba72fe9e2aa8cb178">$filepath = <em>userdir</em>.<em>md</em>5(_FILES[‘file’][‘name’]FILES[‘file’][‘name’], PATHINFO_EXTENSION);_只返回最后一个点号后面的后缀（如果文件是a.gif.php就返回php）</div><div class="notion-text notion-block-2b2b233d8731817791ecf9e4a8830ae4">然后根据$filepath = <em>userdir</em>.<em>md</em>5(_FILES[‘file’][‘name’]).’.’.$ext;拼接到新文件的末尾。我们先根据图片二次渲染的文件上传知识点做一个一句话木马，具体可以参考https://blog.csdn.net/qq_40800734/article/details/105920149</div><div class="notion-text notion-block-2b2b233d87318129bd4edee560def256">然后进行抓包上传绕过</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d873181d0a2bec8487b986962"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3Acf148095-d571-4664-9e6e-f5d233d43b90%3A0xGame-Week2-web1696919904404-3e2c0f0e-eca7-437b-900e-18beccea2178.png?table=block&amp;id=2b2b233d-8731-81d0-a2be-c8487b986962&amp;t=2b2b233d-8731-81d0-a2be-c8487b986962" alt="img" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d873181cd85a2d13a62031d73">img</div><div class="notion-text notion-block-2b2b233d873181288753c3852b83b09b">最后可以连接木马了</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2b2b233d87318103b3bed4e0cd464ebc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://www.notion.so/image/attachment%3Aa947f6fc-2c43-4bbb-a234-0b56f0198713%3A0xGame-Week2-web1696919937914-f5491db4-5ae7-4e89-b814-63ad52baf006.png?table=block&amp;id=2b2b233d-8731-8103-b3be-d4e0cd464ebc&amp;t=2b2b233d-8731-8103-b3be-d4e0cd464ebc" alt="img" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2b2b233d87318107ba1fc46afc72a716">img</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2b2b233d8731815f9b49de7aadcf2ad7" data-id="2b2b233d8731815f9b49de7aadcf2ad7"><span><div id="2b2b233d8731815f9b49de7aadcf2ad7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b2b233d8731815f9b49de7aadcf2ad7" title="ez_unserialize"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">ez_unserialize</span></span></h2><div class="notion-text notion-block-2b2b233d8731810791acf03ec501ef7e">果然反序列化的题目都很烦，链子看着我头大</div><div class="notion-text notion-block-2b2b233d873181cc907ed9339b3ef787"><b>考点为：反序列化 fast destruct 绕过</b><code class="notion-inline-code">**__wakeup**</code></div><div class="notion-text notion-block-2b2b233d87318193bff9ed21628baa21">最后的payload要在exp生成的字符串删去一个<code class="notion-inline-code">}</code>实现 fast destruct</div><div class="notion-text notion-block-2b2b233d873181ec94f0e19f8729fae0">或者使用地址引用绕过__wakeup</div><div class="notion-text notion-block-2b2b233d873181119082fb80aedb47fb">POP 链子如下</div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>