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

Added additional proxy URL verification #574

Merged
merged 2 commits into from
Feb 3, 2023

Conversation

denandz
Copy link
Contributor

@denandz denandz commented Jul 29, 2022

Description

This pull request adds additional checking for proxy and replay-proxy parameters, as well as adding some tests to make sure the parser is working how it's expected to. Go's url.parse alone does not provide enough verification to determine whether a given URL matches the requirements for a proxy passed to a HTTP transport.

Fixes: #573

@xbol0 xbol0 mentioned this pull request Oct 9, 2022
Copy link
Member

@joohoi joohoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with this proposed small nit

pkg/ffuf/optionsparser.go Show resolved Hide resolved
pkg/ffuf/optionsparser.go Outdated Show resolved Hide resolved
Co-authored-by: Joona Hoikkala <joohoi@users.noreply.github.com>
@denandz
Copy link
Contributor Author

denandz commented Feb 2, 2023

LGTM with this proposed small nit

good catch! Committed.

Copy link
Member

@joohoi joohoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix!

@joohoi joohoi merged commit 39c8934 into ffuf:master Feb 3, 2023
joohoi added a commit that referenced this pull request Feb 3, 2023
* Added additional proxy URL verification

* Update pkg/ffuf/optionsparser.go

Co-authored-by: Joona Hoikkala <joohoi@users.noreply.github.com>

---------

Co-authored-by: Joona Hoikkala <joohoi@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

ffuf silently ignores invalid proxy options
2 participants