Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAxb5-0002H3-T9 for pgsql-general@arkaria.postgresql.org; Mon, 01 Apr 2019 14:07:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hAxb4-0003ML-Ho for pgsql-general@arkaria.postgresql.org; Mon, 01 Apr 2019 14:07:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAxb4-0003ME-2L for pgsql-general@lists.postgresql.org; Mon, 01 Apr 2019 14:07:34 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAxb1-0004ej-22 for pgsql-general@lists.postgresql.org; Mon, 01 Apr 2019 14:07:32 +0000 Received: by mail-qt1-x844.google.com with SMTP id v32so10652184qtc.10 for ; Mon, 01 Apr 2019 07:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=13yocah1CGU9EsA8T1e9ejUHHM1AGpqYTkTgCnw5kHs=; b=eYqVxvNZdUDIG5xuwJKeTMQ002bkfjJlK+IC0Ek99LXGfeZgf+bKOB+Y4XEFV9sssU QkbFWOr9gTlkPBeWYtS6isZs+dv7Vxam1Q/J3xuqbu28EGYIVPyTvzKJ2Ab9Tp08IubX +WPAvTtp/S7+PbRbTlBUbVnwDIKX3Fj9MyRDLFzlLOA8TXqIrkcE70V16JWk7oIo6CMJ /Mim8WdCGM9M2gi5U3WekK3TXdpAFfatI2A6WW9hHj1hMUVSJuLvanrAW/oCXegThSpB mSdQ26THP1DQ//rbpW3Bfdmg8TlQlH0rTtGT9RIMjP2eoTWbBAnVH6/7jBFG5BVADaf0 7Vpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=13yocah1CGU9EsA8T1e9ejUHHM1AGpqYTkTgCnw5kHs=; b=eG00eowQZS8yeXI6k5I05LLCq3GrqvUeBTcMJtTFfFbnnojX8b61OQsDo6u9py7S4P zD1kqeOdjAHUEiyvtRAphjlWr2FV8PPSHDU1chiFEw50uQqq/zO/VKw3Dd8eRtvx6oAh 6SCjyTM5eSBL0yef7qiul4eorfczXMJ4tfahRMo4nexd5a8fq5vizGIE8W9dAqPNzMET JhiHxMtPIX+o8oHgD9JuBw7hd36wOFr6+0PQlTmIyqHfw43MTslG3GPbmneUtfrn/0Mu +/VpFgirUcaVYMkJRH5BDUq25yRb/7Zn6pZlqwjBC5LOal4UaSgvwSP1GhJmqt/ZwGJX 0Tzg== X-Gm-Message-State: APjAAAWwKkJhXia/8k4xz4jeeGN6A+zVAzFxXu0FljPZqgzholS6waV9 Fc4zEUBKBLzl+AFVFqcQn26Yd/tSaKE= X-Google-Smtp-Source: APXvYqzKBrgpeUTBM3JXGKh3iW5j7Va0uyeUc0lelTyZYgmb6EzQZH3WiqsdHNqRUkr3qgdmoD6IOg== X-Received: by 2002:ac8:33ad:: with SMTP id c42mr53216601qtb.318.1554127650164; Mon, 01 Apr 2019 07:07:30 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id f189sm5449280qkb.79.2019.04.01.07.07.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Apr 2019 07:07:29 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 8AB9F1214B0; Mon, 1 Apr 2019 11:07:27 -0300 (-03) Date: Mon, 1 Apr 2019 11:07:27 -0300 From: Alvaro Herrera To: Tom Lane Cc: Magnus Hagander , Daniel Verite , pgsql-general Subject: Re: CVE-2019-9193 about COPY FROM/TO PROGRAM Message-ID: <20190401140727.GA7378@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6962.1554126913@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Apr-01, Tom Lane wrote: > Magnus Hagander writes: > > On Sat, Mar 30, 2019 at 10:16 PM Tom Lane wrote: > >> Yeah; this is supposing that there is a security boundary between > >> Postgres superusers and the OS account running the server, which > >> there is not. We could hardly have features like untrusted PLs > >> if we were trying to maintain such a boundary. > > > I wonder if we need to prepare some sort of official response to that. > > I was considering writing up a blog post about it, but maybe we need > > something more official? > > Blog post seems like a good idea. As for an "official" response, > it strikes me that maybe we need better documentation. I'm not sure > that we spell out anywhere what we think the security model is. > There are plenty of scattered warnings about unsafe things, but > if there's any specific statement equivalent to what I just > wrote above, I can't remember where. > > (By the same token, I'm not sure where would be a good place > to put it ...) Apparently we had a "Security" chapter in version 7.0, which got removed, and we recently got a complaint about that: https://postgr.es/m/CABxk5gCBhLSdrHZVnKUyKk2gR+tcWKNEQ2E-Wnf6OtSJtQ3Ueg@mail.gmail.com I think Peter is right that we may not want to duplicate the contents of each section, but I think it makes sense to have a chapter in "Part III. Server Administration", maybe just after chapters 26 or 27, where some security considerations are put forth with references to the detailed docs on security for each aspect of the system. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services