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

[BUG] Workflows with mixed templates not passing extracted value to subtemplates which uses (python) code #5867

Open
1 task done
xsnort opened this issue Dec 1, 2024 · 0 comments
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@xsnort
Copy link

xsnort commented Dec 1, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

Current Behavior

HI folk! I was experimenting with latest nuclei (3.3.6) for a while an noticed that feature WORKFLOWS is NOT working as expected as it's described in #2576
That being said, when you create workflows using several subtemplates if there code based template in one of subtemplates extractors from template is NOT PASSING to code based templates?
BTW, I've created mixed templates where template is using http matchers and extractors with names if that matches condition that suppose to pass extracted variable to code using python code template.

Expected Behavior

template should pass extractor variable to code based template so that one could refer to extracted parameter using code in python:
os.getenv('extracted')

Steps To Reproduce

  1. Run nuclei -w custom_workflow_template.yaml -u target

Relevant log output

Environment

- OS: Linux
- Nuclei: 3.3.6
- Python: 3.10.12

Anything else?

No response

@xsnort xsnort added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Dec 1, 2024
@xsnort xsnort changed the title [BUG] ... [BUG] Workflows with mixed templates not passing extracted value to subtemplates which used code Dec 1, 2024
@xsnort xsnort changed the title [BUG] Workflows with mixed templates not passing extracted value to subtemplates which used code [BUG] Workflows with mixed templates not passing extracted value to subtemplates which uses (python) code Dec 1, 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

No branches or pull requests

1 participant