Closed ShipeiXu closed 2 years ago
config:
Yes, that's not wrong, it's an intentional privacy feature. The main point of the DoH standard was privacy, and message size is a part of that.
You can find more information about padding around RFCs like https://www.rfc-editor.org/rfc/rfc8467.html
Bug,this increases the amplification attack。
Amplification is only considered for reflection attacks, i.e. when source address is spoofed to another network path. That is not possible with DoH (or DoT).
I forgot to say, the padding is configurable: https://knot-resolver.readthedocs.io/en/stable/daemon-bindings-net_tlssrv.html#net.tls_padding
As shown below, The addition area of the response packet is very large. has a lot of padding bytes