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

SEC-1076 Add URL validator #94

Merged
merged 8 commits into from
Mar 28, 2022
Merged

SEC-1076 Add URL validator #94

merged 8 commits into from
Mar 28, 2022

Conversation

sc-peter
Copy link
Contributor

@sc-peter sc-peter commented Mar 24, 2022

Adding initial support for URL validation.

Validate a string for a valid URL format. This is a loose validation, focusing on safe characters in the URL and basic format. This validator does not validate if domains are valid and also accepts IP addresses and localhost values.
When validation passes, it does not result in a URL that is necessarily safe to fetch/resolve, only that the characters in the provided string are expected in a URL. Additional validations are required if you need to fetch the URL on the server to prevent SSRF including access to internal URLs.

PLEASE NOTE: public repo.

@sc-peter sc-peter marked this pull request as ready for review March 24, 2022 03:51
@sc-peter sc-peter requested a review from a team as a code owner March 24, 2022 03:51
@sc-peter sc-peter requested review from parmaviolet and sc-steven and removed request for a team March 24, 2022 03:51
Copy link

@rayrenvotex rayrenvotex left a comment

Choose a reason for hiding this comment

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

LGTM

@sc-peter sc-peter merged commit bff8c21 into master Mar 28, 2022
@sc-peter sc-peter deleted the SEC-1076 branch March 28, 2022 01:11
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.

None yet

2 participants