PostgreSQL 9.2.4, 9.1.9, 9.0.13 and 8.4.17 released
postgresql.org
PostgreSQL 9.2.4, 9.1.9, 9.0.13 and 8.4.17 released
1–10 of 105 posts
Re: PostgreSQL 9.2.4, 9.1.9, 9.0.13 and 8.4.17 released
#2Re: PostgreSQL 9.2.4, 9.1.9, 9.0.13 and 8.4.17 released
#3Re: PostgreSQL 9.2.4, 9.1.9, 9.0.13 and 8.4.17 released
#4Re: PostgreSQL 9.2.4, 9.1.9, 9.0.13 and 8.4.17 released
#5> A connection request containing a database name that begins with "-" may be crafted to damage or destroy files within a server's data directory
I just. No words.
Re: PostgreSQL 9.2.4, 9.1.9, 9.0.13 and 8.4.17 released
#6So if I have no databases that start with "-", I'm not vulnerable? Didn't quite understand what they meant by that.
Re: PostgreSQL 9.2.4, 9.1.9, 9.0.13 and 8.4.17 released
#7Re: PostgreSQL 9.2.4, 9.1.9, 9.0.13 and 8.4.17 released
#8Is there an attack vector if you run PostgreSQL locally, no untrusted users are able to create connection strings and do not allow remote access?
It seems to be no but I prefer to be sure ;)
Re: PostgreSQL 9.2.4, 9.1.9, 9.0.13 and 8.4.17 released
#9So if I have no databases that start with "-", I'm not vulnerable? Didn't quite understand what they meant by that.
The vulnerability allows users to use a command-line switch for a PostgreSQL connection intended for single-user recovery mode while PostgreSQL is running in normal, multiuser mode. This can be used to harm the server.
Re: PostgreSQL 9.2.4, 9.1.9, 9.0.13 and 8.4.17 released
#10So if I have no databases that start with "-", I'm not vulnerable? Didn't quite understand what they meant by that.
> Fix insecure parsing of server command-line switches (Mitsumasa Kondo, Kyotaro Horiguchi)
So I assume command-line switch parsing is somehow involved in parsing the connection string (probably because the same connection strings can be used from API and from CLI?), I guess a database name with a leading `-` can be interpreted as a switch and execute corrupting commands.
edit: according to the dedicated FAQ:
> The vulnerability allows users to use a command-line switch for a PostgreSQL connection intended for single-user recovery mode while PostgreSQL is running in normal, multiuser mode. This can be used to harm the server.