<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>S2-005 on SoulJian</title><link>https://www.souljian.cn/tags/s2-005/</link><description>Recent content in S2-005 on SoulJian</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><lastBuildDate>Fri, 04 Dec 2026 01:10:00 +0800</lastBuildDate><atom:link href="https://www.souljian.cn/tags/s2-005/index.xml" rel="self" type="application/rss+xml"/><item><title>Struts2 S2-005：参数名就是 OGNL 表达式</title><link>https://www.souljian.cn/p/struts2-s2-005-ognl-rce/</link><pubDate>Fri, 04 Dec 2026 01:10:00 +0800</pubDate><guid>https://www.souljian.cn/p/struts2-s2-005-ognl-rce/</guid><description>&lt;h2 id="一句话结论"&gt;一句话结论
&lt;/h2&gt;&lt;p&gt;Struts2 2.0.0–2.1.8.1 会把 HTTP &lt;strong&gt;参数名&lt;/strong&gt;当 OGNL 表达式求值；S2-003 的补丁只加了&amp;quot;禁止静态方法调用、禁止类方法执行&amp;quot;两个开关，而这两个开关本身就存在可写的 OGNL 上下文里，能被同一段表达式改回去。于是修复被整个绕开，未认证的一条 GET 即可执行命令。我在本地用写文件的无害命令验证到位。&lt;/p&gt;</description></item></channel></rss>