Joe Conway <mail@joeconway.com> writes:
> But if you know of a security risk related to using libpq
> with a password authenticated connection, let's hear it.
As near as I can tell, the argument is that dblink might be used to send
connection-request packets to random addresses. Now this is only a
security issue if the attacker could not have reached such an address
directly; otherwise he might as well send the packet himself (and have a
lot more control over its content). So I guess the scenario is that
you're running your database on your firewall machine, where it is
accessible from outside your net but also can reach addresses inside.
And you're letting untrustworthy outside people log into the database.
And you put dblink on it for them to use. And even then, the amount of
damage they could do seems pretty limited due to lack of control over
the packet contents.
To me this scenario is too far-fetched to justify sacrificing
convenience and backwards compatibility. It should be sufficient to add
some paragraphs about security considerations to the dblink docs.
regards, tom lane