reactphp / dns

Async DNS resolver for ReactPHP.

Home Page:https://reactphp.org/dns/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider implementing random case to increase message entropy (0x20 hack)

clue opened this issue · comments

Implementing random case for outgoing DNS queries can help improve message entropy and significantly reduce the risk for DNS poisoning attacks for certain scenarios.

Links for the reference:

This is particularly relevant for UDP queries (the default) and may be less so for in-flight messages over connection oriented protocols (#19 and #80).

I'm not working on this at the moment, but figured it's worth posting this here anyway. In case anybody feels like picking this up, PRs would be much appreciated 👍

Consider using a CSPRNG as a first counter-measure first, PR already exists in #65.

@kelunik I agree and have no use for this beyond the CSPRNG that has been implemented via #101, so I believe this has been answered and will close this for now 👍