简单的重复造一个轮子,漏洞危害蛮大的

影响版本:Struts 2.3.5 - Struts 2.3.31,Struts 2.5 - Struts 2.5.10

仅供学习测试使用,严禁非法操作!

下载链接

修复建议:

1.很官方的解释 升级struts2版本

2.做过滤器

获取Content-Type的值,如果包含了某些特征进行过滤pass(治标不治本,有被绕过的可能)  //当时写的也被证实了,确实存在绕过S2-046,所以大家尽量升级。

类似:(网上随意找,仅供参考思路)

protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response,FilterChain chain) throws ServletException, IOException {
String contentType=request.getContentType();
if(contentType!=null&&contentType.indexOf("ognl")!=-1){ //特征字符
System.out.println(contentType);
return;
}else{
chain.doFilter(request, response);
}
}

最新文章

  1. web api添加拦截器
  2. springmvc:jsp fmt标签格式化Date时间,格式化后可以用于页面展示
  3. XCodeGhost 笔记
  4. StgCreateDocfileOnILockBytes复合文档
  5. BZOJ3173 TJOI2013最长上升子序列(Treap+ZKW线段树)
  6. Source not found The JAR file …has no source attachment.
  7. sunlime操作
  8. 无法关闭的QT程序(覆盖closeEvent,新建QProcess并脱离关系)
  9. QT皮肤框架-TQUI
  10. 新手必看:如何快速看懂VC++项目
  11. Bash shell编程的语法知识点(1)
  12. java中的stream的泛型方法的使用示例
  13. laravel----------Client error: `POST http://47.98.116.219/oauth/token` resulted in a `401 Unauthorized` response: {"error":"invalid_client","message":"Client authentication failed"}
  14. java 反射简说
  15. 如何理解Minkowski不等式
  16. shell编程之函数
  17. Visual Studio 2013编辑器+SourceTree代码管理工具及扩展工具
  18. itertools库中product函数用法 (即可以随机出所有组合,因果图那样的)
  19. 使用Python实时获取cmd的输出
  20. 配置caffe过程中,生成解决方案出错。无法打开包括文件: “gpu/mxGPUArray.h”

热门文章

  1. 如何用wamp配置多域名虚拟目录
  2. TCP的带宽估计和丢包恢复
  3. math.floor实现四舍五入
  4. codeforces707C:Pythagorean Triples
  5. Java中初始变量默认值
  6. DB2导入数据时乱码问题
  7. Nhibernate Fluent INNER JOIN 查询
  8. 剑指offer--18.从尾到头打印链表
  9. uuid 学习
  10. BZOJ - 2618 凸多边形 (半平面交)