pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #16682: The pg_user_mapping table saves the plaintext password
3+ messages / 3 participants
[nested] [flat]

* BUG #16682: The pg_user_mapping table saves the plaintext password
@ 2020-10-22 07:14 PG Bug reporting form <noreply@postgresql.org>
  2020-10-22 08:16 ` Re: BUG #16682: The pg_user_mapping table saves the plaintext password Daniel Gustafsson <daniel@yesql.se>
  0 siblings, 1 reply; 3+ messages in thread

From: PG Bug reporting form @ 2020-10-22 07:14 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: abcxiaod@126.com

The following bug has been logged on the website:

Bug reference:      16682
Logged by:          yi Ding
Email address:      abcxiaod@126.com
PostgreSQL version: 12.0
Operating system:   linux
Description:        

The pg_user_mapping table saves the user name and password information of
the external database, which is used to remotely connect to the external
database from the local database and access the tables on the external
database.
When running the connection program, the user name and password for
accessing the external database will be obtained from the pg_user_mapping
table, and the external database will be accessed as a client. If the user
name and password are verified, the connection is completed, and if the
verification fails, the connection cannot be made.
Whether the plaintext password in this system table system view has security
risks, is it considered a security vulnerability?



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #16682: The pg_user_mapping table saves the plaintext password
  2020-10-22 07:14 BUG #16682: The pg_user_mapping table saves the plaintext password PG Bug reporting form <noreply@postgresql.org>
@ 2020-10-22 08:16 ` Daniel Gustafsson <daniel@yesql.se>
  2020-10-23 03:22   ` Re: BUG #16682: The pg_user_mapping table saves the plaintext password Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 3+ messages in thread

From: Daniel Gustafsson @ 2020-10-22 08:16 UTC (permalink / raw)
  To: abcxiaod@126.com; pgsql-bugs@lists.postgresql.org

> On 22 Oct 2020, at 09:14, PG Bug reporting form <noreply@postgresql.org> wrote:

> Whether the plaintext password in this system table system view has security
> risks, is it considered a security vulnerability?

This is as intended, and documented on the pg_user_mapping catalog
description and the pg_user_mappings view:

  https://www.postgresql.org/docs/12/catalog-pg-user-mapping.html
  https://www.postgresql.org/docs/12/view-pg-user-mappings.html

The umoptions field is not visible to restricted users.

cheers ./daniel




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #16682: The pg_user_mapping table saves the plaintext password
  2020-10-22 07:14 BUG #16682: The pg_user_mapping table saves the plaintext password PG Bug reporting form <noreply@postgresql.org>
  2020-10-22 08:16 ` Re: BUG #16682: The pg_user_mapping table saves the plaintext password Daniel Gustafsson <daniel@yesql.se>
@ 2020-10-23 03:22   ` Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Paquier @ 2020-10-23 03:22 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; +Cc: abcxiaod@126.com; pgsql-bugs@lists.postgresql.org

On Thu, Oct 22, 2020 at 10:16:46AM +0200, Daniel Gustafsson wrote:
> > On 22 Oct 2020, at 09:14, PG Bug reporting form <noreply@postgresql.org> wrote:
> 
> > Whether the plaintext password in this system table system view has security
> > risks, is it considered a security vulnerability?
> 
> This is as intended, and documented on the pg_user_mapping catalog
> description and the pg_user_mappings view:
> 
>   https://www.postgresql.org/docs/12/catalog-pg-user-mapping.html
>   https://www.postgresql.org/docs/12/view-pg-user-mappings.html
> 
> The umoptions field is not visible to restricted users.

If you care about such things, there are more options on the table
like pgpass files or certificate-based authentication methods just to
name two of these.  Much more options are supported.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-10-23 03:22 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-10-22 07:14 BUG #16682: The pg_user_mapping table saves the plaintext password PG Bug reporting form <noreply@postgresql.org>
2020-10-22 08:16 ` Daniel Gustafsson <daniel@yesql.se>
2020-10-23 03:22   ` Michael Paquier <michael@paquier.xyz>

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