pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: 德哥 <digoal@126.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13651: trigger security invoker attack
Date: Wed, 30 Sep 2015 15:02:41 +0800 (CST)
Message-ID: <1ad9dff4.9584.1501d0f6c58.Coremail.digoal@126.com> (raw)
In-Reply-To: <CAKFQuwbRFFSMy_0xxGe75MR4XBrCm+rbogug6hrVx044obkMEA@mail.gmail.com>
References: <20150929115737.1448.91255@wrigleys.postgresql.org>
	<CAKFQuwa3coX=mS-SFN5rvGZELeaYFysHY3SdJPfWP4Ncr5LT0A@mail.gmail.com>
	<3ed1e8e4.24ae.1501bd26a65.Coremail.digoal@126.com>
	<CAKFQuwZkmBiq9fAZHOjEfbOoazzm=NQwvpBvVGtgrgjT__4EhQ@mail.gmail.com>
	<762bf7bb.3a36.1501c0057c6.Coremail.digoal@126.com>
	<CAKFQuwYVUfXBbmb+hmbY-SVS8D0DemfP2-c+gp-wAnyZy8zNUQ@mail.gmail.com>
	<6e7ae4ae.49d8.1501c1fd9e8.Coremail.digoal@126.com>
	<CAKFQuwbRFFSMy_0xxGe75MR4XBrCm+rbogug6hrVx044obkMEA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

HI,
If we can change the function's security dynamical, like : 
    When function trigged in trigger or rule, force these function's security =  table,mview,view's owner.
There will no risks in the case.


PS: MySQL do that.



view thread (12+ messages)  latest in thread

Message-ID: <1ad9dff4.9584.1501d0f6c58.Coremail.digoal@126.com>
Permalink:  ../1ad9dff4.9584.1501d0f6c58.Coremail.digoal@126.com/
Also on:    postgresql.org/message-id/1ad9dff4.9584.1501d0f6c58.Coremail.digoal@126.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: digoal@126.com, david.g.johnston@gmail.com
  Subject: Re: BUG #13651: trigger security invoker attack
  In-Reply-To: <1ad9dff4.9584.1501d0f6c58.Coremail.digoal@126.com>
  References: <20150929115737.1448.91255@wrigleys.postgresql.org> <CAKFQuwa3coX=mS-SFN5rvGZELeaYFysHY3SdJPfWP4Ncr5LT0A@mail.gmail.com> <3ed1e8e4.24ae.1501bd26a65.Coremail.digoal@126.com> <CAKFQuwZkmBiq9fAZHOjEfbOoazzm=NQwvpBvVGtgrgjT__4EhQ@mail.gmail.com> <762bf7bb.3a36.1501c0057c6.Coremail.digoal@126.com> <CAKFQuwYVUfXBbmb+hmbY-SVS8D0DemfP2-c+gp-wAnyZy8zNUQ@mail.gmail.com> <6e7ae4ae.49d8.1501c1fd9e8.Coremail.digoal@126.com> <CAKFQuwbRFFSMy_0xxGe75MR4XBrCm+rbogug6hrVx044obkMEA@mail.gmail.com> <1ad9dff4.9584.1501d0f6c58.Coremail.digoal@126.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