PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_POP3 » Bug #2175

login() which uses DIGEST-MD5 always returns true.

Details

Submitted2004-08-20 12:15 UTC
Fromkmizuno9999 at yahoo dot co dot jp
Assigneddamian
StatusNo Feedback
PackageNet_POP3
PHP Version4.3.7
OSWindows XP
Roadmaps(Not assigned)

Comments

[2004-08-20 12:15 UTC] kmizuno9999 at yahoo dot co dot jp

Description:
------------
The login() method which uses DIGEST-MD5 regardless of server response returns true.
This situation is caused when the client sends invalid user or password.
The version number is 1.3.2

When mailserver returned "ERR" response, the method should return "false".

in _authDigest_MD5()
------------------------------------------------------------ if ( PEAR::isError($error = $this->_send( $auth_str ) ) ) {
return $error;
}

/**** here ****/
if ( PEAR::isError( $challenge = $this->_recvLn() ) ) { <-- it doesn't check server response.
/**** here ****/
return $challenge;
}

/*
* We don't use the protocol's third step because POP3 doesn't allow
* subsequent authentication, so we just silently ignore it.
*/

if ( PEAR::isError( $challenge = $this->_send("\r\n") ) ) {
return $challenge ;
}

/**** here ****/
if ( PEAR::isError( $challenge = $this->_recvLn() ) ) { <-- it doesn't check server response.
/**** here ****/
return $challenge;
}

return true;
------------------------------------------------------------