Re: pgsql: Fix search_path to a safe value during maintenance operations.
Jeff Davis <pgsql@j-davis.com>
From: Jeff Davis <pgsql@j-davis.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Noah Misch <noah@leadboat.com>, pgsql-committers@lists.postgresql.org
Date: 2023-06-19T22:58:55Z
Lists: pgsql-hackers
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
Commits
-
Fix search_path to a safe value during maintenance operations.
- 2af07e2f749a 17.0 landed
- 05e173735171 16.0 cited
-
Revert MAINTAIN privilege and pg_maintain predefined role.
- 957445996fda 16.0 landed
- 151c22deee66 17.0 landed
-
Add grantable MAINTAIN privilege and pg_maintain role.
- 60684dd834a2 16.0 cited
-
Revoke PUBLIC CREATE from public schema, now owned by pg_database_owner.
- b073c3ccd06e 15.0 cited