Giter Club home page Giter Club logo

fastjsonscan-1's Introduction

更新v3.7

目前回显有两种方案,利用条件都有局限性,dbcp回显是spring回显,dbcp的tomcatEcho还没加入,TemplatesImpl的tomcatEcho目前几乎遇不到。

fastjsonScan

fastjson漏洞burp插件,检测fastjson<=1.2.47基于dnslog和fastjson 1.2.24 的不出网2种TomcatEcho回显方案,使用ysoserial的tomcatEcho回显方案

附带fastjson1.2.47.tar.gz的web,解压到tomcat 的webapps,和fastjson 1.2.24的jar包,替换1.2.47的jar就能测试1.2.24。

自己编写的burp插件

1.fastjson =< 1.2.47 反序列化漏洞检测 无法检测没有外网的主机,默认使用rmi协议。

FastjsonScan 更新

1.在原来的被动扫描上支持主动扫描,由于主动扫描发送数据包较多,故会多次扫描。 2. 在原来的rmi协议上支持ldap协议。 3. 支持fastjson 1.2.24 Tomcatecho ,检测后,发送到Repeater 中,便可以利用。

4. 存在攻击行为,非法使用后果自负!!!!
  1. 为防止被动检测多次扫描,同一url被动检测一次,如果重新检测,需要重新加载插件或重启burp,主动扫描可以检测多次,目前主动扫描不会tomcatEcho。
6. 加入1.2.24-1.2.68 dnslog检测方案。

用法:

加到burp插件就行了,流量经过burp就检测。结果在ISSUES中看到,如果是fastjson 1.2.24的话,自动发送结果到Repeater如下图。

FastjsonExploit.jar

打包大佬的代码,大佬地址:https://github.com/c0ny1/FastjsonExploit

注意:

只检测post,且类型是application/json

如下图:

检测结果ISSUES中看到:

fastjson1.2.24自动发到Repeater 回显结果,添加Testcmd头执行命令:

一键反弹shell:

加入第二种回显方案: 也是自动检测,存在的话会发送到repeater中,如图,修改echo:test和Testcmd:命令:

fastjsonscan-1's People

Contributors

zilong3033 avatar

Stargazers

peter.dong avatar

Forkers

sijidufei

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.