<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Web Exploitation on zhi旅程</title>
    <link>http://localhost:1313/tags/web-exploitation/</link>
    <description>Recent content from zhi旅程</description>
    <generator>Hugo</generator>
    <language>zh-tw</language>
    
    <managingEditor>ray784523@zhienw.com (Zhi Chen)</managingEditor>
    <webMaster>ray784523@zhienw.com (Zhi Chen)</webMaster>
    
    <copyright>本部落格所有文章除特別聲明外，均採用 BY-NC-SA 授權協議。轉載請註明出處！</copyright>
    
    <lastBuildDate>Thu, 07 May 2026 08:00:52 +0800</lastBuildDate>
    
    
    <atom:link href="http://localhost:1313/tags/web-exploitation/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>Forbidden Paths writeup</title>
      <link>http://localhost:1313/post/forbidden_paths/</link>
      <pubDate>Thu, 07 May 2026 07:15:52 &#43;0800</pubDate>
      <author>ray784523@zhienw.com (Zhi Chen)</author>
      <guid>http://localhost:1313/post/forbidden_paths/</guid>
      <description>
        <![CDATA[<h1>Forbidden Paths writeup</h1><p>作者：Zhi Chen（ray784523@zhienw.com）</p>
        
          <h2 id="解題">
<a class="header-anchor" href="#%e8%a7%a3%e9%a1%8c"></a>
解題
</h2><p><strong>打開題目</strong>
<img src="/images/Forbidden_Paths/1.webp" alt="image">
<strong>題目說他拒絕絕對路徑,我們嘗試用相對路徑查詢</strong></p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">../../../../../../../../../../flag.txt
</span></span></code></pre></div><p><img src="/images/Forbidden_Paths/2.webp" alt="image">
<strong>成功查詢</strong>
<img src="/images/Forbidden_Paths/3.webp" alt="image"></p>
<blockquote>
<p>取得flag</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">picoCTF{7h3_p47h_70_5ucc355_e5a6fcbc}
</span></span></code></pre></div></blockquote>
<h2 id="提交flag">
<a class="header-anchor" href="#%e6%8f%90%e4%ba%a4flag"></a>
提交flag
</h2><p><img src="/images/Forbidden_Paths/3.webp" alt="image"></p>
        
        <hr><p>本文2026-05-07首發於<a href='http://localhost:1313/'>zhi旅程</a>，最後修改於2026-05-07</p>]]>
      </description>
      
        <category>picoctf</category>
      
    </item>
    
    

    <item>
      <title>Roboto Sans writeup</title>
      <link>http://localhost:1313/post/roboto_sans/</link>
      <pubDate>Thu, 07 May 2026 06:59:52 &#43;0800</pubDate>
      <author>ray784523@zhienw.com (Zhi Chen)</author>
      <guid>http://localhost:1313/post/roboto_sans/</guid>
      <description>
        <![CDATA[<h1>Roboto Sans writeup</h1><p>作者：Zhi Chen（ray784523@zhienw.com）</p>
        
          <h2 id="解題">
<a class="header-anchor" href="#%e8%a7%a3%e9%a1%8c"></a>
解題
</h2><p><strong>打開題目</strong>
<img src="/images/Roboto_Sans/1.webp" alt="image">
<strong>嘗試查看robots.txt路徑,發現有疑似base64的編碼字串</strong>
<img src="/images/Roboto_Sans/2.webp" alt="image">
<strong>將其嘗試解碼</strong>
<img src="/images/Roboto_Sans/3.webp" alt="image">
<strong>嘗試進入到解碼路徑,取得flag</strong>
<img src="/images/Roboto_Sans/4.webp" alt="image"></p>
<blockquote>
<p>取得flag</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">picoCTF{1nsp3ti0n_0f_w3bpag3s_ec95fa49}
</span></span></code></pre></div></blockquote>
<h2 id="提交flag">
<a class="header-anchor" href="#%e6%8f%90%e4%ba%a4flag"></a>
提交flag
</h2><p><img src="/images/Roboto_Sans/5.webp" alt="image"></p>
        
        <hr><p>本文2026-05-07首發於<a href='http://localhost:1313/'>zhi旅程</a>，最後修改於2026-05-07</p>]]>
      </description>
      
        <category>picoctf</category>
      
    </item>
    
    

    <item>
      <title>Search source writeup</title>
      <link>http://localhost:1313/post/search_source/</link>
      <pubDate>Thu, 07 May 2026 06:16:52 &#43;0800</pubDate>
      <author>ray784523@zhienw.com (Zhi Chen)</author>
      <guid>http://localhost:1313/post/search_source/</guid>
      <description>
        <![CDATA[<h1>Search source writeup</h1><p>作者：Zhi Chen（ray784523@zhienw.com）</p>
        
          <h2 id="what-is-httrack">
<a class="header-anchor" href="#what-is-httrack"></a>
What is httrack?
</h2><p>HTTrack 是一款免費且開源的離線瀏覽工具，能將整個網站從網路下載到本機目錄，遞迴建立所有資料夾結構，並取得 HTML、圖片及其他檔案。<br>
主要功能包含：</p>
        
        <hr><p>本文2026-05-07首發於<a href='http://localhost:1313/'>zhi旅程</a>，最後修改於2026-05-07</p>]]>
      </description>
      
        <category>picoctf</category>
      
    </item>
    
    

    <item>
      <title>findme writeup</title>
      <link>http://localhost:1313/post/findme/</link>
      <pubDate>Tue, 05 May 2026 15:50:52 &#43;0800</pubDate>
      <author>ray784523@zhienw.com (Zhi Chen)</author>
      <guid>http://localhost:1313/post/findme/</guid>
      <description>
        <![CDATA[<h1>findme writeup</h1><p>作者：Zhi Chen（ray784523@zhienw.com）</p>
        
          <h2 id="解題">
<a class="header-anchor" href="#%e8%a7%a3%e9%a1%8c"></a>
解題
</h2><p><strong>打開題目</strong>
<img src="/images/findme/1.webp" alt="image">
<strong>利用題目給我帳密登陸後.發現一行訊息</strong>
<img src="/images/findme/2.webp" alt="image"></p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-TEXT" data-lang="TEXT"><span class="line"><span class="cl">I was redirected here by a friend of mine but i couldnt find anything. Help me search for flags :-)
</span></span></code></pre></div><p><strong>這行訊息告訴我們過程中應改有什麼被忽略了,使用burp suite進行抓取封包查看,果然過程中有3個封包,且裡面有可疑的id,將其解析即可取得flag</strong>
<img src="/images/findme/3.webp" alt="image">
<img src="/images/findme/4.webp" alt="image">
<img src="/images/findme/5.webp" alt="image"></p>
        
        <hr><p>本文2026-05-05首發於<a href='http://localhost:1313/'>zhi旅程</a>，最後修改於2026-05-05</p>]]>
      </description>
      
        <category>picoctf</category>
      
    </item>
    
    

    <item>
      <title>More SQLi writeup</title>
      <link>http://localhost:1313/post/more_sqli/</link>
      <pubDate>Tue, 05 May 2026 15:40:52 &#43;0800</pubDate>
      <author>ray784523@zhienw.com (Zhi Chen)</author>
      <guid>http://localhost:1313/post/more_sqli/</guid>
      <description>
        <![CDATA[<h1>More SQLi writeup</h1><p>作者：Zhi Chen（ray784523@zhienw.com）</p>
        
          <h2 id="解題">
<a class="header-anchor" href="#%e8%a7%a3%e9%a1%8c"></a>
解題
</h2><p><strong>打開題目網頁</strong>
<img src="/images/More_SQLi/1.webp" alt="image">
<strong>嘗試進行輸入帳密,發現查詢語句password竟然在前面</strong>
<img src="/images/More_SQLi/2.webp" alt="image">
<strong>進行SQL Injection</strong>
<img src="/images/More_SQLi/3.webp" alt="image">
<strong>取得flag</strong>
<img src="/images/More_SQLi/4.webp" alt="image"></p>
<blockquote>
<p>取得flag</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">picoCTF{G3tting_5QL_1nJ3c7I0N_l1k3_y0u_sh0ulD_e3e46aae}
</span></span></code></pre></div></blockquote>
<h2 id="提交flag">
<a class="header-anchor" href="#%e6%8f%90%e4%ba%a4flag"></a>
提交flag
</h2><p><img src="/images/More_SQLi/5.webp" alt="image"></p>
        
        <hr><p>本文2026-05-05首發於<a href='http://localhost:1313/'>zhi旅程</a>，最後修改於2026-05-05</p>]]>
      </description>
      
        <category>picoctf</category>
      
    </item>
    
    

    <item>
      <title>SOAP writeup</title>
      <link>http://localhost:1313/post/soap/</link>
      <pubDate>Tue, 05 May 2026 14:39:52 &#43;0800</pubDate>
      <author>ray784523@zhienw.com (Zhi Chen)</author>
      <guid>http://localhost:1313/post/soap/</guid>
      <description>
        <![CDATA[<h1>SOAP writeup</h1><p>作者：Zhi Chen（ray784523@zhienw.com）</p>
        
          <h2 id="what-is-xxe-injection">
<a class="header-anchor" href="#what-is-xxe-injection"></a>
What is XXE Injection?
</h2><p>XXE（XML External Entity）注入是一種針對 XML 解析器的攻擊手法。XML 本身有個功能叫做實體（Entity），允許你定義「變數」來引用外部資源。<br>
XXE 攻擊就是利用這個功能，讓伺服器去讀取它不該暴露的東西。此攻擊能用於：</p>
        
        <hr><p>本文2026-05-05首發於<a href='http://localhost:1313/'>zhi旅程</a>，最後修改於2026-05-05</p>]]>
      </description>
      
        <category>picoctf</category>
      
    </item>
    
    

    <item>
      <title>No Sql Injection writeup</title>
      <link>http://localhost:1313/post/no_sql_injection/</link>
      <pubDate>Tue, 05 May 2026 13:00:52 &#43;0800</pubDate>
      <author>ray784523@zhienw.com (Zhi Chen)</author>
      <guid>http://localhost:1313/post/no_sql_injection/</guid>
      <description>
        <![CDATA[<h1>No Sql Injection writeup</h1><p>作者：Zhi Chen（ray784523@zhienw.com）</p>
        
          <h2 id="解題">
<a class="header-anchor" href="#%e8%a7%a3%e9%a1%8c"></a>
解題
</h2><p><strong>下載題目程式碼</strong>
<img src="/images/No_Sql_Injection/1.webp" alt="image"></p>
<h3 id="觀察題目程式碼">
<a class="header-anchor" href="#%e8%a7%80%e5%af%9f%e9%a1%8c%e7%9b%ae%e7%a8%8b%e5%bc%8f%e7%a2%bc"></a>
觀察題目程式碼
</h3><p><strong>發現有一個/admin的頁面</strong>
<img src="/images/No_Sql_Injection/2.webp" alt="image">
<strong>在server.js中發現伺服器資料庫使用mongo DB</strong>
<img src="/images/No_Sql_Injection/3.webp" alt="image">
<strong>在server.js中發現使用者帳號</strong>
<img src="/images/No_Sql_Injection/4.webp" alt="image">
<strong>在server.js中發現疑似把flag儲存在tocken中</strong>
<img src="/images/No_Sql_Injection/5.webp" alt="image">
<strong>在server.js中發現他將前端送出的帳號密碼直接串接成查詢語句,造成NoSql Injection</strong>
<img src="/images/No_Sql_Injection/6.webp" alt="image"></p>
        
        <hr><p>本文2026-05-05首發於<a href='http://localhost:1313/'>zhi旅程</a>，最後修改於2026-05-05</p>]]>
      </description>
      
        <category>picoctf</category>
      
    </item>
    
    

    <item>
      <title>Trickster writeup</title>
      <link>http://localhost:1313/post/trickster/</link>
      <pubDate>Tue, 05 May 2026 12:00:52 &#43;0800</pubDate>
      <author>ray784523@zhienw.com (Zhi Chen)</author>
      <guid>http://localhost:1313/post/trickster/</guid>
      <description>
        <![CDATA[<h1>Trickster writeup</h1><p>作者：Zhi Chen（ray784523@zhienw.com）</p>
        
          <h2 id="whis-is-magic-number">
<a class="header-anchor" href="#whis-is-magic-number"></a>
Whis is magic number?
</h2><p>Magic number 是放在檔案最開頭的一組固定位元組序列，作用就像檔案的「身分證」，讓作業系統或程式能快速辨識這個檔案到底是什麼類型，而不需要依賴副檔名。各種檔案格式的 magic number 如下：</p>
        
        <hr><p>本文2026-05-05首發於<a href='http://localhost:1313/'>zhi旅程</a>，最後修改於2026-05-05</p>]]>
      </description>
      
        <category>picoctf</category>
      
    </item>
    
    

    <item>
      <title>Pachinko writeup</title>
      <link>http://localhost:1313/post/pachinko/</link>
      <pubDate>Mon, 04 May 2026 11:54:52 &#43;0800</pubDate>
      <author>ray784523@zhienw.com (Zhi Chen)</author>
      <guid>http://localhost:1313/post/pachinko/</guid>
      <description>
        <![CDATA[<h1>Pachinko writeup</h1><p>作者：Zhi Chen（ray784523@zhienw.com）</p>
        
          <h2 id="what-is-race-condition">
<a class="header-anchor" href="#what-is-race-condition"></a>
What is race condition?
</h2><p>Race Condition 是一種「時間差漏洞」。當系統在處理多個同時發生的請求時，因為步驟之間沒有做好鎖定（locking），就會產生邏輯錯誤。<br>
例如轉帳：假設你的錢包有 100 元，轉帳流程分三步：① 檢查餘額 → ② 送出錢 → ③ 扣除餘額。<br>
正常情況下，轉一次 100 元後餘額歸零，沒問題。但如果你同時發出兩個轉帳請求，事情就變了：<br>
請求 A 檢查餘額：100（通過）<br>
請求 B 檢查餘額：100（也通過，因為 A 還沒扣錢）
請求 A 送出 100 元<br>
請求 B 也送出 100 元<br>
扣款才開始執行……</p>
        
        <hr><p>本文2026-05-04首發於<a href='http://localhost:1313/'>zhi旅程</a>，最後修改於2026-05-04</p>]]>
      </description>
      
        <category>picoctf</category>
      
    </item>
    
    

    <item>
      <title>3v@l writeup</title>
      <link>http://localhost:1313/post/3v@l/</link>
      <pubDate>Mon, 04 May 2026 09:53:52 &#43;0800</pubDate>
      <author>ray784523@zhienw.com (Zhi Chen)</author>
      <guid>http://localhost:1313/post/3v@l/</guid>
      <description>
        <![CDATA[<h1>3v@l writeup</h1><p>作者：Zhi Chen（ray784523@zhienw.com）</p>
        
          <h2 id="what-is-eval-">
<a class="header-anchor" href="#what-is-eval-"></a>
What is eval ?
</h2><p>eval() 是 Python 的內建函式，它能將字串當作程式碼來執行，並回傳結果。它通常被用在需要動態計算表達式的場景，例如計算機應用程式、設定檔解析、或資料處理中動態執行公式。</p>
        
        <hr><p>本文2026-05-04首發於<a href='http://localhost:1313/'>zhi旅程</a>，最後修改於2026-05-04</p>]]>
      </description>
      
        <category>picoctf</category>
      
    </item>
    
  </channel>
</rss>
