Auto-Merge Parameters and Paths #1392
Replies: 2 comments 3 replies
-
@wdahlenburg Hey, we need to replace |
Beta Was this translation helpful? Give feedback.
-
@wdahlenburg this is now fixed in dev with #3010 |
Beta Was this translation helpful? Give feedback.
-
I find that I'm usually working with a lot of urls that have mixed endings. Some end in paths, others in endpoints, and some with URI parameters.
One thing that I think would go a long ways towards sending better requests would be auto merging parameters and paths.
Currently if I send
https://server.com/search?s=foobar
through the following template I will get a request made forhttps://server.com/search?s=foobar/services/foo
Manually I'd expect the path to be merged and the parameter to be set in the correct location. I'd expect the request to go to
https://server.com/search/services/foo?s=foobar
instead.Similarly if I send the same url through a template that defines additional parameters I'd expect the parameters are joined where possible.
Take a variation of https://github.com/projectdiscovery/nuclei-templates/blob/master/fuzzing/linux-lfi-fuzzing.yaml for example
With this, I'll see a request for
Manually I'd want this to be
For parameters where the param already exists, I think there could be discussion about what the default case should be. Is it fine to replace the predefined parameter? Should both values be submitted? Should the value of the parameter in the template be appended to the url defined value?
A safe default could be to replace it the existing parameter value.
What are some thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions