How to steal a developer's local database
These have a fairly simple fix that you can implement yourself as a developer. Don't let your services listen on (AKA bind to) 0.0.0.0 or 127.0.0.1.<p>The entire 127.0.0.0/8 block is dedicated to the loopback interface [1]. That's 2^24 - 2 unique IP addresses you can choose at random. This basically eliminates the feasibility of the DNS rebinding component, as it would take prohibitively long to find the actual loopback address that your services have bound to.<p>It's important to note that this is much more effective than not using the default port. It's <i>much</i> faster to iterate all 2^16 ports on the same IP address than it is to wait for DNS TTL to expire so you can rebind to another IP address.<p>As a bonus, you don't have to worry about port collisions when nobody's allowed to listen on 0.0.0.0. Everybody can use 8080 if they want.<p>[1] <a href="https://tools.ietf.org/html/rfc5735#section-3" rel="nofollow">https://tools.ietf.org/html/rfc5735#section-3</a>