Git Product home page Git Product logo

jumpserver_rce's Introduction

jumpserver_rce

根据官方报告,这个漏洞的影响版本如下:

< v2.6.2
< v2.5.4
< v2.4.5
= v1.5.9

这个漏洞的是两部分组合起来的

有限的文件读取漏洞

限制主要如下

  • 只能使用绝对路径读取文件
  • 只能读取以 log 结尾的文件

首先需要使用readlog.py读取日志文件,看其中有没有必要的信息

主要是三个信息

  • user id
  • asset id
  • system user id

这三个 ID 都是自动生成的 UUID,没法进行遍历

如果日志目录等级是 INFO,拿到的信息就很少了

如果路径不是/opt/jumpserver/logs/jumpserver,就拿不到日志文件

可以利用这个漏洞去读取一些系统上其它的日志,看看有没有什么价值

任意命令执行漏洞

在获取到上面讲的三个 ID 之后,填充到rce.py中,即可进行全交互式的命令执行

话说回来,拿不到三个 ID 就没价值

私钥读取

在权限足够的账号下,可以读取缓存中存储的系统私钥,但是要求的权限太高了,本来就可以为所欲为了

http://localhost/api/v1/authentication/connection-token/?token=_SETTING_TERMINAL_HOST_KEY

jumpserver_rce's People

Contributors

slzdude avatar

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.