nil.enroll(aetheric_username, quantum_class_id) (adric) wrote,
nil.enroll(aetheric_username, quantum_class_id)
adric

This was not the joke I found.

from Moodle lib/libmoodle.php
} else {
    for ($i=1; $i<=20; $i++) { //20 alternative salts should be enough, right?
        $alt = 'passwordsaltalt'.$i;
        if (!empty($CFG->$alt)) {
            if ($user->password == md5($password.$CFG->$alt) or 
              $user->password == md5($convpassword.$CFG->$alt)) {
                $validated = true;
                break;
            }
        }
    }
}

Somehow WordPress not using salts at all now seems somehow slightly better.

Tags: bug
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments