mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-02-02 08:43:09 +08:00
* fuzz: rename 'filters' -> 'pre-condition'
* code proto: pre-condition + integration test
* feat: dsl document generator
* update dsl page header
* fix lint error
* add js defined helper funcs in docs
* remove panic recovery unless its for third party(go-rod,goja)
* handle dynamic values flattening edgecase in flow+multiprotocol
* fix order of kv in form-data (failing test)
* fix template loading counters
* Revert "handle dynamic values flattening edgecase in flow+multiprotocol"
This reverts commit 58fdd4faf7.
* fix flow iteration using 'iterate'
37 lines
781 B
YAML
37 lines
781 B
YAML
id: flow-iterate-one-value-flow
|
|
|
|
info:
|
|
name: Test Flow Iterate One Value Flow
|
|
author: pdteam
|
|
severity: info
|
|
description: |
|
|
If length of template.extracted variable is not know, i.e it could be an array of 1 or more values, then iterate function
|
|
should be used to iterate over values because nuclei by default converts array to string if it has only 1 value.
|
|
|
|
flow: |
|
|
http(1)
|
|
for(let value of iterate(template.extracted)){
|
|
set("value", value)
|
|
http(2)
|
|
}
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}"
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: extracted
|
|
internal: true
|
|
regex:
|
|
- "[ok]+"
|
|
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/{{value}}"
|
|
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "ok" |