Lucene search
K

WordPress example.html 跨站脚本漏洞

🗓️ 12 May 2015 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 67 Views

WordPress example.html DOM XSS vulnerability affecting millions of site

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 = '1823'  # vul ID
    version = '1'
    author = ['Evi1m0']
    vulDate = '2015-05-07'
    createDate = '2015-05-07'
    updateDate = '2015-05-07'
    references = ('http://wptavern.com/xss-vulnerability-in-jetpack-and-the-twenty-fif'
                  'teen-default-theme-affects-millions-of-wordpress-users')
    name = 'WordPress example.html 跨站脚本漏洞 POC'
    appPowerLink = 'https://www.wordpress.org/'
    appName = 'WordPress'
    appVersion = ''
    vulType = 'Cross Site Scripting'
    desc = '''
           jQuery 预期的 CSS 选择器在其他情况下可以用于创建 HTML 元素,
           如果编码不当,将会导致产生 DomXSS 漏洞。
           '''
    # the sample sites for examine
    samples = ['']


    def _verify(self):
        result = {}
        target_url = '%s/wp-content/themes/twentyfifteen/genericons/example.html' % self.url
        request = req.get(target_url)
        if request.status_code == 200:
            if '/jquery/1.7.2/jquery.min.js"></script>' in request.content:
                result['VerifyInfo'] = {}
                result['VerifyInfo']['URL'] = target_url
        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