From owner-freebsd-questions@freebsd.org Thu Feb 25 04:38:39 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 32C7F556300; Thu, 25 Feb 2021 04:38:39 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DmKmZ4v33z3Pbf; Thu, 25 Feb 2021 04:38:38 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: by mail-ej1-x633.google.com with SMTP id w1so6579039ejf.11; Wed, 24 Feb 2021 20:38:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=yBmBem/so8lEw88qbUitkdESVAqQMgvs3lO+uea7UA0=; b=ljb+jOlgHuZDwyFdHTuB4NDV+BEmLwAR5aOxPoJCyIDd4Xg0ul+6UUuChPk933Vu+Y fCyBeQYe8kldZePBVUZQYI01RsXreZOkqsnAy4jJrRYV1qxtRrk/AcGxyzuLXxAaTkzF lRjtnk3NTTCuEqlD0LooeehyRii8kqJoAuFxQfBHZugUBYnZcEdHI4IM1dNvqoIxux1w 3Az05CwBzmuXb7hB5com/18zO9GBjIdh4nHQzyIZY4artHDaG53ChzQS4W0rDzfhtknt 4B2DIg1cA9UyvYkMf477IGEIeFVa9M8OS7A8ITOeu16ZMF9Y8y/5jJuTW+0WPhypHqf6 lFZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=yBmBem/so8lEw88qbUitkdESVAqQMgvs3lO+uea7UA0=; b=UocfJfGpZMNeIbrtQ4yxYmZuGn+ICqwe+AC4uCFKP2YTggRzM4BOhIvdwU2yOUyj4U VHF95f6kIhNwBmQ3rIY92WB8Hb1FwHihKNGk464mljVwxU+dE+OQGpMNgdKHbw11Rzwp RGuNGnxjfIloREPhrOex0MKe5cJ9DjG1hGvWT+UV84eMMUjh378Fhs9TZNsImTqnumIt u0wl+SHBhN92wQGkd3LjOppq8dxcnUd2YmWhRvr1NsSIrmkvhw8jr87nfMDBT6R8SXQP 1fnPZ6EvWGrJHdrH74YH5yYxSBZr+rfqH5XDx4KdECAqwhMZiySAldGFdiQAjqZ4yE/E btRA== X-Gm-Message-State: AOAM530az1n6Vr2PycrfbBNVLI0vMlW3bGqbN7BPKY4sVMN00l9x3a+D SBWkGFQevUCgBWiEUM5BzpWiBeER5b7wtJ5oHOumRmrVpSWBpg== X-Google-Smtp-Source: ABdhPJzMq6P9/74fvIuyUQLiY2d5hn+ddtQT+LA96rkI0hVHUHjgNe/JrLmMwG0as+wID5a+qjBbBSyW9AgQMSxiPEs= X-Received: by 2002:a17:906:3916:: with SMTP id f22mr922064eje.328.1614227917472; Wed, 24 Feb 2021 20:38:37 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a54:3148:0:0:0:0:0 with HTTP; Wed, 24 Feb 2021 20:38:36 -0800 (PST) From: grarpamp Date: Wed, 24 Feb 2021 23:38:36 -0500 Message-ID: Subject: CA's TLS Certificate Bundle in base = BAD To: freebsd-security@freebsd.org Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4DmKmZ4v33z3Pbf X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ljb+jOlg; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of grarpamp@gmail.com designates 2a00:1450:4864:20::633 as permitted sender) smtp.mailfrom=grarpamp@gmail.com X-Spamd-Result: default: False [-2.18 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::633:from]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::633:from:127.0.2.255]; NEURAL_SPAM_SHORT(0.82)[0.818]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::633:from]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-security,freebsd-questions]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2021 04:38:39 -0000 FYI... Third party CA's are an untrusted automagical nightmare of global and local MITM risk... - CA's issuer gone wrong... Govt, Corp, Bribe, Rogue, Court, War, Force Majeure, Crime, Hack, Spies, Lulz, etc. - CA's store bundler gone wrong... Mozilla, Microsoft, Apple, BSD, etc in same ways above. - Undetected stolen unrevoked unchecked CA's, intermediates, server keys, etc. - Total/targeted IP/DNS traffic user interception by agents, vpn's, proxies, tor, mitmproxy, sslstrip, etc. - Base asserting trust over all that, when reality none is due. There should be no non-FreeBSD.Org/Foundation CA's shipped in base. Its shipped pubkey fingerprint sets can bootstrap TLS infra pubkeys/prints off bsd keyserver, to then pubkey pin TLS fetch(1) / pkg(8) / git(1) to reach pkg ca_root_cert, git src ports repos, update, iso, etc. See curl(1) --pinned-pubkey, GPG, etc. https://www.zdnet.com/article/surveillance-firm-asks-mozilla-to-be-included-in-firefoxs-certificate-whitelist/ https://en.wikipedia.org/wiki/Edward_Snowden https://duckduckgo.com/?q=rogue+CA+root+certificate https://www.win.tue.nl/hashclash/rogue-ca/ Users should delete all those ~139 garbage CA's, only add in the ones they find they need during use, easily scripted and tooled, start with say the... - LetsEncrypt chain And force TLS pubkey fingerprint pin check on critical services. Search web for howtos. At minimum require user / install to ack before use... mv /etc/ssl/certs.shipped_disabled /etc/ssl/certs