Just checked out the original version of b2 Wordpress was forked from and could immediately spot a SQL injection which I can use to take over the whole site:
$log = $HTTP_POST_VARS["log"];
<..>
$user_login=$log;
<..>
SELECT ID, user_login, user_pass FROM $tableusers WHERE user_login = '$user_login' AND MD5(user_pass) = '$password'
Later it also stores the hashed password as a cookie.