Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qBNpu-0005IU-Sk for pgsql-committers@arkaria.postgresql.org; Mon, 19 Jun 2023 22:59:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qBNpt-0005dk-Ei for pgsql-committers@arkaria.postgresql.org; Mon, 19 Jun 2023 22:59:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qBNpt-0005db-3K for pgsql-committers@lists.postgresql.org; Mon, 19 Jun 2023 22:59:01 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qBNpq-0038Pf-C2 for pgsql-committers@lists.postgresql.org; Mon, 19 Jun 2023 22:58:59 +0000 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-5533c545786so2524363a12.1 for ; Mon, 19 Jun 2023 15:58:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20221208.gappssmtp.com; s=20221208; t=1687215537; x=1689807537; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=ZVb5gIATVA+bAEa1IUE/+zq+yM6osslSE3O9vaMV0cc=; b=iMMAZV1vKQepEfAp+Sja/bNG9/K5j50TuJxKDujOYK3aicBAMiMAZ0NUIdohmI4wxJ 3NaqtaeWOiH5GXDHczQlD1fX4NpwdEDESTPa9MKY/rd9u1rmbrvdPcNdiVadV8+z6KDD 3ThJVfSrEXl3H4hT90Z+fRDyEH1ccruNY+J6wecZYMrTutTViHKKTJ5+Guj/KZ3/bUZh /xT0VpUvXb1dEY7qr6xF09c366PdQ9b+pvlDIVN7jK2PL4iOFUeCGykYj3zFZ8XQak14 ND9HIxPc2NED4zsn+QXYyJY/rAAeQ4wZ2+RnjdC76KIQ8F4h2gA3sMaaIhGXU7ZBt/6C v3Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687215537; x=1689807537; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZVb5gIATVA+bAEa1IUE/+zq+yM6osslSE3O9vaMV0cc=; b=VSv20JXgCsjjpXtwfPnbrhKXL3g939yQsS33ZgOS3omd4aTQca3lQOceRHUVw6LAQK jnCQN+nuC3yYN3kq3qjBxMoOT/K+Kd8Sb+P3OulFnR/xZU65pOOoSAKndjxry+QqHqMt K7zxTQgjHy9kP7JLDCs5MspvmodPyP354FTPniElTfBQwaqubvxmIfUOX4kB5pOGBAMG RngmQEffBuWLNkLQIhQyDQa9e65nJ5fcuv9OaC8J4z+y0het57CTOhEIXhy4hPmo75ys eu9kKNrLWUmTRfNvFCJVZNOuWuLYYLShI8uSrNbmBjttOWFE01z4dxr1O2Okj093wJlM n1Sw== X-Gm-Message-State: AC+VfDxKcIK6iUSGTY8kXUl+cq0RCThCLGP3lHt7ZJNr9bFMVh9/fZnf LRp3rACggQRTpwmqp7ywfPXv2A== X-Google-Smtp-Source: ACHHUZ4Rwc0osb29+UoWAovYBkmvUc1dxcKKqAhjskN3iOsX7K+dnihO6TuviMmc4JuIDqk9/qz/RQ== X-Received: by 2002:a17:90a:d081:b0:25d:d224:9fb9 with SMTP id k1-20020a17090ad08100b0025dd2249fb9mr19638180pju.24.1687215537177; Mon, 19 Jun 2023 15:58:57 -0700 (PDT) Received: from jeff-laptop.lan (c-73-170-46-202.hsd1.ca.comcast.net. [73.170.46.202]) by smtp.gmail.com with ESMTPSA id 20-20020a170902ee5400b001ac7f583f72sm294992plo.209.2023.06.19.15.58.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 15:58:56 -0700 (PDT) Message-ID: <578fb4be80247570e6a05924908765a0b345971e.camel@j-davis.com> Subject: Re: pgsql: Fix search_path to a safe value during maintenance operations. From: Jeff Davis To: Robert Haas Cc: Tom Lane , Noah Misch , pgsql-committers@lists.postgresql.org Date: Mon, 19 Jun 2023 15:58:55 -0700 In-Reply-To: References: <89a415b86d5421941e4281ba5bf6288934078624.camel@j-davis.com> <573014.1686375211@sss.pgh.pa.us> <20230612170510.GA201972@gust.leadboat.com> <20230613182920.GA259321@gust.leadboat.com> <1799839.1686687804@sss.pgh.pa.us> <4df537f5a0d8c0ceac3eec3809d1144880b8e76d.camel@j-davis.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2023-06-19 at 16:03 -0400, Robert Haas wrote: > I'm inclined to think that this is a real security issue and am not Can you expand on that a bit? You mean a practical security issue for the intended use cases? > very sanguine about waiting another year to fix it, but at the same > time, I'm somewhat worried that the proposed fix might be too narrow > or wrongly-shaped. I'm not too convinced that we've properly > understood what all of the problems in this area are. :-( Would it be acceptable to document that the MAINTAIN privilege (along with TRIGGER and, if I understand correctly, REFERENCES) carries privilege escalation risk for the grantor? Regards, Jeff Davis