projectdiscovery / nuclei-templates

Community curated list of templates for the nuclei engine to find security vulnerabilities.
https://github.com/projectdiscovery/nuclei
MIT License
9.25k stars 2.63k forks source link

[Bug] #610

Closed fernstedt closed 3 years ago

fernstedt commented 3 years ago

Nuclei version v2.2.0

Nuclei template version v7.2.5

cat ~/.nuclei-config.json

{"templates-directory":"/root/nuclei-templates","current-version":"7.2.5","last-checked":"2020-11-11T11:57:14.736884184+01:00"}

Describe the bug

echo jirahost | nuclei -t workflows/jira-exploitaiton-workflow.yaml

                   __     _
 ____  __  _______/ /__  (_)
/ __ \/ / / / ___/ / _ \/ /

/ / / / // / // / / / // //_,_/_//\/_/ v2.2.0

            projectdiscovery.io

[WRN] Use with caution. You are responsible for your actions [WRN] Developers assume no liability and are not responsible for any misuse or damage. [INF] Loading templates... [INF] [jira-exploitaiton-workflow] Jira Exploitaiton workflow (@micha3lb3n) [INF] Using 1 rules (0 templates, 1 workflows) panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x9babf4]

goroutine 22 [running]: github.com/projectdiscovery/nuclei/v2/pkg/executer.makeHTTPClient(0x0, 0xc0000db9a0, 0x0, 0x0, 0x0) /root/go/pkg/mod/github.com/projectdiscovery/nuclei/v2@v2.1.2-0.20201024180747-a824c3f17eca/pkg/executer/executer_http.go:606 +0x134 github.com/projectdiscovery/nuclei/v2/pkg/executer.NewHTTPExecuter(0xc0000db9a0, 0xc000068920, 0xc000164a20, 0x0) /root/go/pkg/mod/github.com/projectdiscovery/nuclei/v2@v2.1.2-0.20201024180747-a824c3f17eca/pkg/executer/executer_http.go:112 +0x57 github.com/projectdiscovery/nuclei/v2/pkg/workflows.(NucleiVar).Call(0xc0000cc460, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7f89fe37f548, 0x0) /root/go/pkg/mod/github.com/projectdiscovery/nuclei/v2@v2.1.2-0.20201024180747-a824c3f17eca/pkg/workflows/var.go:80 +0x55b github.com/d5/tengo/v2.(VM).run(0xc000e88000) /root/go/pkg/mod/github.com/d5/tengo/v2@v2.6.2/vm.go:633 +0x3323 github.com/d5/tengo/v2.(VM).Run(0xc000e88000, 0xc0000d09a0, 0x14a) /root/go/pkg/mod/github.com/d5/tengo/v2@v2.6.2/vm.go:77 +0xcf github.com/d5/tengo/v2.(Compiled).RunContext.func1(0xc0000c7f20, 0xc000e88000) /root/go/pkg/mod/github.com/d5/tengo/v2@v2.6.2/script.go:222 +0x2b created by github.com/d5/tengo/v2.(*Compiled).RunContext /root/go/pkg/mod/github.com/d5/tengo/v2@v2.6.2/script.go:221 +0x233

ehsandeep commented 3 years ago

Hi @math-ematics,

You are running the master version of nuclei which is in active development, so the error, the stable released version is v2.1.1 and can download it from here.

Ice3man543 commented 3 years ago

This is fixed by PR https://github.com/projectdiscovery/nuclei/pull/403. Closing it here for tracking there!