projectdiscovery/nuclei allows unsigned code template execution through workflows
High severity
GitHub Reviewed
Published
Jul 17, 2024
in
projectdiscovery/nuclei
•
Updated Aug 6, 2024
Description
Published by the National Vulnerability Database
Jul 17, 2024
Published to the GitHub Advisory Database
Jul 17, 2024
Reviewed
Jul 17, 2024
Last updated
Aug 6, 2024
Summary
Find a way to execute code template without -code option and signature.
Details
write a
code.yaml
:using nc to listen on 80:
execute PoC template with nuclei:
and nc will get
id
command output.We use
-w
to specify a workflow file, not-t
to template file. and notice there is aworkflows
field in code.yaml to pretend to be a workflow file.Test in Linux and Nuclei v3.2.9
Impact
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)
References