Skip to content

Commit b88c5ff

Browse files
committed
1
1 parent 82d9668 commit b88c5ff

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

2021/CodeQL与Shiro550碰撞.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public int compare(Attr attr0, Attr attr1) {
6464

6565
`compare`方法是一个有参方法,所以在调用方法时并不能直接传入两个String类型或者Object类型。
6666

67-
![image-20211108173941363](https://gitee.com/samny/images/raw/master/summersec//49u39er49ec/49u39er49ec.png)
67+
![11](https://img-blog.csdnimg.cn/f7e925b667bd4b979c760313a2e8b6e8.png)
6868

6969
然而Attr是一个接口,不能直接实例化,只能找实现类。这里我使用的是`com\sun\org\apache\xerces\internal\dom\AttrNSImpl.java`类。
7070

@@ -155,8 +155,7 @@ public class CommonsBeanutilsAttrCompare {
155155

156156
最终实际结果
157157

158-
![attrcompare](https://gitee.com/samny/images/raw/master/summersec//5u12er5ec/5u12er5ec.gif)
159-
158+
![](https://img-blog.csdnimg.cn/0a6fb4c59be54d3d95fc711a8354e6f1.gif)
160159

161160

162161
----
@@ -537,7 +536,9 @@ CommonsBeanutils的1.9.4的升级描述是,也就是说默认情况下还是
537536
538537
> 在1.9.2版本中加入了一个特殊的BeanIntrospector类。这可以用来阻止攻击者使用Java对象的class属性来获得对classloader的访问。然而,这种保护在默认情况下是不启用的。PropertyUtilsBean(以及随之而来的BeanUtilsBean)现在默认不允许类级属性访问,从而防止CVE-2014-0114。
539538
540-
![image-20210614171420869](https://gitee.com/samny/images/raw/master/summersec//21u14er21ec/21u14er21ec.png)
539+
![在这里插入图片描述](https://img-blog.csdnimg.cn/3752208c97184e86b07a244b55f1c660.png)
540+
541+
541542

542543

543544

2021/CodeQL初见Shiro550.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Shiro550已知利用方式:
129129

130130
这种方式满足了第二和第三个条件,无法满足第一个条件。IDEA是支持导出查询结果,我当时想到是找到`Comparator`接口实现类和`Serializable`接口实现类,导出结果在去用工具合并对比。当时没有想到工具可以处理,自己写脚本处理?
131131

132-
![image-20210722141622302](https://gitee.com/samny/images/raw/master/summersec//29u16er29ec/29u16er29ec.png)
132+
![在这里插入图片描述](https://gitee.com/samny/images/raw/master/summersec//34u12er34ec/34u12er34ec.png)
133133

134134

135135

0 commit comments

Comments
 (0)