Skip to content

Conversation

@zetlen
Copy link
Collaborator

@zetlen zetlen commented May 3, 2022

VALID_DOMAIN regex had exponential-time vulnerability on certain strings.

Switched from vulnerable VALID_DOMAIN regex to is-valid-domain lib, which uses a known list of TLDs.

@zetlen zetlen merged commit b076321 into master May 3, 2022
@mcalthrop-lego
Copy link

Hi @zetlen

Could you elaborate on the reason for disallowing subdomains?

This used to work well in our setup, and now does not, as we require certificate generation for subdomains.

From what I can see, this should not affect the ReDoS issue the original PR mitigates.

@NewFuture
Copy link
Contributor

@zetlen @davewasmer it breaks subdomain 😮

@drmcclelland
Copy link

I think this change also also broke "localhost"...

@mcalthrop-lego
Copy link

@zetlen Any thoughts on this?

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.

5 participants