Skip to content

Commit 5e9ead3

Browse files
author
root
committedFeb 16, 2012
Fix 0013901: SOAP API allows invoking methods without proper authentication
Note: only applied to 1.2.x not 'next', as the code is changing anyway
1 parent af78d81 commit 5e9ead3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎api/soap/mc_api.php

+5
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ function mci_check_login( $p_username, $p_password ) {
5151

5252
# do not use password validation.
5353
$p_password = null;
54+
} else {
55+
if( is_blank( $p_password ) ) {
56+
# require password for authenticated access
57+
return false;
58+
}
5459
}
5560

5661
if( false === auth_attempt_script_login( $p_username, $p_password ) ) {

0 commit comments

Comments
 (0)