nuclei: panic: runtime error: invalid memory address or nil pointer dereference (in v2.9.3-dev)

Nuclei version:

v2.9.3-dev (development) (downloaded 0427)

Current Behavior:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1540f5b]

goroutine 152321 [running]:
github.com/projectdiscovery/tlsx/pkg/tlsx/ztls.(*Client).ConnectWithOptions(0xc00ba4ebb8, {0xc00cb0d290, 0x10}, {0xc00cb0d290, 0x10}, {0xc00cb0d2a1, 0x4}, {{0x0, 0x0}, {0x0, ...}, ...})
        /home/myhomedir/go/pkg/mod/github.com/projectdiscovery/tlsx@v1.0.7/pkg/tlsx/ztls/ztls.go:153 +0x5bb
github.com/projectdiscovery/tlsx/pkg/tlsx/auto.(*Client).ConnectWithOptions(0xc00ba4ebd0, {0xc00cb0d290, 0x10}, {0xc00cb0d290, 0x10}, {0xc00cb0d2a1, 0x4}, {{0x0, 0x0}, {0x0, ...}, ...})
        /home/myhomedir/go/pkg/mod/github.com/projectdiscovery/tlsx@v1.0.7/pkg/tlsx/auto/auto.go:49 +0x178
github.com/projectdiscovery/tlsx/pkg/tlsx.(*Service).ConnectWithOptions(0xc00ba4eb88, {0xc00cb0d290, 0x10}, {0xc00cb0d290, 0x10}, {0xc00cb0d2a1, 0x4}, {{0x0, 0x0}, {0x0, ...}, ...})
        /home/myhomedir/go/pkg/mod/github.com/projectdiscovery/tlsx@v1.0.7/pkg/tlsx/tlsx.go:74 +0x243
github.com/projectdiscovery/tlsx/pkg/tlsx.(*Service).Connect(...)
        /home/myhomedir/go/pkg/mod/github.com/projectdiscovery/tlsx@v1.0.7/pkg/tlsx/tlsx.go:60
github.com/projectdiscovery/nuclei/v2/pkg/protocols/ssl.(*Request).ExecuteWithResults(0xc002b347e0, 0xc00836efa0, 0x7f9cd869f908?, 0x7f9d1aa9e5b8?, 0xc008b06750)
        /home/myhomedir/go/pkg/mod/github.com/projectdiscovery/nuclei/v2@v2.9.1-0.20230426184535-78f1ade6c698/pkg/protocols/ssl/ssl.go:218 +0x62d
github.com/projectdiscovery/nuclei/v2/pkg/templates.(*ClusterExecuter).Execute(0xc005fced00, 0xc00836ef20)
        /home/myhomedir/go/pkg/mod/github.com/projectdiscovery/nuclei/v2@v2.9.1-0.20230426184535-78f1ade6c698/pkg/templates/cluster.go:245 +0x22d
github.com/projectdiscovery/nuclei/v2/pkg/core.(*Engine).executeTemplateWithTargets.func2.1(0x6203ca?, 0x0?, 0xc00836e720)
        /home/myhomedir/go/pkg/mod/github.com/projectdiscovery/nuclei/v2@v2.9.1-0.20230426184535-78f1ade6c698/pkg/core/executors.go:128 +0x296
created by github.com/projectdiscovery/nuclei/v2/pkg/core.(*Engine).executeTemplateWithTargets.func2
        /home/myhomedir/go/pkg/mod/github.com/projectdiscovery/nuclei/v2@v2.9.1-0.20230426184535-78f1ade6c698/pkg/core/executors.go:105 +0x4f8

Expected Behavior:

no crash

Steps To Reproduce:

sudo go/bin/nuclei -no-interactsh -rl 50 -list listoftargets.txt

Anything else:

this is NOT the same error I reported a few hours ago (https://github.com/projectdiscovery/nuclei/issues/3617) that was related with interactsh. This is a new issue still not fixed in v2.9.3-dev (development)

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

Thanks looks like the issue is fixed in patched version of tlsx we will merge this patch in nuclei . and this should be resolved in next bug fix release cc: @ehsandeep