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

Header key value split at ':' cuts URL value off #7

Open
pajoda opened this issue Jan 3, 2021 · 1 comment
Open

Header key value split at ':' cuts URL value off #7

pajoda opened this issue Jan 3, 2021 · 1 comment

Comments

@pajoda
Copy link

pajoda commented Jan 3, 2021

Hi,

thanks for this free tool.
I just had a special case in which I specifically had to copy the value of the requests referer header. Let's assume it was https://google.com/search.

Because of this code, the value will only span from the first double dot to the second double dot.

So instead of Referer: https://google.com/search, it sends Referer: https. I could bypass it for myself with //google.com/search, which did let my requests pass then.

Possible fixes: put together all the pieces after piece 0 (header name) again, possibly use a regex to separate the first part in front of the double dot from the rest, limit the amount of splits initially (https://golang.org/pkg/strings/#SplitN).

@bubby963
Copy link

Same issue here. My go around was to proxy through BurpSuite and then use BurpSuite's Match and Replace tool to append the colon and trailing characters. Hopefully that will help anyone with the same issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants