Re: How to stop script executions - Mailing list pgsql-general

From Dev Kumkar
Subject Re: How to stop script executions
Date
Msg-id CALSLE1P8kXWN02o8SobYFXGY-dk4Kmd4OFJcWfCAv=S3As=AuQ@mail.gmail.com
Whole thread Raw
In response to Re: How to stop script executions  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: How to stop script executions  (Melvin Davidson <melvin6925@gmail.com>)
List pgsql-general
On Tue, Jul 26, 2016 at 6:59 PM, David G. Johnston <david.g.johnston@gmail.com> wrote:
​Typically this means that given user only having psql, or some other backend protocol only, connect to the database are they able to execute arbitrary commands as the user running the PostgreSQL process on the host system.​

Untrusted langauges are untrusted for specifically this reason.  Without untrusted languages it requires privilege escalation to interact dynamically with the host operating system.

Assuming raised privileges it is presently impossible to prevent such dynamic interaction.

Just thinking if untrusted language like plperlu is not installed then executing arbitrary commands is not possible.
So the other possible which you did mention was COPY FROM PROGRAM command, is this understanding correct?

Regards...

pgsql-general by date:

Previous
From: Dev Kumkar
Date:
Subject: Re: How to stop script executions
Next
From: Adrian Klaver
Date:
Subject: Re: RE: [GENERAL] Re: [GENERAL] A simple extension immitating pg_notify‏