I was wonderring if it was possible to change the 'true' to 'false' in the login check, or if there's an XSS method?
I'd like to be able to get through but I'm not looking for a straight-out answer, making this no real challenge, instead pointers would be great.
Thanks in advance!
~K
- Code: Select all
<script type="text/javascript">
function logIn(){
var lIcon = '<img src="editor_images/indicator.gif" />';
var login_a = jQuery("#login_a").val();
var pass_a = jQuery("#pass_a").val();
//
if(login_a != "" && pass_a != ""){
jQuery("#logempty").html(lIcon);
jQuery("#logempty").fadeIn();
jQuery.ajax({
type: "POST",
url: "admin.php",
data: "extramode=login&login_a="+encodeURIComponent(login_a)+"&pass_a="+encodeURIComponent(pass_a),
success: function(data){
//alert(data);
if(data == 'OK'){
var Url = 'admin.php?';
if(jQuery("#LiveEdit").attr('checked')==true)
var Url = Url+'&LiveEdit=1';
jQuery(".fheader").text("Preloading content...");
jQuery("#mainLoginTable").fadeOut();
jQuery("#mainLoginTd").css({'padding':'10px'});
jQuery("#mainLoginTd").html(lIcon);
window.location.href=Url;
} else if (data == 'FAIL'){
jQuery("#loginMsg").html("<strong>Password (or login) is incorrect!</strong><br /><br />");
jQuery("#logempty").fadeOut();
}
}
});
}
}
</script>


