The worst bugs are the simplest bugs

admin
January 11, 2009

It is a truism of security that the worst vulnerabilities are usually the simplest – many  are configuration bugs or simple design flaws like leaving temp files world read.
Many Open Source projects such as Open Clinica use the excellent PostgreSQL database. You get 90% of Oracle at 10% of the weight and for free.   The problem with projects such as Open Clinica is that the end users are generally security innocents.
In the case of Postgres – the postmaster startup script in /etc/init.d uses the -i parameter by default. This parameter overrides the postgresql.conf and pg_hba.conf definitions. It’s actually well-documented but who reads documentation?
In other words – you think you’ve locked down the server for local connections only but in fact the server is listening to remote connections from anywhere and inviting dictionary attacks on the postgres user on port 5432. Of course – if you’re running a firewall and blocked everything but what you need – you’re ok.  OK – in the sense that you’re fat, dumb and happy since it’s always poor security practice to run unneeded services and if the firewall is mis-configured or changed for testing purposes – you will be someone’s lunch.
More here on this ridiculously simple Postgres Security vulnerability

More Articles