You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The long execution time is due to this unsafe regex:
Resolver.prototype.setServers=setServers;functionsetServers(servers){// cache the original servers because in the event of an error setting the// servers cares won't have any servers available for resolutionconstorig=this._handle.getServers();constnewSet=[];constIPv6RE=/\[(.*)\]/;<----------Quadraticcomplexity
I submitted this via HackerOne for assessment and it was deemed not a likely threat vector. I agree with this assessment, since I really hope most users aren't letting clients set their DNS servers.
However, this is still a potential performance bug. I am working on a PR.
Activity
dns: revise quadratic regex in setServers
dns: improve setServers() errors and performance
dns: improve setServers() errors and performance
dns: improve setServers() errors and performance