Fixes #6674 /claim #6674

What

Template loader panics when dialers are not initialized for a given executionId. This can happen in non-scanning flows (template listing/display, lazy auth loading, auto tech detection) and should not crash the process.

Change

  • Replace the panic with error-based flow: attempt to initialize dialers via protocolstate.Init(options)
  • If dialers are still unavailable, return a descriptive error so callers can handle it
  • Update lazy auth + auto tech detection callers to propagate/handle the error

Proof

Local tests:

  • go test ./pkg/catalog/loader
  • go test ./internal/runner
  • go test ./pkg/protocols/common/automaticscan

(full terminal output attached in PR comments)

Checklist

  • PR targets dev
  • All checks passed (some workflows are pending maintainer approval)
  • Includes /claim tag for Algora

Summary by CodeRabbit

Release Notes

  • Bug Fixes
    • Improved error handling in template and workflow loading operations to gracefully manage failures with proper error messages instead of causing application crashes, enhancing stability and reliability.

Claim

Total prize pool $200
Total paid $0
Status Pending
Submitted February 07, 2026
Last updated February 07, 2026

Contributors

TH

thecafetron-ctrl

@thecafetron-ctrl

100%

Sponsors

PR

ProjectDiscovery

@projectdiscovery

$100
MA

Madhavan Deepak

@Madhavan-Deepak

$100