KVR Vishnu and Mzack9999
a2e403a1d8
fix(core): avoid nested workflow deadlock at template concurrency limit ( #8076 )
...
* fix(core): avoid nested workflow deadlock at template concurrency limit
Release a workflow step's AdaptiveWaitGroup slot before acquiring slots
for its children. Matching nested parents previously held a slot while
blocked on AddWithContext, so when their count reached TemplateThreads
the workflow hung forever.
Fixes #8074
* fix workflow
---------
Co-authored-by: Mzack9999 <[email protected] >
2026-11-06 23:44:28 +01:00
Mzack9999
7496794e58
honour cancellation
2026-09-05 12:42:01 +04:00
Dwi Siswanto
805bcfe76f
fix(workflow): propagate context to child & race steps
...
Workflow inputs get updated with extracted values,
but later executors don't refresh their template
contexts from that state. Child subtemplates reuse
the same input object, letting sibling state leak
across concurrent executions. HTTP race requests
also ignore dynamic values when building requests.
Fix this by syncing the current workflow input
into each executor's template context, cloning
inputs passed to subtemplates, and forwarding
dynamic values to race request generation.
Fixes #5399
Signed-off-by: Dwi Siswanto <[email protected] >
2026-05-08 02:59:49 +07:00
Dwi Siswanto
69c831bad2
refactor(core): keep workflow exec seq
...
Signed-off-by: Dwi Siswanto <[email protected] >
2025-11-02 21:35:28 +07:00
Dwi Siswanto
f544ea706c
Revert "introducing workflow sequential mode"
...
This reverts commit 1093bbc62d .
2025-11-02 21:24:40 +07:00
Mzack9999
1093bbc62d
introducing workflow sequential mode
2025-11-02 21:24:29 +07:00
Dwi Siswanto
133e8b98c0
fix(core): race cond in workflow execution
...
caused by shared context callbacks.
it was exposed after adding concurrent exec to
workflow processing and occurred when multiple
goroutines attempted to write to the same
`ctx.OnResult` callback field simultaneously,
causing data races during workflow template exec.
Signed-off-by: Dwi Siswanto <[email protected] >
2025-11-02 21:24:28 +07:00
Dwi Siswanto
17360cb6e4
fix: restore parallel processing in workflow & file proto
...
add missing `go` keyword to anonymous funcs that
were intended to run as goroutines but were
executing synchronously instead.
Fixes #6492
Signed-off-by: Dwi Siswanto <[email protected] >
2025-11-02 21:24:26 +07:00
Dwi Siswanto
052fd8b79a
feat(hosterrorscache): add Remove and MarkFailedOrRemove methods ( #5984 )
...
* feat(hosterrorscache): add `Remove` and `MarkFailedOrRemove` methods
and also deprecating `MarkFailed`
Signed-off-by: Dwi Siswanto <[email protected] >
* refactor(*): unwraps `hosterrorscache\.MarkFailed` invocation
Signed-off-by: Dwi Siswanto <[email protected] >
* feat(hosterrorscache): add sync in `Check` and `MarkFailedOrRemove` methods
* test(hosterrorscache): add concurrent test for `Check` method
* refactor(hosterrorscache): do NOT change `MarkFailed` behavior
Signed-off-by: Dwi Siswanto <[email protected] >
* feat(*): use `MarkFailedOrRemove` explicitly
Signed-off-by: Dwi Siswanto <[email protected] >
---------
Signed-off-by: Dwi Siswanto <[email protected] >
2025-01-31 15:46:57 +05:30
Tarun Koyalwar
1f945d6d50
consider protocolType in max host error ( #5668 )
...
* consider protocolType in max host error
* add mutex when updating internal-event
2024-09-28 18:50:35 +05:30
Levente Kováts
6347efa590
Clone Input when the workflow execution forks ( #5621 )
...
* clone Input when the workflow forks, add integration test
* fix line endings
2024-09-19 19:02:03 +05:30
Tarun Koyalwar and Sandeep Singh
23bd0336fb
multiple bug fixes + performance improvements ( #5148 )
...
* prototype errkit
* complete errkit implementation
* add cause to all timeouts
* fix request timeout annotation @timeout
* increase responseHeaderTimeout to 8 for stability
* rawhttp error related improvements
* feat: add port status caching
* add port status caching to http
* migrate to new utils/errkit
* remote dialinterface + error cause
* debug dir support using .gitignore debug-*
* make nuclei easy to debug
* debug dir update .gitignore
* temp change (to revert)
* Revert "temp change (to revert)"
This reverts commit d3131f7777 .
* use available context instead of new one
* bump fastdialer
* fix hosterrorscache + misc improvements
* add 'address' field in error log
* fix js vague errors + pgwrap driver
* fix max host error + misc updates
* update tests as per changes
* fix request annotation context
* remove closed dialer reference
* fix sdk panic issue
* bump retryablehttp-go,utils,fastdialer
---------
Co-authored-by: Sandeep Singh <[email protected] >
2024-05-25 00:29:04 +05:30
Ice3man and Tarun Koyalwar
0b82e8b7aa
feat: added support for context cancellation to engine ( #5096 )
...
* feat: added support for context cancellation to engine
* misc
* feat: added contexts everywhere
* misc
* misc
* use granular http timeouts and increase http timeout to 30s using multiplier
* track response header timeout in mhe
* update responseHeaderTimeout to 5sec
* skip failing windows test
---------
Co-authored-by: Tarun Koyalwar <[email protected] >
2024-04-25 15:37:56 +05:30
Levente Kováts
0d5e26d7bd
run workflow subtemplates with new ScanContext ( #5031 )
...
fix projectdiscovery/nuclei#4933
2024-04-12 04:20:11 +05:30
Mzack9999
a8d1393e96
init- using resizable components
2024-04-03 17:50:57 +02:00
Dogan Can Bakir
ce5df9cc02
introduce scan context ( #4373 )
...
* introduce scan context
* minor
* add joined errors to resultevents
* change `executor` funcs' signature
* fix tests
* join errors in `LogError` func
* change func signature
* add guard
2023-11-28 00:24:45 +05:30
Tarun Koyalwar and sandeep
dc44105baf
nuclei v3 : misc updates ( #4247 )
...
* use parsed options while signing
* update project layout to v3
* fix .gitignore
* remove example template
* misc updates
* bump tlsx version
* hide template sig warning with env
* js: retain value while using log
* fix nil pointer derefernce
* misc doc update
---------
Co-authored-by: sandeep <[email protected] >
2023-10-17 17:44:13 +05:30