Jump to content

stoogle1

Member
  • Posts

    2
  • Joined

  • Last visited

Everything posted by stoogle1

  1. So i setup auto auth between my current system and whmcs. I wanted to test the security on this and the what ifs as you should always do. It logs in fine when a user on my program has a matching email on whmcs side also. As it should. So i thought what if the session didnt pass the email address and it was blank. So I put a stop in place in case the email address in the session on my side was blank to echo out to contact support and then kill. That works fine. BUT If a email address IS in the session but DOESNT match one in WHMCS users, it will login as another user. Am i missing another check in the autoauth to make sure the email address matches? Below is what im using: <?php include(BASE_URL . 'includes/globals.php'); ?> <?php $username = ($_SESSION["Username"]); $password = ($_SESSION["password"]); $email = ($_SESSION["EmailAddress"]); /* WHMCS AutoAuth script */ # Define WHMCS URL & AutoAuth Key $whmcsurl = "http://*********/support/clientarea.php"; $autoauthkey = "**********"; $timestamp = time(); # Get current timestamp $goto = "clientarea.php"; $hash = sha1($email.$timestamp.$autoauthkey); # Generate Hash if(!isset($email)) { echo "Error, Please contact I.T. Department to get access to this area $email</p>"; echo "Call ****** or email ******"; exit; } else{ # Generate AutoAuth URL & Redirect $url = $whmcsurl."?email=$email&timestamp=$timestamp&hash=$hash&goto=".urlencode($goto); echo "<meta http-equiv='refresh' content='0;$url' />"; exit; } ?>
  2. Hi everyone, i have noticed that in the email template area and the admin backend under the user details you can display the users password in plain text. I would like to do this on the client side for something im putting together. However if i edit the template file i have not been able to find something that works yet. Does anyone know how to do this? For example, i can display the users email address using {$loggedinuser.client_password} similar goes for their other details. But as i said im trying to display their password. I have tried these with no luck: {$loggedinuser.client_password} {$loggedinuser.password} Any help on how i would go about this would be greatly appreciated.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated