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

duplicated parameters in self contained templates #3610

Closed
tarunKoyalwar opened this issue Apr 25, 2023 · 0 comments · Fixed by #3608
Closed

duplicated parameters in self contained templates #3610

tarunKoyalwar opened this issue Apr 25, 2023 · 0 comments · Fixed by #3608
Assignees
Labels
regression Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@tarunKoyalwar
Copy link
Member

Nuclei version:

dev | main

Current Behavior:

  • if self-contained template contains parameters . those are duplicated in actual outgoing http request

Expected Behavior:

Steps To Reproduce:

id: example-self-contained-input

info:
  name: example-self-contained
  author: pd-team
  severity: info

self-contained: true
requests:
  - raw:
      - |
        GET http://127.0.0.1:5431/?something=here&key=value HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        words:
          - This is self-contained response%                                                               
$ nuclei -t self-contained-with-params.yaml -debug-req

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v2.9.2

		projectdiscovery.io

[INF] Current nuclei version: v2.9.2 (latest)
[INF] Current nuclei-templates version: v9.4.3 (latest)
[INF] New templates added in latest release: 55
[INF] Templates loaded for current scan: 1
[INF] [example-self-contained-input] Dumped HTTP request for http://127.0.0.1:5431/?key=value&key=value&something=here&something=here

GET /?key=value&key=value&something=here&something=here HTTP/1.1
Host: 127.0.0.1:5431
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2919.83 Safari/537.36
Connection: close
Accept-Encoding: gzip

[WRN] [example-self-contained-input] Could not execute request for : GET http://127.0.0.1:5431/?key=value&key=value&something=here&something=here giving up after 2 attempts: Get "http://127.0.0.1:5431/?key=value&key=value&something=here&something=here": could not connect to any address found for host
[INF] No results found. Better luck next time!

Anything else:

cc: @DhiyaneshGeek

@tarunKoyalwar tarunKoyalwar added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Apr 25, 2023
@tarunKoyalwar tarunKoyalwar self-assigned this Apr 25, 2023
@tarunKoyalwar tarunKoyalwar linked a pull request Apr 25, 2023 that will close this issue
4 tasks
@ehsandeep ehsandeep added this to the nuclei v2.9.3 (bugfix) milestone Apr 26, 2023
@ehsandeep ehsandeep added Status: Completed Nothing further to be done with this issue. Awaiting to be closed. regression labels Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Status: Completed Nothing further to be done with this issue. Awaiting to be closed. 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