[DNSOP] Re: Security Vulnerabilities in RFC 8484 - DNS Queries over HTTPS (DoH)
Matthias Gierlings <matthias.gierlings@ruhr-uni-bochum.de> Wed, 01 April 2026 15:12 UTC
Return-Path: <matthias.gierlings@ruhr-uni-bochum.de>
X-Original-To: dnsop@mail2.ietf.org
Delivered-To: dnsop@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id EC79DD4DF250 for <dnsop@mail2.ietf.org>; Wed, 1 Apr 2026 08:12:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1775056320; bh=9gxo8WlROU9Z40iYnNmLcTJwdhnq3pvmcBOc11oZcE0=; h=Date:Reply-To:Subject:To:Cc:References:From:In-Reply-To; b=Eu2bpbcQSmh0f8JDOC/TJCfYdilk+mVwrQYtZM6yBHEzVfhC2ut0WscCxGzpmD/6n i9XfZQVFW1/7T5DDddCVS+DdpimLxMx517wEcELa4/hHf/39/EMVbzwr385sqQBFc0 VgaV2579PfSijZGFS2ys2R8U/+ybO03+S5ys0YLw=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -4.401
X-Spam-Level:
X-Spam-Status: No, score=-4.401 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=ruhr-uni-bochum.de
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t-OSgfJ-5ZY7 for <dnsop@mail2.ietf.org>; Wed, 1 Apr 2026 08:11:59 -0700 (PDT)
Received: from out3.mail.ruhr-uni-bochum.de (out3.mail.ruhr-uni-bochum.de [IPv6:2a05:3e00:8:1001::8693:359b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 95230D4DF247 for <dnsop@ietf.org>; Wed, 1 Apr 2026 08:11:59 -0700 (PDT)
Received: from mx3.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by out3.mail.ruhr-uni-bochum.de (Postfix mo-ext) with ESMTP id 4fm7kQ0zqlz8S3f; Wed, 01 Apr 2026 17:11:58 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ruhr-uni-bochum.de; s=mail-2024; t=1775056318; bh=9gxo8WlROU9Z40iYnNmLcTJwdhnq3pvmcBOc11oZcE0=; h=Date:Reply-To:Subject:To:Cc:References:From:In-Reply-To:From; b=WlEhom5N/HhtGAnNV3WKMiMHvWBNL5BNzVeRoqQR0+K7f17ZBS0RJ8QUqULaP9f1E hAlx7vOy538pT2uSpfDhgcSHTWzESi9U27Pwjwruk/3V+4DES6NRf4m87ZgUKfOvXi dMa9LOM/22J58hl7Sgt2gNqGROipx49pB8CEAu0hcdGA5/DMcs+UDaxrXt0xakPxAT FQbazdxjzaD0yRg95kr84eq90mACUW+mp38K50k89BRRb+NFjIOCy5qhq448FFpMWS oJIHWiuUhxSqwQpKI/M1XjisEnxC5LWDBIlsFRuYfl6eoBi4sXBzSlnzXBCuvzJ3Df Ekvc3RKG75fFw==
Received: from out3.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by mx3.mail.ruhr-uni-bochum.de (Postfix idis) with ESMTP id 4fm7kP5s3Yz8S1n; Wed, 01 Apr 2026 17:11:57 +0200 (CEST)
X-RUB-Notes: Internal origin=134.147.42.236
X-Envelope-Sender: <matthias.gierlings@ruhr-uni-bochum.de>
Received: from mail2.mail.ruhr-uni-bochum.de (mail2.mail.ruhr-uni-bochum.de [134.147.42.236]) by out3.mail.ruhr-uni-bochum.de (Postfix mi-int) with ESMTPS id 4fm7kP0b9rz8SDg; Wed, 01 Apr 2026 17:11:57 +0200 (CEST)
X-Virus-Status: Clean
X-Virus-Scanned: clamav-milter 1.5.1 at mx3.mail.ruhr-uni-bochum.de
Received: from [192.168.1.114] (p4fd8f28e.dip0.t-ipconnect.de [79.216.242.142]) by mail2.mail.ruhr-uni-bochum.de (Postfix) with ESMTPSA id 4fm7kN2YwszDgyj; Wed, 01 Apr 2026 17:11:56 +0200 (CEST)
X-Virus-Status: Clean
X-Virus-Scanned: clamav-milter 1.5.1 at mail2.mail.ruhr-uni-bochum.de
Message-ID: <7b98a6cc-acd2-40e7-9108-870e3d727f4f@ruhr-uni-bochum.de>
Date: Wed, 01 Apr 2026 17:11:55 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: "Kevin P. Fleming" <lists.dnsop@kevin.km6g.us>, Robert Edmonds <edmonds@mycre.ws>
References: <7ccfa75d-d6a9-41b7-b8e2-13d8e30153a5@ruhr-uni-bochum.de> <acwsLusbsqaS9a4M@mycre.ws> <aec63565-703f-4e1e-8e91-5f9a85bc440b@ruhr-uni-bochum.de> <172a58d5-1e2d-4db4-9d98-02712def0f07@app.fastmail.com>
Content-Language: en-US
From: Matthias Gierlings <matthias.gierlings@ruhr-uni-bochum.de>
Autocrypt: addr=matthias.gierlings@ruhr-uni-bochum.de; keydata= xsFNBFWVIusBEADjjJMWujSvV1NmDsWswZUvvSysTAIDDaCxsCJRkh5j6jsR421Sm6zzE/d8 ro4EaKu3/QPpjx2Q+GzeTUzAaZl4q1mUYkolxEj2BvGw0Y/u8hqoz3+fXKfu2podp/77xf8y /oGq5jjMTzJ6953oYUOSqAilY+GONT1CrscHa+Bef23l4+3zO6CgdnNPEVl/ebWWVAfIOsoQ 3j/AybsVDT3/hgpzdOJabr5YBWRykONTs7f6Gw97t0VZ97z9JMy8OEIRNpK6w9+t03VECC2f 3K3AD2mYMrwcEiA9fi/hEJlLOQQZ5k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kxvFCtwnonbtjOUZuTn8Eo/dVtB4lD+sKlQcSU09hiByUucmFAyy wCEdIxrwDG+uuba2phrqekBX+qQY+zFxaMZt+SKsfkWkEtt0I1lm/rbFS72Znfg4UlNEBGYq CZdfplnGZiM5gxnKIQ9JmOfBuKxO61o0ySV4m1O7RBz2XMfkKtp7ht/o4ZgdPEUzPBI2MEWA 2+4MU3XFiLAi/eMP/GrovTqtx/OUdDWpXyjVNHNe6tPXY1eb+RD443WK1QvN0LAMkVaSevJq r3xfwwX8EhKSENRnDaprww+/l6iu/WLXvpTSLx/gWW7BxJLjqH788bGByYYsOuddGG7dfUji 4tS0LWeUMtA92vCxA21g68n3tVyYnsSU0pWDFl80yCZkWQ1m2srHwj+NjKNGYvnvA8Ri3D9z VpoOz8XneRMgH7DjC929Lf0r8lFfj/xebFJxIFN4J1FJv9jpOAkGxWN8xh3VvcaCIHU/EdLj 5OE/oJQGxWJBHZc4as+h0bpiTmjrhZ2TqkuRSbJdy1OwUDlASSUA6hjHLvcERA==
In-Reply-To: <172a58d5-1e2d-4db4-9d98-02712def0f07@app.fastmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Message-ID-Hash: TKIJ4LOZUD4SVJWDUFMIACIBVM5CNO56
X-Message-ID-Hash: TKIJ4LOZUD4SVJWDUFMIACIBVM5CNO56
X-MailFrom: matthias.gierlings@ruhr-uni-bochum.de
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-dnsop.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: dnsop@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Reply-To: matthias.gierlings@ruhr-uni-bochum.de
Subject: [DNSOP] Re: Security Vulnerabilities in RFC 8484 - DNS Queries over HTTPS (DoH)
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/W3bj_XmN1OPDUJe79oWGTi1TCiE>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Owner: <mailto:dnsop-owner@ietf.org>
List-Post: <mailto:dnsop@ietf.org>
List-Subscribe: <mailto:dnsop-join@ietf.org>
List-Unsubscribe: <mailto:dnsop-leave@ietf.org>
Kevin P. Fleming wrote: > On Tue, Mar 31, 2026, at 18:45, Matthias Gierlings wrote: >> Assume you operate some website under the domain "benign.example". >> You also operate a DoH endpoint under "https://benign.example/dns-query". > It sounds like the initial recommendation then would be to never operate a DoH endpoint on the same domain as any websites - use a distinct domain for that purpose. That would be one way to deal with the impact of the Direct-XSS-Attack on co-located websites at least. Unfortunately the RFC does neither explain the implications of co-locating DoH endpoints with websites nor does it forbid such co-located deployments, which do already exist today. Even if there is no co-located website present, it is problematic when attackers can deliver content of their choice within a web-origin that is not their own. Simply avoiding co-location of websites with DoH service endpoints does not prevent the CSP-Bypass-over-DoH which also exploits situations where websites white-list trusted third parties, e.g. cloud providers or CDNs, as content sources. What makes things worse in this situation is that the website operator of a site "https://benign.example", who depends on the trusted third party "CDN" (https://cdn.example) has no control over whether https://cdn.example operates a DoH endpoint in their origin or not. It might be that cdn.example load-balances their services among different nodes, e.g. node1.cdn.example, node2.cdn.example, ..., nodeN.cdn.example. So the dependent website operator of benign.example adds "script-src: https://*.cdn.example" to their CSP. Now assume CDN decides to set up a DoH endpoint https://doh.cdn.example/dns-query. This endpoint is also white-listed in the CSP and now has become an injection point not only for benign.example but for all other websites depending on CDN as a trusted third party in the same way benign.example does. Meanwhile the operators of those dependent sites might not even be aware that this DoH service has been deployed by CDN. We cannot stress enough that the underlying problem which enables XSS-over-DoH is the choice to rely on the protocol message format (HTTP) and the well known service part of a different protocol, i.e. HTTPS, for DoH. This means that DoH servers can be easily mistaken for web servers, especially by clients that don't support DoH at all. Of course at the current stage of deployment it is not possible to revise this design decision of the DoH protocol. Yet both attacks Direct-XSS and the CSP-Bypass can be mitigated by introducing Explicit Content Type Negotiation (ECTN)[1]. Deploying ECTN would even allow for co-location of DoH endpoints with websites because it eliminates the protocol confusion and enables DoH servers to clearly distinguish between misguided web-request and intentional DoH-requests. DoH servers implementing ECTN no longer deliver responses to web-requests accidentally directed at them but only to intentional DoH requests. This deprives the attacker of the ability to deliver content in a non-DoH-context, and even works for non-DoH aware clients. -- Kind regards Matthias Gierlings [1] XSS-over-DoH: On the Adverse Side Effects of DoH on Web Security (IETF Preprint Version, p. 10f, §5.1 "Explicit Content-Type-Negotiation Protects both Non-DoH-Aware and DoH-Aware Implementations." (https://mailarchive.ietf.org/arch/msg/dnsop/cQ_mFaRYeOvpr4gWfIAoL1e5hDg/2/)
- [DNSOP] Security Vulnerabilities in RFC 8484 - DN… Matthias Gierlings
- [DNSOP] Re: Security Vulnerabilities in RFC 8484 … Loganaden Velvindron
- [DNSOP] Re: Security Vulnerabilities in RFC 8484 … Robert Edmonds
- [DNSOP] Re: Security Vulnerabilities in RFC 8484 … Matthias Gierlings
- [DNSOP] Re: Security Vulnerabilities in RFC 8484 … Kevin P. Fleming
- [DNSOP] Re: Security Vulnerabilities in RFC 8484 … Matthias Gierlings
- [DNSOP] Re: Security Vulnerabilities in RFC 8484 … Henry Birge-Lee
- [DNSOP] Re: Security Vulnerabilities in RFC 8484 … Matthias Gierlings