fix: nuclei scan nil pointer dereference

Fixed nil pointer dereference issues in the nuclei scan running as a
module
This commit is contained in:
vmfunc
2026-01-07 15:09:49 +01:00
parent 45f341c97f
commit 66a752d604

View File

@@ -109,7 +109,7 @@ func (m *NucleiModule) Execute(ctx context.Context, target string, opts modules.
}
// Tags
if len(event.Info.Tags.ToSlice()) > 0 {
if !event.Info.Tags.IsEmpty() {
tagStr := ""
for _, tag := range event.Info.Tags.ToSlice() {
if tagStr != "" {
@@ -122,7 +122,7 @@ func (m *NucleiModule) Execute(ctx context.Context, target string, opts modules.
}
// Reference
if len(event.Info.Reference.ToSlice()) > 0 {
if event.Info.Reference != nil && !event.Info.Reference.IsEmpty() {
refStr := ""
for _, ref := range event.Info.Reference.ToSlice() {
if refStr != "" {