<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>任意文件读取 on SoulJian</title><link>https://www.souljian.cn/tags/%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96/</link><description>Recent content in 任意文件读取 on SoulJian</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><lastBuildDate>Fri, 04 Dec 2026 21:40:00 +0800</lastBuildDate><atom:link href="https://www.souljian.cn/tags/%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96/index.xml" rel="self" type="application/rss+xml"/><item><title>Jenkins CLI 任意文件读：错误信息把 /etc/passwd 吐出来了</title><link>https://www.souljian.cn/p/jenkins-cve-2024-23897-file-read/</link><pubDate>Fri, 04 Dec 2026 21:40:00 +0800</pubDate><guid>https://www.souljian.cn/p/jenkins-cve-2024-23897-file-read/</guid><description>&lt;h2 id="实测报错信息就是读取通道"&gt;实测：报错信息就是读取通道
&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;靶标：&lt;code&gt;vulhub/jenkins:2.441&lt;/code&gt;，映射 &lt;code&gt;8095:8080&lt;/code&gt;。&lt;/strong&gt;&lt;/p&gt;
&lt;h3 id="一先确认能匿名访问-cli"&gt;一、先确认能匿名访问 CLI
&lt;/h3&gt;&lt;figure class="codeblock" data-lang="终端 / 文本"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ curl -s -o /dev/null -w &amp;#34;%{http_code}\n&amp;#34; http://127.0.0.1:8095/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;200
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ curl -s -o /dev/null -w &amp;#34;%{http_code}\n&amp;#34; http://127.0.0.1:8095/jnlpJars/jenkins-cli.jar
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;200&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;jenkins-cli.jar&lt;/code&gt; 是 Jenkins 自带的官方客户端，不需要登录就能下载&lt;/strong&gt;——&lt;strong&gt;这一步很多人不知道，它直接降低了利用门槛。&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>