pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedSecurity Problem
4+ messages / 4 participants
[nested] [flat]
* Security Problem
@ 2003-10-14 09:32 Daniel Rubio <drubior@tinet.org>
0 siblings, 3 replies; 4+ messages in thread
From: Daniel Rubio @ 2003-10-14 09:32 UTC (permalink / raw)
To: pgsql-admin
Hi to all
I'm mantaining a Postgres installation on an ISP, and I see a relativly
important security issue.
I can connect to postgres with a normal user login and take a look to
the database structure of all the other databases on the installation.
This is very visual with PGadmin. I connect as a simple user, and I
can't create or select data from other's database, but i can see which
databases exists on the system and look at the tables and columns of
each of them (and i don't want it).
I've tried to solve it with:
REVOKE ALL PRIVILEGES ON DATABASE x FROM PUBLIC;
REVOKE ALL PRIVILEGES ON SCHEMA public FROM PUBLIC;
REVOKE ALL PRIVILEGES ON SCHEMA public FROM GROUP users;
...
And I still can to look at the others database structure (connecting as
a non privileged user) ...
How I could solve this?
Thanks
--
********************************************************
Daniel Rubio RodrÃguez
********************************************************
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Security Problem
@ 2003-10-14 13:47 Jeff <threshar@torgo.978.org>
parent: Daniel Rubio <drubior@tinet.org>
2 siblings, 0 replies; 4+ messages in thread
From: Jeff @ 2003-10-14 13:47 UTC (permalink / raw)
To: Daniel Rubio <drubior@tinet.org>; +Cc: pgsql-admin
On Tue, 14 Oct 2003, Daniel Rubio wrote:
> And I still can to look at the others database structure (connecting as
> a non privileged user) ...
>
Did you try setting search_path in postgresql.conf to just '$user'?
You'll also need a schema for each user.
perhaps db_user_namespace does this? I didn't find much info on that.
--
Jeff Trout <jeff@jefftrout.com>
http://www.jefftrout.com/
http://www.stuarthamm.net/
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Security Problem
@ 2003-10-14 13:50 Tom Lane <tgl@sss.pgh.pa.us>
parent: Daniel Rubio <drubior@tinet.org>
2 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2003-10-14 13:50 UTC (permalink / raw)
To: Daniel Rubio <drubior@tinet.org>; +Cc: pgsql-admin
Daniel Rubio <drubior@tinet.org> writes:
> I'm mantaining a Postgres installation on an ISP, and I see a relativly
> important security issue.
> I can connect to postgres with a normal user login and take a look to
> the database structure of all the other databases on the installation.
That is correct; we do not consider it a security problem. If you don't
want a user to be able to look at the system catalogs of a database, you
need to disallow him from connecting to that database at all. (See
pg_hba.conf for this, not GRANT/REVOKE.)
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Security Problem
@ 2003-10-14 16:51 Andrew Sullivan <andrew@libertyrms.info>
parent: Daniel Rubio <drubior@tinet.org>
2 siblings, 0 replies; 4+ messages in thread
From: Andrew Sullivan @ 2003-10-14 16:51 UTC (permalink / raw)
To: pgsql-admin
On Tue, Oct 14, 2003 at 11:32:03AM +0200, Daniel Rubio wrote:
> How I could solve this?
Upgrade to 7.3 and use the schema support to do it for you.
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Afilias Canada Toronto, Ontario Canada
<andrew@libertyrms.info> M2P 2A8
+1 416 646 3304 x110
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2003-10-14 16:51 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-10-14 09:32 Security Problem Daniel Rubio <drubior@tinet.org>
2003-10-14 13:47 ` Jeff <threshar@torgo.978.org>
2003-10-14 13:50 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-10-14 16:51 ` Andrew Sullivan <andrew@libertyrms.info>
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