<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/pam-pgsql/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/pam-pgsql/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/pam-pgsql/bugs/</id><updated>2014-09-27T20:51:14.588000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>#12 md5_postgres does not include 'md5' prefix on hash</title><link href="https://sourceforge.net/p/pam-pgsql/bugs/12/?limit=25#3006" rel="alternate"/><published>2014-09-27T20:51:14.588000Z</published><updated>2014-09-27T20:51:14.588000Z</updated><author><name>Jan Dittberner</name><uri>https://sourceforge.net/u/jandd/</uri></author><id>https://sourceforge.nete084dbd3275a96ad8163545f1fdd95b83a408b0c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;add Debian patch for this issue&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#13 It is possible to login with any password if query's password is null.</title><link href="https://sourceforge.net/p/pam-pgsql/bugs/13/?limit=25#7406" rel="alternate"/><published>2014-09-27T20:48:56.231000Z</published><updated>2014-09-27T20:48:56.231000Z</updated><author><name>Jan Dittberner</name><uri>https://sourceforge.net/u/jandd/</uri></author><id>https://sourceforge.netd80336964da2e62c04a8ba3121bcb801ac3d853d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;labels&lt;/strong&gt;:  --&amp;gt; patch&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#13 It is possible to login with any password if query's password is null.</title><link href="https://sourceforge.net/p/pam-pgsql/bugs/13/?limit=25#2135" rel="alternate"/><published>2014-09-27T20:48:01.156000Z</published><updated>2014-09-27T20:48:01.156000Z</updated><author><name>Jan Dittberner</name><uri>https://sourceforge.net/u/jandd/</uri></author><id>https://sourceforge.netb9d104789adf1fb7edf8543dd63837c0ac609cf0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;attached the Debian patch for this issue&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>It is possible to login with any password if query's password is null.</title><link href="https://sourceforge.net/p/pam-pgsql/bugs/13/" rel="alternate"/><published>2013-01-15T14:02:45.081000Z</published><updated>2013-01-15T14:02:45.081000Z</updated><author><name>Lucas Clemente Vella</name><uri>https://sourceforge.net/u/lvella/</uri></author><id>https://sourceforge.net66ff8264b1f482de2ea91b096f44fcf0aa95a20a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If the "pw_type" is crypt-based and the password field returned by the query is null, user is able to authenticate with any password. It is true that crypt("anything", ""); is always "", so if the crypted password is an empty string, this is (arguably) the correct behavior, but since it sounds very bad, pam_unix needs explicitly the nullok flag.&lt;/p&gt;
&lt;p&gt;But the issue here is even worse: when crypt is used, pam_pgsql authenticates with any password both when the field is an empty string (arguably reasonable) and when it is null. This latter seems very bad, because no output from crypt represents a null password (although this concept is absent in original Unix).&lt;/p&gt;
&lt;p&gt;In my opinion, a null password should be treated the same as no result, and should always fail.&lt;/p&gt;
&lt;p&gt;A workaround is to use a query that never returns null, like:&lt;br /&gt;
SELECT COALESCE(password, '§§INVALID') FROM auth_table;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>It is possible to login with any password if query's password is null.</title><link href="https://sourceforge.net/p/pam-pgsql/bugs/13/" rel="alternate"/><published>2013-01-15T14:02:45.081000Z</published><updated>2013-01-15T14:02:45.081000Z</updated><author><name>Lucas Clemente Vella</name><uri>https://sourceforge.net/u/lvella/</uri></author><id>https://sourceforge.netdaa439ad18a246dfdf55b1e110beea4aa6c4c648</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 13 has been modified: It is possible to login with any password if query's password is null.&lt;br /&gt;
Edited By: Jan Dittberner (jandd)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title/><link href="https://sourceforge.net/p/pam-pgsql/bugs/12/" rel="alternate"/><published>2012-09-14T18:07:57.225000Z</published><updated>2012-09-14T18:07:57.225000Z</updated><author><name>Deryl R. Doucette</name><uri>https://sourceforge.net/u/pgpkeys/</uri></author><id>https://sourceforge.net63b3604119927674093c51240dd9430ec0162bdd</id><summary type="html"/></entry><entry><title/><link href="https://sourceforge.net/p/pam-pgsql/bugs/11/" rel="alternate"/><published>2012-09-14T18:07:55.098000Z</published><updated>2012-09-14T18:07:55.098000Z</updated><author><name>Deryl R. Doucette</name><uri>https://sourceforge.net/u/pgpkeys/</uri></author><id>https://sourceforge.net0a48232118bbf95cf0fbc8ee0f3b236120a3e010</id><summary type="html"/></entry><entry><title/><link href="https://sourceforge.net/p/pam-pgsql/bugs/10/" rel="alternate"/><published>2012-09-14T18:07:54.772000Z</published><updated>2012-09-14T18:07:54.772000Z</updated><author><name>Deryl R. Doucette</name><uri>https://sourceforge.net/u/pgpkeys/</uri></author><id>https://sourceforge.net1e4f683485d738bcf2852ca88786f47dbd1e317a</id><summary type="html"/></entry><entry><title/><link href="https://sourceforge.net/p/pam-pgsql/bugs/9/" rel="alternate"/><published>2012-09-14T18:07:54.703000Z</published><updated>2012-09-14T18:07:54.703000Z</updated><author><name>Deryl R. Doucette</name><uri>https://sourceforge.net/u/pgpkeys/</uri></author><id>https://sourceforge.netbed5ee3c6228807ff83fd1b6c60080a9e51b10d8</id><summary type="html"/></entry><entry><title/><link href="https://sourceforge.net/p/pam-pgsql/bugs/8/" rel="alternate"/><published>2012-09-14T18:07:54.614000Z</published><updated>2012-09-14T18:07:54.614000Z</updated><author><name>Deryl R. Doucette</name><uri>https://sourceforge.net/u/pgpkeys/</uri></author><id>https://sourceforge.net464c3171b6841596bc892498265d7181ef79e4a2</id><summary type="html"/></entry></feed>