2

Block Local Network Addresses allows a 192.168.1.1 A record on a clean profile - no rebinding protection

Hello all,

I stumbled across the following behavior just now: I noticed that an external domain returned a private IP which was supposed to be caught by the "Local Network Addresses" feature. To validate this behavior, I've created a new profile, just with the following setting enabled and no further list/allowed/denied domains:

 In the terminal I used the following commands to test the blocking behavior.

Setup a test domain to lookup with the current time to avoid caching: 

host="check-$(date +%s)-192.168.1.1.nip.io."

 

This results in something like "check-1795940104-192.168.1.1.nip.io" which resolves to 192.168.1.1.

 

Then I used doggo (any others like knot work as well) as the DNS client tool to query the new NextDNS profile with:

doggo "$host" A @https://dns.nextdns.io/{PROFILE_ID}/Doggo-direct

 

Which returns the local IP unexpectedly:

 The logs also confirm that this request was not blocked:

Has anyone else observed this? How do I ensure the setting to block local IP resolutions works as expected?

Thanks!

5 replies

null
    • Xavfree
    • 6 hrs ago
    • Reported - view

    Not reassuring.

    Same for me with the ControlD rebind test (NextDNS does not provide a test page)

    I think it would be great to test with the "DNS Rebind Toolkit" front-end JavaScript toolkit for creating DNS rebinding attacks availaible on github.

      • octo
      • 5 hrs ago
      • Reported - view

       

      Thanks for confirming. The rebind test also shows the same results to me. Let's wait and see what other responses there are.

    • NextDNs
    • 3 hrs ago
    • Reported - view

    This domain is excluded because it is a known safe domain that can’t be used for rebinding attacks. 

      • octo
      • 57 min ago
      • Reported - view

       Thanks for this clarification, I did not know there are some exclusions other than the ones in the custom allow list. I would assume the same is true for the bigdig.energy domain which is used for the test mentioned above? Appreciate the fast response (and the latest updates) 🙂

      • NextDNs
      • 50 min ago
      • Reported - view

       yes, but this one is a mistake, we will remove it from the exclusion as it can lead to confusion.

Content aside

  • 2 Votes
  • 50 min agoLast active
  • 5Replies
  • 28Views
  • 3 Following