<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Multipart on SoulJian</title><link>https://www.souljian.cn/tags/multipart/</link><description>Recent content in Multipart on SoulJian</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><lastBuildDate>Fri, 04 Dec 2026 07:40:00 +0800</lastBuildDate><atom:link href="https://www.souljian.cn/tags/multipart/index.xml" rel="self" type="application/rss+xml"/><item><title>S2-046：multipart filename 里的 OGNL</title><link>https://www.souljian.cn/p/struts2-s2-046-vs-s2-045/</link><pubDate>Fri, 04 Dec 2026 07:40:00 +0800</pubDate><guid>https://www.souljian.cn/p/struts2-s2-046-vs-s2-045/</guid><description>&lt;h2 id="一句话结论"&gt;一句话结论
&lt;/h2&gt;&lt;p&gt;S2-046 和 S2-045 是&lt;strong&gt;同一批修复里的两个注入点&lt;/strong&gt;：S2-045 在 &lt;code&gt;Content-Type&lt;/code&gt; 头，S2-046 在 multipart 的 &lt;code&gt;filename&lt;/code&gt; 里。原理完全一样——OGNL 表达式被当代码求值。区别全在工程细节上：S2-046 必须用 &lt;code&gt;\x00&lt;/code&gt; 截断 filename、必须用裸 socket 手搓畸形 multipart，curl 的 &lt;code&gt;-F&lt;/code&gt; 打不通。&lt;strong&gt;所以&amp;quot;用 S2-045 的脚本去打 S2-046&amp;quot;必然失败，而失败会被误读成&amp;quot;目标不受影响&amp;quot;。&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>