Maurice
28f93f2539
fix(db): refuse restores for CREATEROLE members, server file grants and parameter grants
...
The privileged-role check missed three ways a role can reach the database
host from SQL. Before PostgreSQL 16 a member of a CREATEROLE role sets its
role to it and grants itself pg_execute_server_program, since role
attributes are not inherited but the grant checks the role in effect. A role
granted EXECUTE on lo_export, lo_import, pg_read_file, pg_ls_dir and their
siblings reads or writes server files, and lo_export keeps the file after the
transaction rolls back. From PostgreSQL 15 on a role can be granted ALTER
SYSTEM on a setting or SET on a superuser-only one.
PRIVILEGED_ROLE_SQL now counts all three. The parameter grants are read
through query_to_xml inside a CASE taken only on 15 or later, because a
statement naming pg_parameter_acl does not parse on 14. A SET grant on a
setting every role may change anyway, and pg_monitor, stay ordinary. The
lane test creates each kind of role and shows the escalation the check is
for on the server it runs against.
2026-11-17 22:08:53 +01:00
..
2026-10-25 02:10:39 +00:00
2026-07-18 22:13:52 +02:00
2026-11-17 11:10:01 +01:00
2026-10-25 02:10:39 +00:00
2026-11-13 10:17:11 +01:00
2026-10-30 16:16:10 +01:00
2026-11-13 10:17:04 +01:00
2026-10-24 22:42:18 +00:00
2026-10-24 22:42:18 +00:00
2026-10-25 02:10:39 +00:00
2026-10-24 22:42:18 +00:00
2026-10-29 13:34:28 +01:00
2026-10-24 22:42:18 +00:00
2026-10-25 02:10:39 +00:00
2026-11-13 10:17:26 +01:00
2026-11-05 14:36:22 +01:00
2026-10-30 16:16:10 +01:00
2026-11-12 15:39:21 +01:00
2026-10-24 22:42:18 +00:00
2026-11-13 20:49:08 +01:00
2026-10-24 22:42:18 +00:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-11-12 15:39:21 +01:00
2026-11-04 22:45:32 -03:00
2026-11-13 20:57:55 +01:00
2026-11-13 10:17:03 +01:00
2026-11-13 10:17:25 +01:00
2026-10-25 02:10:39 +00:00
2026-10-01 19:40:22 +02:00
2026-10-24 22:42:17 +00:00
2026-11-13 10:17:12 +01:00
2026-10-31 00:40:23 +00:00
2026-10-25 02:10:39 +00:00
2026-11-13 10:17:04 +01:00
2026-10-14 13:24:27 +02:00
2026-11-17 22:08:53 +01:00
2026-10-24 22:42:18 +00:00
2026-11-13 10:17:12 +01:00
2026-11-17 12:24:08 +01:00
2026-10-24 22:42:18 +00:00
2026-10-24 22:42:18 +00:00
2026-10-24 22:42:18 +00:00
2026-10-25 02:10:39 +00:00
2026-11-17 13:54:25 +01:00
2026-11-17 21:59:11 +01:00
2026-10-24 22:42:18 +00:00
2026-10-31 00:40:23 +00:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-11-17 12:24:07 +01:00
2026-10-24 22:42:18 +00:00
2026-11-17 11:10:01 +01:00
2026-10-24 22:42:17 +00:00
2026-10-24 22:42:18 +00:00
2026-11-11 20:57:42 +00:00
2026-10-24 22:42:18 +00:00
2026-10-24 22:42:18 +00:00
2026-10-25 02:10:39 +00:00
2026-11-04 14:26:25 +01:00
2026-10-31 00:40:23 +00:00
2026-11-13 10:17:26 +01:00
2026-11-13 10:17:12 +01:00
2026-11-13 10:17:06 +01:00
2026-11-14 17:48:57 +01:00
2026-10-24 22:42:17 +00:00
2026-04-20 10:11:53 +02:00
2026-10-25 02:10:39 +00:00
2026-10-24 22:42:17 +00:00
2026-11-17 08:44:10 +01:00
2026-11-13 10:17:12 +01:00
2026-11-13 10:17:26 +01:00
2026-11-12 08:42:16 +01:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-11-12 15:39:21 +01:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-10-24 22:42:18 +00:00
2026-11-13 10:17:12 +01:00
2026-10-24 22:42:18 +00:00
2026-11-17 08:44:10 +01:00
2026-09-25 09:19:11 +02:00
2026-11-17 13:00:55 +01:00
2026-11-17 13:00:55 +01:00
2026-09-20 12:11:41 +02:00
2026-10-24 22:42:18 +00:00
2026-10-24 22:42:17 +00:00
2026-10-24 22:42:17 +00:00
2026-10-25 02:10:39 +00:00
2026-10-24 22:42:17 +00:00
2026-11-13 17:46:19 +01:00
2026-10-24 22:42:18 +00:00
2026-11-14 17:48:57 +01:00
2026-10-29 13:34:28 +01:00
2026-10-24 22:42:18 +00:00
2026-11-17 08:44:10 +01:00
2026-10-24 22:42:18 +00:00
2026-11-11 20:59:59 +00:00
2026-11-13 16:39:46 +01:00
2026-10-31 03:25:55 +00:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-10-25 02:10:39 +00:00
2026-11-13 10:17:04 +01:00
2026-11-17 12:24:08 +01:00
2026-10-24 22:42:18 +00:00
2026-11-17 21:59:11 +01:00
2026-11-13 10:17:06 +01:00
2026-10-24 22:42:18 +00:00
2026-10-24 22:42:18 +00:00
2026-10-25 02:10:39 +00:00
2026-09-28 12:19:49 +02:00