當Struts2中的devMode模式設置為true時,存在嚴重遠程代碼執行漏洞。如果WEB服務以最高權限運行時,可遠程執行任意命令,包括遠程控制服務器。
如果為受影響的版本,建議修改配置文件struts.xml,增加或更改內容如下:<constant name="struts.devMode" value="false"/>
Struts2開發模式漏洞技術分析與防護方案
http://blog.nsfocus.net/struts2-development-model-vulnerability-technical-analysis/
參考鏈接:
Struts2 Webconsole.html頁面Ognl調試流程 http://www.hack80.com/thread-47214-1-1.html
S2—016 http://www.freebuf.com/vuls/11220.html