Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop-at-first-match + payloads doesn't work with flow #4744

Closed
ehsandeep opened this issue Feb 10, 2024 · 0 comments · Fixed by #4752
Closed

stop-at-first-match + payloads doesn't work with flow #4744

ehsandeep opened this issue Feb 10, 2024 · 0 comments · Fixed by #4752
Assignees
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@ehsandeep
Copy link
Member

Nuclei version:

latest | dev

Current Behavior:

stop-at-first-match with payloads doesn't work with flow.

Expected Behavior:

stop-at-first-match works as expected with flow.

Steps To Reproduce:

id: flow-spm-bug

info:
  name: Test HTTP Template
  author: pdteam
  severity: info

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}/{{randstr}}"

    matchers:
      - type: status
        status:
          - 404
        internal: true

  - method: GET
    path:
      - "{{BaseURL}}/{{paths}}"

    payloads:
      paths:
        - gg
        - gg
        - gg

    stop-at-first-match: true
    matchers:
      - type: status
        status:
          - 404
echo https://example.com | nuclei -t test.yaml

[flow-spm-bug] [http] [info] https://example.com/gg [paths="gg"]
[flow-spm-bug] [http] [info] https://example.com/gg [paths="gg"]
[flow-spm-bug] [http] [info] https://example.com/gg [paths="gg"]
[flow-spm-bug] [http] [info] https://example.com/gg [paths="gg"]
[flow-spm-bug] [http] [info] https://example.com/gg [paths="gg"]

Expected:

echo https://example.com | nuclei -t test.yaml

[flow-spm-bug] [http] [info] https://example.com/gg [paths="gg"]

Anything else:

it works as expected when used without payloads, so it has something to do when flow is used with payloads combination.

@ehsandeep ehsandeep added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Feb 10, 2024
@tarunKoyalwar tarunKoyalwar self-assigned this Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants