
CommonsCollestions cc链
文章平均质量分 89
# CommonsCollestions cc链
Ho1aAs
Tutte le strada portano a roma.
展开
-
『Java安全』反序列化-CC7反序列化漏洞POP链分析_ysoserial CommonsCollections7 PoC分析
文章目录前言代码复现工具类PoC代码审计 | 原理分析1. LazyMap.get()调用this.factory.transform()2. AbstractMap.equals()调用m.get()3. AbstractMapDecorator.equals()调用this.map.equals4. HashTable反序列化触发e.key.equals(key)为什么最后要lazyMap2.remove("yy")?为什么多了一个键yy?为什么yy和zZ的hash相同?POP链完前言CC7是另一种原创 2022-03-13 16:42:37 · 3012 阅读 · 0 评论 -
『Java安全』反序列化-CC6反序列化漏洞POP链分析_ysoserial CommonsCollections6 PoC分析
文章目录前言代码复现工具类PoC代码审计 | 原理分析TiedMapEntry.hashCode()调用toString()方法POP链完前言CC6触发TiedMapEntry.hashcode(),非常简单因此只做记录代码复现工具类反序列化:UnserializePacked.Unserialize.javapackage UnserializePacked;import java.io.*;public class Unserialize { public static v原创 2022-03-13 00:16:22 · 649 阅读 · 0 评论 -
『Java安全』反序列化-CC5反序列化漏洞POP链分析_ysoserial CommonsCollections5 PoC分析
文章目录前言代码复现工具类PoC代码审计 | 原理分析1. LazyMap.get()调用this.factory.transform()2. TiedMapEntry.toString()调用this.map.get()3. BadAttributeValueExpException反序列化触发this.val.toString()POP链完前言由于jdk8修复了AnnotationInvokerHandler,cc1用不了了cc5在cc1点基础上做了小的改进,还是使用Commons-Collect原创 2022-03-12 23:43:01 · 1068 阅读 · 0 评论 -
『Java安全』反序列化-CC4反序列化漏洞POP链分析_ysoserial CommonsCollections4 PoC分析
文章目录前言代码复现工具类PoC代码审计 | 原理分析1. TrAXFilter构造器传入TemplatesImpl会调用newTransformer()2. InstantiateTransformer.transform()调用指定的类构造器3. TransformingComparator.compare()调用this.transformer.transform()4. PriorityQueue反序列化调用comparator.compare()POP链完前言同样的,CC4是CC2的变种,改变原创 2022-03-12 20:53:15 · 1054 阅读 · 0 评论 -
『Java安全』反序列化-CC3反序列化漏洞POP链分析_ysoserial CommonsCollections3 PoC分析
文章目录前言代码复现工具类PoC代码审计 | 原理分析1. TrAXFilter构造器传入TemplatesImpl会调用newTransformer()2. InstantiateTransformer.transform()调用指定对象的指定类构造器3. LazyMap.get()调用this.factory.transform()构造ChainedTransformer生成lazyMap4. Proxy动态代理+AnnotationInvokerHandler调用LazyMap.get()5. Ann原创 2022-03-11 15:44:48 · 894 阅读 · 0 评论 -
『Java安全』反序列化-CC2反序列化漏洞POP链分析_ysoserial CommonsCollections2 PoC分析
文章目录前言代码复现工具类PoC代码审计 | 原理分析1. InvokerTransformer.transform()反射调用TemplatesImpl.newTransformer()2. TransformingComparator.compare()调用this.transformer.transform()3. PriorityQueue反序列化调用comparator.compare()为什么PriorityQueue还要再添加一个元素?为什么向PriorityQueue添加1、InvokerT原创 2022-03-10 21:41:02 · 820 阅读 · 0 评论 -
『Java安全』反序列化-ApacheCommonsCollections POP链分析_ysoserial CommonsCollections1 payload分析
文章目录前言解决完前言验证环境依赖为jdk1.7 + commons-collections3.1建议用maven解决完欢迎在评论区留言,欢迎关注我的优快云 @Ho1aAs原创 2021-11-30 22:00:47 · 649 阅读 · 0 评论