Hey guys, I changed my index and register yesterday morning and last night someone manages to get onto my account and change my name and my other managers name to 'Hacked'. I'm assuming as it hasn't happened before that there must be an exploit in my index/register?
I'm running Rev CMS and Phoenix 3.11.0 by neto373.
Can anyone please check through my index and register php code and tell me if there are any exploits that I need to patch up as I haven't got the slightest idea what I am looking for.
Index:
Register:PHP Code:<!DOCTYPE html><html lang="en"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><title>{hotelName} - Login</title> <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/global.css" type="text/css"><link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/index/base.css" type="text/css"></head><body><div class="BoxContainer"><div class="BoxHeader"><body background="{url}/app/tpl/skins/{skin}/index/bg.png"><img src="{url}/app/tpl/skins/habbo/images/logo.png" draggable="false" alt="MetroLogoM8" class="HotelLogo"></div><hr><div class="BackgroundContainer"><div class="LoginBox"><?php if(isset($template->form->error)) { echo '<div class="Message">'.$template->form->error.'</div>'; } error_reporting(0); ?><center><strong>Welcome to {hotelName}!</strong><p>Please login or register by pressing the button below!</p></center><form method="post"><b>Username</b> <input type="text" name="log_username" placeholder="Username..." id="us"><br><br><br><b>Password</b> <input type="password" name="log_password" placeholder="Password..." id="pw"><br><br><br><br><input type="submit" value="Login" name="login" style="margin-right:3px;"><input type="button" value="Register" onclick="location.href='{url}/register'"></form></div></div><hr><div id="footer" > <?php include('includes/footer.php'); ?> <?php include('includes/checktheban.php'); ?> </div> </body></html>
Thanks in advance for any help you can offer me :)PHP Code:<!DOCTYPE html><html lang="en"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><title>{hotelName} - Login</title> <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/global.css" type="text/css"><link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/index/base.css" type="text/css"></head><body><div class="BoxContainer"><div class="BoxHeader"><body background="{url}/app/tpl/skins/{skin}/index/bg.png"><img src="{url}/app/tpl/skins/habbo/images/logo.png" draggable="false" alt="MetroLogoM8" class="HotelLogo"></div><hr><div class="BackgroundContainer"><div class="LoginBox"><?php if(isset($template->form->error)) { echo '<div class="Message">'.$template->form->error.'</div>'; } error_reporting(0); ?><center><strong>Register on {hotelName}!</strong></center> <form method="post" id="phase-0-form"> <div id="error-messages-container"><?php if(isset($template->form->error)) { echo '<div class="error-messages-holder"><ul><li><p class="error-message">'.$template->form->error.'</p></li></ul></div>'; } ?></div> <div id="name-field-container"> <div class="field field-habbo-name"> <label for="habbo-name"><b>Username</b></label> <input type="text" id="habbo-name" size="35" value="<?php echo $template->form->reg_username; ?>" name="reg_username" class="text-field" maxlength="32">
</div> </div> <div class="field field-password"> <label for="password"><b>Password</b></label> <input type="password" id="password" size="35" name="reg_password" value="" class="password-field" maxlength="32"> </div> <div class="field field-password2"> <label for="password2"><b>Confirm Password</b></label> <input type="password" id="password2" size="35" name="reg_rep_password" value="" class="password-field" maxlength="32"> </div> <div class="field field-email"> <label for="email"><b>Email Address</b></label> <input type="text" id="email" size="35" name="reg_email" value="<?php echo $template->form->reg_email; ?>" class="text-field" maxlength="48"> </div> <br><br><br> <input type="submit" value="Register" name="register"> <input type="button" value="Cancel" onclick="location.href='{url}/'" style="float:right;margin-right:12px;"> </form> </div></div><hr><div id="footer" > <?php include('includes/footer.php'); ?> <?php include('includes/checktheban.php'); ?> </div> </body></div></html>



Reply With Quote


