<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/kronophobia/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/kronophobia/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 06 Sep 2004 16:17:13 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/kronophobia/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Error authenticating users</title><link>https://sourceforge.net/p/kronophobia/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;After installing, when I try to authentuicate as root a&lt;br /&gt;
bad password response is returned.&lt;/p&gt;
&lt;p&gt;I put the password fielto to blank in the Database and&lt;br /&gt;
authenticating with no password worked, I created one&lt;br /&gt;
user and tried to login with it, It also failed.&lt;/p&gt;
&lt;p&gt;I wandered through the code and found some things whose&lt;br /&gt;
pourpouse I dont fully understand.&lt;/p&gt;
&lt;p&gt;In the install script the sequence with the root&lt;br /&gt;
password is:&lt;/p&gt;
&lt;p&gt;$password = "calendar";&lt;br /&gt;
$password = $security-&amp;gt;encryption($password);&lt;br /&gt;
$password = base64_encode($password);&lt;/p&gt;
&lt;p&gt;ok, you end up with a encrypted and  base64 encoded&lt;br /&gt;
password.&lt;/p&gt;
&lt;p&gt;then, at the login.php script the code is: &lt;/p&gt;
&lt;p&gt;$db_password = $query_data-&amp;gt;password;&lt;br /&gt;
$db_password = $security-&amp;gt;decryption($db_password);&lt;br /&gt;
if($password == $db_password) .............&lt;/p&gt;
&lt;p&gt;I think it should b better to do (in fact, I have&lt;br /&gt;
modified the script and this works fine): &lt;br /&gt;
$db_password = $query_data-&amp;gt;password;&lt;br /&gt;
$password = $security-&amp;gt;encryption($password);&lt;br /&gt;
$password = base64_encode($password);&lt;br /&gt;
if($password == $db_password) .............&lt;/p&gt;
&lt;p&gt;I haven't studied the code in this script, but..... you&lt;br /&gt;
perform this same thing in two places, I think you&lt;br /&gt;
could manage to perfomr this in only one place,&lt;br /&gt;
rethinking the ifs should be enough.&lt;/p&gt;
&lt;p&gt;One thing more, is that, the encryption you perform is&lt;br /&gt;
not a one way encription(althoug as you have seen the&lt;br /&gt;
way you perform authentication doesn't work for me), If&lt;br /&gt;
I get the encrypted value in the DB, I can get the&lt;br /&gt;
password simply by passing that value to a php script.&lt;/p&gt;
&lt;p&gt;If you used a one way encryption solution, a brute&lt;br /&gt;
force attack would be necesary as you cannot retrieve&lt;br /&gt;
the password form the encrypted form, and so, the&lt;br /&gt;
proccess to authenticate is the one I put instead of yours.&lt;/p&gt;
&lt;p&gt;I'm using &lt;/p&gt;
&lt;p&gt;Windows 2000 Prof, adv sever, and XP home (same&lt;br /&gt;
behaviour in all of them)&lt;/p&gt;
&lt;p&gt;Postgresql 8 beta&lt;/p&gt;
&lt;p&gt;Php 4.3.5&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jose Manuel Molina</dc:creator><pubDate>Mon, 06 Sep 2004 16:17:13 -0000</pubDate><guid>https://sourceforge.net194e7539024a8b3d4382af64d19681890a9debe5</guid></item><item><title>Short Page header still has BCS initials</title><link>https://sourceforge.net/p/kronophobia/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;On some pages, v1.1-r3 uses BCS for school initials&lt;br /&gt;
instead of user-configured initials.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CoryJ</dc:creator><pubDate>Wed, 08 Oct 2003 21:02:19 -0000</pubDate><guid>https://sourceforge.neta5f47961086699d213a78173ab19c6cb477da98e</guid></item></channel></rss>