pg_settings.sourcefile patch is a security breach

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: pg_settings.sourcefile patch is a security breach
Date: 2008-09-21 18:25:08
Message-ID: 29943.1222021508@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

We go to some lengths to prevent non-superusers from examining
data_directory and other values that would tell them exactly where the
PG data directory is in the server's filesystem. The recently applied
patch to expose full pathnames of GUC variables' source files blows a
hole a mile wide in that.

Possible answers: don't show the path, only the file name; or
show sourcefile/sourceline as NULL to non-superusers.

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2008-09-21 18:38:44 Re: pg_settings.sourcefile patch is a security breach
Previous Message Tom Lane 2008-09-21 18:16:16 Re: Proposal: move column defaults into pg_attribute along with attacl