Giter Site home page Giter Site logo

0x727 / springbootexploit Goto Github PK

View Code? Open in Web Editor NEW
1.8K 1.8K 305.0 149 KB

项目是根据LandGrey/SpringBootVulExploit清单编写,目的hvv期间快速利用漏洞、降低漏洞利用门槛。

License: Apache License 2.0

Java 100.00%
exp exploit spring springboot vul vulnerability

springbootexploit's People

Contributors

summersec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

springbootexploit's Issues

运行错误

Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
错误: 找不到或无法加载主类 com.drops.main.Main
原因: java.lang.NoClassDefFoundError: javafx/application/Application

restart h2 database query RCE

建议加一个restart h2 database query RCE

或者加一个heapdump

大多数时候都是很少有
image

一般都是只能GET env

然后heapdump 成了主要的了

#建议添加返回包长度选项

大佬您好,在之前的测试中,通过dirsearch去扫描是否存在路径,然后根据返回包的大小来初步判断,是否可能真实存在此路径,建议工具中添加该选项,可用来快速过滤垃圾数据信息

内存马问题

发现注入内存马成果,通过蚁剑连接时报页面存在,但无法获得密钥

ldap问题

连接不上ldap服务器啊大佬,一直提示端口被占用

建议加一点扫描接口

/api-docs
/v2/api-docs
/swagger-ui.html
/api.html
/sw/swagger-ui.html
/api/swagger-ui.html
/template/swagger-ui.html
/spring-security-rest/api/swagger-ui.html
/spring-security-oauth-resource/swagger-ui.html
/mappings
/actuator/mappings
/metrics
/actuator/metrics
/beans
/actuator/beans
/configprops
/actuator/configprops
/actuator
/auditevents
/autoconfig
/beans
/caches
/conditions
/configprops
/docs
/dump
/env
/flyway
/health
/heapdump
/httptrace
/info
/intergrationgraph
/jolokia
/logfile
/loggers
/liquibase
/metrics
/mappings
/prometheus
/refresh
/scheduledtasks
/sessions
/shutdown
/trace
/threaddump
/actuator/auditevents
/actuator/beans
/actuator/health
/actuator/conditions
/actuator/configprops
/actuator/env
/actuator/info
/actuator/loggers
/actuator/heapdump
/actuator/threaddump
/actuator/metrics
/actuator/scheduledtasks
/actuator/httptrace
/actuator/mappings
/actuator/jolokia
/actuator/hystrix.stream

连接失败问题

在本地复现,回显注入成功,但是冰蝎连接失败,是没有利用成功吗
image
image
image

mvn clean package -DskipTests 报错

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WeblogicMemshellTemplate1.java:[10,16] 找不到符号
符号: 类 BASE64Decoder
位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WebsphereMemshellTemplate.java:[8,16] 找不到符号
符号: 类 BASE64Decoder
位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/DynamicFilterTemplate.java:[3,16] 找不到符号
符号: 类 BASE64Decoder
位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/DynamicInterceptorTemplate.java:[5,16] 找不到符号
符号: 类 BASE64Decoder
位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/TomcatMemshellTemplate1.java:[13,16] 找不到符号
符号: 类 BASE64Decoder
位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/JettyMemshellTemplate.java:[11,16] 找不到符号
符号: 类 BASE64Decoder
位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/JBossMemshellTemplate.java:[13,16] 找不到符号
符号: 类 BASE64Decoder
位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/TomcatMemshellTemplate2.java:[13,16] 找不到符号
符号: 类 BASE64Decoder
位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/SpringMemshellTemplate.java:[10,16] 找不到符号
符号: 类 BASE64Decoder
位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WeblogicMemshellTemplate2.java:[8,16] 找不到符号
符号: 类 BASE64Decoder
位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WeblogicMemshellTemplate1.java:[76,37] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.WeblogicMemshellTemplate1
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WeblogicMemshellTemplate1.java:[76,71] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.WeblogicMemshellTemplate1
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WebsphereMemshellTemplate.java:[72,29] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.WebsphereMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WebsphereMemshellTemplate.java:[72,63] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.WebsphereMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/DynamicFilterTemplate.java:[56,72] 找不到符号
符号: 类 BASE64Decoder
位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/DynamicFilterTemplate.java:[82,36] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.DynamicFilterTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/DynamicInterceptorTemplate.java:[57,64] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.DynamicInterceptorTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/DynamicInterceptorTemplate.java:[80,36] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.DynamicInterceptorTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/TomcatMemshellTemplate1.java:[60,21] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.TomcatMemshellTemplate1
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/TomcatMemshellTemplate1.java:[60,55] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.TomcatMemshellTemplate1
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/JettyMemshellTemplate.java:[93,29] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.JettyMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/JettyMemshellTemplate.java:[93,63] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.JettyMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/JBossMemshellTemplate.java:[46,21] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.JBossMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/JBossMemshellTemplate.java:[46,55] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.JBossMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/TomcatMemshellTemplate2.java:[158,17] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.TomcatMemshellTemplate2
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/TomcatMemshellTemplate2.java:[158,51] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.TomcatMemshellTemplate2
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/SpringMemshellTemplate.java:[42,21] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.SpringMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/SpringMemshellTemplate.java:[42,55] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.SpringMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WeblogicMemshellTemplate2.java:[78,21] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.WeblogicMemshellTemplate2
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WeblogicMemshellTemplate2.java:[78,55] 找不到符号
符号: 类 BASE64Decoder
位置: 类 com.feihong.ldap.template.WeblogicMemshellTemplate2
[INFO] 30 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:47 min
[INFO] Finished at: 2022-04-29T17:34:34+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project JNDIExploit: Compilation failure: Compilation failure:
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WeblogicMemshellTemplate1.java:[10,16] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WebsphereMemshellTemplate.java:[8,16] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/DynamicFilterTemplate.java:[3,16] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/DynamicInterceptorTemplate.java:[5,16] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/TomcatMemshellTemplate1.java:[13,16] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/JettyMemshellTemplate.java:[11,16] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/JBossMemshellTemplate.java:[13,16] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/TomcatMemshellTemplate2.java:[13,16] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/SpringMemshellTemplate.java:[10,16] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WeblogicMemshellTemplate2.java:[8,16] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WeblogicMemshellTemplate1.java:[76,37] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.WeblogicMemshellTemplate1
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WeblogicMemshellTemplate1.java:[76,71] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.WeblogicMemshellTemplate1
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WebsphereMemshellTemplate.java:[72,29] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.WebsphereMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WebsphereMemshellTemplate.java:[72,63] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.WebsphereMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/DynamicFilterTemplate.java:[56,72] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 程序包 sun.misc
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/DynamicFilterTemplate.java:[82,36] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.DynamicFilterTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/DynamicInterceptorTemplate.java:[57,64] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.DynamicInterceptorTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/DynamicInterceptorTemplate.java:[80,36] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.DynamicInterceptorTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/TomcatMemshellTemplate1.java:[60,21] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.TomcatMemshellTemplate1
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/TomcatMemshellTemplate1.java:[60,55] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.TomcatMemshellTemplate1
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/JettyMemshellTemplate.java:[93,29] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.JettyMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/JettyMemshellTemplate.java:[93,63] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.JettyMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/JBossMemshellTemplate.java:[46,21] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.JBossMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/JBossMemshellTemplate.java:[46,55] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.JBossMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/TomcatMemshellTemplate2.java:[158,17] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.TomcatMemshellTemplate2
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/TomcatMemshellTemplate2.java:[158,51] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.TomcatMemshellTemplate2
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/SpringMemshellTemplate.java:[42,21] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.SpringMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/SpringMemshellTemplate.java:[42,55] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.SpringMemshellTemplate
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WeblogicMemshellTemplate2.java:[78,21] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.WeblogicMemshellTemplate2
[ERROR] /root/JNDIExploit/src/main/java/com/feihong/ldap/template/WeblogicMemshellTemplate2.java:[78,55] 找不到符号
[ERROR] 符号: 类 BASE64Decoder
[ERROR] 位置: 类 com.feihong.ldap.template.WeblogicMemshellTemplate2
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

SpringCloudGatewayRCEPOC误报

目标网站使用了Tomcat,在404的情况下url路径会出现在body中,导致SpringCloudGatewayRCEPOC误报
image
image
希望可以添加一下response状态码检测以减少误报

jolokia Realm JNDI RCE 利用失败

jolokia Realm JNDI RCE 利用失败

1、输入目标地址和配置服务器地址,点击连接,验证成功

image

2、检测利用链失败

image

3、访问 https://x2.2x0.x4.xx5/actuator/jolokia/list 查看存在 createJNDIRealm 关键词

image

4、查看存在 type=MBeanFactory 关键词

image

5、手工设置监听,使用py 打成功

image

多个检测功能误报,JVM等正确信息端点从何而来?

1、问题1 页面存在性判断过于粗糙,请添加输出页面长度的功能,(注意Get heapdump可能会导致卡顿)
问题表现:默认404页面返回200,无法准确爆破!检测到 autoconfig 端点,请手工验证: https://xx.xxx.com/xxx_admin/autoconfig

2、多个漏洞扫描接口误报
SnakeYAMLRCE 提示注入成功
H2Database ConsoleJNDIRCE 提示注入成功
但是实际上POST env方法都不被允许
SPELRCE检测时返回的固定结果,是否并未实际进行检测?

3、返回了正确的java版本是否表示则真的存在漏洞?

JVM信息: Java HotSpot(TM) 64-Bit Server VM
端口信息: 18881
Java版本: 1.8.0_211-b12
用户名: root

以上检测结果中返回JVM等信息,通过heapdump确定这确实服务器上的信息。
上面几个信息是从哪个接口获取的?获取到这些信息表示存在哪个漏洞?

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.