Skip to content

Nuclei v3.2.1 // panic: assignment to entry in nil map #4898

@ptf-laurentvetter

Description

@ptf-laurentvetter

Nuclei v3.2.1 panics and crashes during a scan:

nuclei -nc -stats -s low -target https://www.pentestfactory.de:8443 -v

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.2.1

                projectdiscovery.io

[VER] Started metrics server at localhost:9092
[WRN] [phpsys-info] Could not execute request for https://www.pentestfactory.de:8443: [:RUNTIME] got err while executing https://www.pentestfactory.de:8443/phpsysinfo/index.php?disp=bootstrap <- context deadline exceeded
panic: assignment to entry in nil map

goroutine 103 [running]:
github.com/projectdiscovery/nuclei/v3/pkg/templates.(*ClusterExecuter).Execute.func1(0xc00a3f6af0)
        github.com/projectdiscovery/nuclei/v3/pkg/templates/cluster.go:257 +0x1a6
github.com/projectdiscovery/nuclei/v3/pkg/protocols/http.(*Request).ExecuteWithResults.func1.1(0xc00a3f6af0)
        github.com/projectdiscovery/nuclei/v3/pkg/protocols/http/request.go:436 +0x435
github.com/projectdiscovery/nuclei/v3/pkg/protocols/http.(*Request).executeRequest(0xc0033590e0, 0xc008270288, 0xc008b9eaa0, 0xc0085e64e0, 0x0, 0xc0096a1b18, 0x0?)
        github.com/projectdiscovery/nuclei/v3/pkg/protocols/http/request.go:706 +0x3562
github.com/projectdiscovery/nuclei/v3/pkg/protocols/http.(*Request).ExecuteWithResults.func1({0xc0043b6d50, 0xb}, 0xe367eb55199dc178?, 0x80?)
        github.com/projectdiscovery/nuclei/v3/pkg/protocols/http/request.go:409 +0x56b
github.com/projectdiscovery/nuclei/v3/pkg/protocols/http.(*Request).ExecuteWithResults(0xc0033590e0, 0xc008270288, 0xc0085e6510, 0xc0085e64e0, 0xc0082702a0)
        github.com/projectdiscovery/nuclei/v3/pkg/protocols/http/request.go:473 +0x36a
github.com/projectdiscovery/nuclei/v3/pkg/templates.(*ClusterExecuter).Execute(0xc006afd5c0, 0xc0025b2280)
        github.com/projectdiscovery/nuclei/v3/pkg/templates/cluster.go:254 +0x14a
github.com/projectdiscovery/nuclei/v3/pkg/core.(*Engine).executeTemplateWithTargets.func2.1(0x22f5907?, 0x0?, 0xc006b16e40)
        github.com/projectdiscovery/nuclei/v3/pkg/core/executors.go:132 +0x1d8
created by github.com/projectdiscovery/nuclei/v3/pkg/core.(*Engine).executeTemplateWithTargets.func2 in goroutine 102
        github.com/projectdiscovery/nuclei/v3/pkg/core/executors.go:108 +0x459

Using Nuclei v3.2.0 works flawlessly for the same target url and command line arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions