From: Noah Misch <noah@leadboat.com>
To: pgsql-docs@postgresql.org
Subject: Schema Usage Patterns vs. dbowner or CREATEROLE
Date: Sat, 12 Oct 2019 18:35:12 -0700
Message-ID: <20191013013512.GC4131753@rfd.leadboat.com> (raw)
When I updated
https://www.postgresql.org/docs/devel/ddl-schemas.html#DDL-SCHEMAS-PATTERNS
for CVE-2018-1058, I wrote that some schema usage patterns are secure against
CREATEROLE users and database owners. That was incorrect. Even with the
first pattern, a database owner can attack the database's users via "CREATE
SCHEMA trojan; ALTER DATABASE $mydb SET search_path = trojan, public;". A
CREATEROLE user can issue "GRANT $dbowner TO $me" and then use the database
owner attack. I plan to update this section to assert that all three usage
patterns are equally vulnerable to dbowner and CREATEROLE attack. (The
technique described under "If untrusted users have access to a database ..."
in libpq.sgml remains secure.)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: noah@leadboat.com
Subject: Re: Schema Usage Patterns vs. dbowner or CREATEROLE
In-Reply-To: <20191013013512.GC4131753@rfd.leadboat.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox