struts2
文章平均质量分 68
milife2012
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Struts2 OGNL漏洞 (方案一)
Struts2的核心是使用的webwork框架,处理 action时通过调用底层的getter/setter方法来处理http的参数,它将每个http参数声明为一个ONGL(这里是ONGL的介绍)语句。当我们提交一个http参数: Java代码 ?user.address.city=Bishkek&user['favoriteDrink']=kumys ONGL转载 2012-10-10 15:55:00 · 3923 阅读 · 1 评论 -
Struts2 OGNL漏洞 (方案二)
Struts2官方已经发布了多次漏洞补丁,但根源在于OGNL能调用静态办法,所以彻底解决漏洞的办法是底层禁止OGNL调用一些特定的java类,如System,Runtime类 我们底层入手,调用OGNLRuntime静态方法,设置我们自己的MethodAccessor类,能禁止OGNL在表达式中调用Runtime,System等类。这已经验证通过。 如下图从左到右,是action的参数转载 2012-10-10 15:56:07 · 2397 阅读 · 0 评论 -
Struts2 OGNL漏洞 测试
这东西一开始下到还不会利用 这篇文章写的不错但是关键字不咋好用比较少 然后就开始了批量拿了并且自己和朋友也想了一些关键字 Inurl:index.action Inurl:商城.achtion (商城比较多) Inurl:index.achtion 标题:apache struts2 Inurl:action?id= 没有NB的关键字 只有爱想的脑袋 关键字不唯一可能你多想想就能转载 2012-10-10 16:00:25 · 7388 阅读 · 0 评论 -
spring整合struts2方案(二)
步骤和整合方案(一)类似 仅仅struts配置文件和spring配置文件不同 1.struts配置文件 struts.xml <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2原创 2013-04-14 21:46:02 · 1004 阅读 · 0 评论 -
spring整合struts2方案(一)
1.添加jar包 2.添加web.xml配置文件 <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml原创 2013-04-14 21:25:38 · 1250 阅读 · 0 评论 -
struts2 配置
struts2版本为2.3.8 1.添加jar包 2.修改web.xml文件 <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/原创 2013-04-14 01:38:35 · 993 阅读 · 0 评论 -
struts2获得所有的namespace和namespace下所有的action信息(转载)
Dispatcher dispatcher = Dispatcher.getInstance(); ConfigurationManager configurationManager = dispatcher.getConfigurationManager(); Configuration config = configurationManager.getCon原创 2013-04-24 13:32:56 · 1651 阅读 · 0 评论 -
struts2标签获取<%%>(java代码里的变量)
Integer month = 9; request.setAttribute("month",month); %> 这样就能获得month的值了原创 2013-04-18 09:17:17 · 2836 阅读 · 0 评论
分享