Code Monkey home page Code Monkey logo

Comments (1)

X1r0z avatar X1r0z commented on June 12, 2024

DemoComsumer 添加 VM 参数: -Ddubbo.hessian.allowNonSerializable=true
DemoProvider 添加 VM 参数: -Dcom.sun.jndi.ldap.object.trustURLCodebase=true --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.sql.rowset/com.sun.rowset=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xalan.internal.xsltc.runtime=ALL-UNNAMED

  1. 高版本 Java 中一般无法利用 JNDI 注入. 在 Java 17 中 com.sun.jndi.ldap.object.trustURLCodebase 默认已经被设置成了 false, 需要手动修改

  2. Java 在 Java 9 以后开始进行模块化, 在 Java 17 中已经强制开始实行模块化的标准 (参考 升级到Java 17没这么简单), 需要手动 debug 查看报错信息然后添加参数导出模块

因为在高版本中需要在服务端手动添加参数才能利用成功, 而且需要手动开启 trustURLCodebase, 所以个人认为这个漏洞在高版本 Java 中没有啥利用价值 (也可能是我没找到其它的利用思路

另外可以尝试一下使用反序列化的方式进行复现, 参考 CVE-2023-23638 Apache Dubbo JavaNative反序列化漏洞分析, 思路其实都差不多, 都是利用某个 class 修改 properties 绕过限制, 然后进行反序列化

from dubbo-rce.

Related Issues (3)

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.