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

fix: domain finder #299

Merged
merged 1 commit into from
May 1, 2024
Merged

fix: domain finder #299

merged 1 commit into from
May 1, 2024

Conversation

geisterfurz007
Copy link
Member

Fixes: https://github.com/Yes-Theory-Fam/yestheory.family/security/code-scanning/1

Due to a bad regex, it was previously possible that bad URLs could have been scraped (for example with domains: chatswhatsappweb.com or discord.gg.evil).

The new regex forces anything between the URL scheme and matched domain to be a subdomain and anything after the matched domain to be a path and correctly escapes the period character in the domains to avoid matching other characters.

@geisterfurz007 geisterfurz007 added this pull request to the merge queue May 1, 2024
Merged via the queue into master with commit 59e5012 May 1, 2024
16 checks passed
@geisterfurz007 geisterfurz007 deleted the fix/domain-finder branch May 1, 2024 11:23
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

1 participant