Re:Java's URL.equals() Performs DNS Resolution
by inetknght on Wednesday December 11, 2019 @03:51PM
(#21766698)
Your 'a' case is still common.
[ Parent
| on HN ]
Re:Java's URL.equals() Performs DNS Resolution
by edw on Wednesday December 11, 2019 @04:32PM
(#21767010)
Perversely, a well-timed DNS record update and cache expiry could make a URL not-equal to another URL made from the same string of characters.
Re:Java's URL.equals() Performs DNS Resolution
by throwawaymath on Wednesday December 11, 2019 @04:36PM
(#21767033)
That's the essence of a DNS rebinding attack, which can be used to bypass server-side request forgery vulnerability mitigations.
Re:Java's URL.equals() Performs DNS Resolution
by znep on Wednesday December 11, 2019 @04:56PM
(#21767198)
I might be wrong, it was a long time ago, but IIRC a different DNS rebinding attack was actually part of the reason this behavior was introduced to the URL class, to help protect against such attacks in Java Applets.