Replies: 1 comment
|
Your diagnosis still matches current A template-level workaround is to keep dynamic values in Nuclei’s normal runtime variable/DSL path (or extract a broader value first and filter it afterward), rather than embedding a Nuclei template variable inside the jq query itself. Supporting the exact form in the example would require an engine change: either compiling the query after Nuclei variable substitution or explicitly plumbing runtime values into gojq variables. Documenting this limitation would also be useful because the current behavior is easy to mistake for a broken extractor. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When processing a JSON extractor, compiling occurs prior to runtime (compile.go#L33), and as such, templated variables are not processed.
Template example:
Expected behavior:
This always returns a finding as this regular expression is checking if the URL contains any letters/numbers.
Actual behavior:
Never returns, as it is testing for
{{catid}}literally rather than filling the variable.Proposed fixes:
All reactions