-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
automerge url parameters from input and templates #3010
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example Template to validate id: automerge-parmas
info:
name: Automerge templates
author: pdtm
severity: low
description: Information Disclosure of Garbage Collection
tags: exposure,devops,python
requests:
- method: GET
path:
- "{{BaseURL}}/metrics"
- "{{BaseURL}}?user=admin&key=val"
- "{{BaseURL}}/?user=admin"
- "{{BaseURL}}/django/?user=admin"
matchers:
- type: status
status:
- 200
- raw:
- |
GET /?user=admin HTTP/1.1
Host: {{Hostname}}
Origin: {{BaseURL}}
- |
GET /admin?user=scanme HTTP/1.1
Host: {{Hostname}}
Origin: {{BaseURL}}
- |
GET https://{{Hostname}}/admin HTTP/1.1
Host: {{Hostname}}
- |
GET ?user=scanme HTTP/1.1
Host: {{Hostname}}
matchers:
- type: status
status:
- 200
|
Automerge Params
echo "https://scanme.sh/path?user=pd" | go run . -t ~/test/automerge-params.yaml -silent
[automerge-parmas] [http] [low] https://scanme.sh/path/metrics?user=pd
[automerge-parmas] [http] [low] https://scanme.sh/path?key=val&user=pd&user=admin
[automerge-parmas] [http] [low] https://scanme.sh/path/?user=pd&user=admin
[automerge-parmas] [http] [low] https://scanme.sh/path/django/?user=pd&user=admin
[automerge-parmas] [http] [low] https://scanme.sh/path/?user=pd&user=admin
[automerge-parmas] [http] [low] https://scanme.sh/path/admin?user=pd&user=scanme
[automerge-parmas] [http] [low] https://scanme.sh/path/admin?user=pd
[automerge-parmas] [http] [low] https://scanme.sh/path?user=pd&user=scanme
|
Mzack9999
requested changes
Dec 12, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggesting small code refactor + extra new lines
Mzack9999
approved these changes
Dec 12, 2022
ehsandeep
approved these changes
Dec 13, 2022
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.
Type: Enhancement
Most issues will probably ask for additions or changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
Auto-Merge Parameters and Paths #1392
Ex: https://scanme.sh/?user=pd | nuclei -t some-template.yaml
final url if
some-template.yaml
addsuser=admin
would behttps://scanme.sh/?user=pd&user=admin
Can be Validated Using
Checklist