asp.net - CreateUserWizard Username and Email Enumeration -
i've been doing security review of our website , found issue createuserwizard. not let people sign duplicate email address or username. createuserwizard verify me problem can write script hit our server , try username , pretty list of username enumerating through them.
i want add recaptcha can't seem verify before verifies username. there way this?
<asp:createuserwizard id="createuserwizard1" runat="server" oncreateduser="createuserwizard1_createduser" continuedestinationpageurl="~/pleaseverify.aspx" cssclass="createuserwizard" stepnextbuttonstyle-cssclass="nextbutton" startnextbuttonstyle-cssclass="nextbutton" finishcompletebuttonstyle-cssclass="finishbutton" createuserbuttontext="create id" completesuccesstext="your account has been created, before can login must first verify email address. message has been sent email address specified. please check email inbox , follow instructions in email verify account." disablecreateduser="true" onsendingmail="createuserwizard1_sendingmail" duplicateusernameerrormessage="that username in use, if think can link removed otherwise try different username." duplicateemailerrormessage="that email in use, try <a href='/forgotpassword.aspx'>recover password</a>." invalidpassworderrormessage="please supply @ least 5 letters in password.">
i don't believe username validated on client side, override createuserwizard's createusererror event handler, check captcha , not pass error username being in use. use custom control captcha pieced www.codinghorror.com (http://www.codinghorror.com/blog/2004/11/captcha-control-coda.html), , triggers before backend code attempts create user , determines username/email in use.
Comments
Post a Comment