当前位置:网站首页>CVE-2020-10199 Nexus Repository Manager3远程命令执行漏洞复现
CVE-2020-10199 Nexus Repository Manager3远程命令执行漏洞复现
2022-07-17 05:03:00 【wavesky111】
一、漏洞概述
nexus的全称是Nexus Repository Manager,是Sonatype公司的一个产品。它是一个强大的仓库管理器,极大地简化了内部仓库的维护和外部仓库的访问。主要用它来搭建公司内部的maven私服。但是它的功能不仅仅是创建maven私有仓库这么简单,还可以作为nuget、docker、npm、bower、pypi、rubygems、git lfs、yum、go、apt等的私有仓库,功能非常强大。——大佬链接:https://zhuanlan.zhihu.com/p/353955349
二、影响版本
Nexus Repository Manager OSS/Pro 3.x <= 3.21.1
三、漏洞原理
在 Nexus Repository Manager OSS/Pro 3.21.1 及之前的版本中,由于某处功能安全处理不当,导致经过授权认证的攻击者,可以在远程通过构造恶意的 HTTP 请求,在服务端执行任意恶意代码、执行了不安全的EL表达式,从而获取到系统权限。
CVE-2020-10199的漏洞需要普通用户权限即可触发,而CVE-2020-10204则需要管理员权限。
补充:EL表达式——el表达式语言,Java统一表达式语言(英语:Unified Expression Language,简称JUEL)是一种特殊用途的编程语言,主要在Java Web应用程序用于将表达式嵌入到web页面。在JSP中访问模型对象是通过EL表达式的语法来表达。所有EL表达式的格式都是以“${}”表示。例如,${ userinfo}代表获取变量userinfo的值。
四、漏洞复现环境
Kali Linux + Vulfocus
渗透机:Kali Linux
靶机:Vulfocus
五、实验步骤
1.开启镜像环境,访问页面


2.使用账号id:admin password:admin登录账号

3.brup抓包且构造如下数据包,执行6*6*6(此时虚拟机太卡了,重新启动了一下,所以端口和环境都换了一下)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|

4.把执行6*6*6修改为创建一个Nexus文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|

5.监听指定端口,执行反弹shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|

6.能看到之前创建的Nexus文件和flag

六、修复方式
根据官方跟新文档,升级至最新版本——https://help.sonatype.com/repomanager3
七、写于后面
此漏洞复现的意义主要还是多一个思路,毕竟涉及范围并不是特别广。当然更重要的还是对于linux的深入学习、理解和使用吧,准备新开一个linux学习专栏~
https://mp.weixin.qq.com/s/CAtsX3yP81mULbMDTo0J1A——一位大佬整理的该漏洞复现过程中的原理以及超级底层的讲解,超级棒,引用于此方便学习
边栏推荐
- 类对象自动注入属性操作工具
- Construction and application of knowledge atlas de (V): knowledge reasoning
- 网址在线封装APK系统源码
- UE-插件 ElectronicNodes 5.0.0/4.23-4.27
- 三种高并发方式实现i++
- DSL query document
- fastjson、jackjson、gson区别和注意点
- OLTP Load Performance Optimization Practice
- Construction and application of knowledge map de (VII): large scale knowledge map pre training
- Basic operations of index library operation
猜你喜欢
随机推荐
Some concepts of ES
Expected to replace deepfake? Uncover this year's super popular nerf Technology
Tidb learning
Mongo Db聚合操作和索引
Notes on Advanced Mathematics: selected exercises of Wu Yue
简洁UI好玩的文字转换emoji表情微信小程序支持句子词语转换_源码
3.RestClient查询文档
根据日期重新排列数据js
CKA 核心知识点概述
中台的订单系统
用FastApi进行WEB开发
Hightec new aurix tc37x demo project
Load balancer ribbon practice
浅聊链路追踪
Notes for Resume Writing
Mysql database table a data synchronization to table b
NoSQL概述
Warriors of the Visual Studio, Assemble! (warriors of visual studio, assemble!) Original 19:40:00 on July 12, 2009 label: compilation /mic
Simple UI funny text conversion Emoji expression wechat applet supports sentence word conversion_ Source code
Tasking new aurix tc37x demo project









