Using either the phpass testing program http://www.openwall.com/phpass/phpass-0.3.tar.gz , or python-phpass, and using C? * | Y [j "KQ '% gf for a plain text password and $ P $ 9kS6tD8tVxajypvJ5837.bt2emepD8 / as a hash, doing:
<?php
The hash was from phpBB3 (3.0.10), and when I provide this phpBB3 password, it works correctly.
PhpBB3 is supposed to use phpass itself, making $ H $ instead of $ P $.
In this example, the database entry in phpBB3:
qlc4pi000000 "; 0;" 127.0.0.1 "; 1351902499;" testpass ";" testpass ";" $ H $ 9kS6tD8tVxajypvJ5837.bt2emepD8 / "; 1351902499; 0;" tp@inva.lid.com "; 266402289712;" '' '; 1351902544; 1351902499; 0; "''"; "''"; 0; 0; 0; 0; 0; 0; "en"; 0.00; 0; DM DM, Y g: IA "; 2; 0;" '' "; 0; 0; 0; 0; -3; 0; 0;" t "" g "; 0;" t "" a "; 0; 1; 0; 1; 1; 1; 1; 230271;" '' "; 0; 0; 0;" '' ";" '' ";" '' ";" ' '";"' '";"' '";" '' ";" '' ";" '' ";" '' ";" '' ";" '' ";" '' ";" '' ";" bf4ae169a5a21313 ", 1, 0; 0
The plain text password used in phpBB3 is [C? * | Y [j "KQ '% gf], and hash (converted from phpBB3 format [$ P $ 9kS6tD8tVxajypvJ5837.bt2emepD8 /] (both passwords and hash are between [])
Can someone shed some light on what is happening and why it does not work with phpass? This is on the same machine that the forums work on, and, again, it works on the phpBB3 forums, so I can log in. I just can not authenticate with phpass from the outside when I directly access the phpBB3 database. It works on other accounts, although these are only certain accounts on which it does not work.
source share