All,

As part of a side discussion, I was admonished for my rather flippant
approach to a significant security issue and failure to explain
clearly how it manifests itself..

On Sun, 9 May 2021 at 13:01, Dick Franks <rwfra...@gmail.com> wrote:
>8
>
> Pre-processing of '\\,' into the RFC1035 standard '\,' is
> superficially attractive, but also fraught with danger.
>
> A parser could have some fun with this one:
>
>     $ORIGIN example.com
>     @   SVCB   1 foo
> key6="\032\001\013\184\000\000\000\000\000\000\000\000\\\\,\000"
>     ; a.k.a.   ipv6hint=2001:db8::5c5c:2c00
>

Although a few sharp-eyed people recognised the security implications
immediately, I realise that I should have included the broken result
to illustrate the problem more clearly.

 example.com.    IN    SVCB    ( \# 38 0001     ; 1
    03666f6f076578616d706c6503636f6d 00     ; foo.example.com.
    0006 000f 20010db800000000000000005c2c00 )

instead of the expected:

 example.com.    IN    SVCB    ( \# 39 0001     ; 1
    03666f6f076578616d706c6503636f6d 00     ; foo.example.com.
    0006 0010 20010db800000000000000005c5c2c00 )

Observe that the IPv6 address is shortened to 15 octets.

(Note these results were produced by my development Net::DNS and may
not be repeatable with the latest published version 1.31)



--Dick

_______________________________________________
DNSOP mailing list
DNSOP@ietf.org
https://www.ietf.org/mailman/listinfo/dnsop

Reply via email to