TemplateLoader.parse() overwrites per-step timeout with global CLI --timeout value
TemplateLoader.parse() in nettacker/core/template.py recursively walks the entire module content tree and, for any dict key matching a name present in module_inputs (the CLI options), overwrites it with the global CLI value — with no awareness of structural context:
for key in copy.deepcopy(module_content): if key in module_inputs: if module_inputs[key]: module_content[key] = module_inputs[key]
Since --timeout is a global CLI option (default 3.0, config.py:184), any step's timeout: field in a module YAML gets silently overwritten with the global default, regardless of what the module specifies. This has likely gone unnoticed because most modules use timeout: 3 already (matching the default), but any module needing a genuinely different per-step timeout (e.g. a long-polling endpoint needing 30s) will have it silently clobbered back to 3s.
Confirmed via direct code trace and reproduction while developing a new vulnerability module (#1653) whose step 4 polls a streaming events endpoint that needs ~30s but was consistently timing out at 3s regardless of the module's own timeout: 30 setting.
Workaround: pass --timeout 30 (or higher) globally when running the affected module, which is not ideal since it affects all steps in the scan, not just the one that needs it.
Suggested fix direction (not implemented, flagging for maintainer guidance per the core-change contribution policy): parse() should distinguish between module-structural keys (method, timeout, headers, etc.) and genuine {template} placeholders, rather than doing a blanket key-name match against CLI options anywhere in the tree.
Duplicate of #1515