Skip to content

Can you explain the DNS rebinding attack for local development? #19287

Answered by sapphi-red
Nefcanto asked this question in Q&A
Discussion options

You must be logged in to vote

As long as you have the control of to what IP address the domain points for the domain name you use, it would be safe. So in your case,

  • admin.x.local/client.y.local/customer.z.local are written in /etc/hosts and you have the control of it, so it's fine to include them in server.allowedHosts
  • .local is a reserved TLD and will never be registered, so other person cannot point any *.local to an addresss, so it's fine to include .local in server.allowedHosts

The reason why .localhost is included by default and .local is not included by default even though .local is reserved, is just that .local is reserved for a different purpose.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Nefcanto
Comment options

@sapphi-red
Comment options

@Nefcanto
Comment options

@sapphi-red
Comment options

Answer selected by sapphi-red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants