<?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/kronophobia/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/kronophobia/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/kronophobia/bugs/</id><updated>2004-09-06T16:17:13Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Error authenticating users</title><link href="https://sourceforge.net/p/kronophobia/bugs/2/" rel="alternate"/><published>2004-09-06T16:17:13Z</published><updated>2004-09-06T16:17:13Z</updated><author><name>Jose Manuel Molina</name><uri>https://sourceforge.net/u/jmmpascual/</uri></author><id>https://sourceforge.net194e7539024a8b3d4382af64d19681890a9debe5</id><summary type="html">&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;</summary></entry><entry><title>Short Page header still has BCS initials</title><link href="https://sourceforge.net/p/kronophobia/bugs/1/" rel="alternate"/><published>2003-10-08T21:02:19Z</published><updated>2003-10-08T21:02:19Z</updated><author><name>CoryJ</name><uri>https://sourceforge.net/u/k12linux/</uri></author><id>https://sourceforge.neta5f47961086699d213a78173ab19c6cb477da98e</id><summary type="html">&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;</summary></entry></feed>