Chumpy's simple password changer v1.0

Results 1 to 16 of 16
  1. #1
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Chumpy's simple password changer v1.0

    Another little addon for my simple reg page/cash shop which apparently i forgot to post here

    Download-> http://www.mediafire.com/download.php?nzgjzijmnkn

    Quote Originally Posted by readme.txt
    Chumpy's simple password changer v1.0
    =======================================

    This is designed to be an addon for my simple Cabal regpage v1.0 or my
    Cabal Cash Shop. It can work without them with some simple modding.

    This uses the regpage stylesheet and config so if yours is modified
    the password changer will have the same style.


    Can you do a "i forgot my password" function?
    ===============================================

    In a word - no. Why - security.

    We have nothing but the user and current password to check the user is
    actually the account owner. We have no email address or anything like
    that we can use to verify with.

    To explain simply imagine this:

    I am a player on your server and i forgot my password. I know my login
    and i want to go to a page, put in my login and get a new password.

    Some of you have spotted the problem here already.

    I am a player on your server and i just happen to know the login you
    use to get into the game (not the pass so i can't do anything with it).
    I go to the webpage and put your logon, get a new pass and i have now
    stolen your account.

    Don't even ask me to add this as i will not until it can be done securely.
    For now those players can go to a GM, get the GM to reset their pass and
    tell them what it is so they can now use the password changer to pick a
    new one. This way any stolen accounts aren't my fault.


    Notes
    =======

    It will only accept letters and numbers (upper and lower case) for logins
    and passwords (same as the reg page) to help prevent SQL injections. If you
    want to remove that check delete these 3 lines:

    if (!ctype_alnum($login)) $msg='<h3>Invalid login name.</h3>';
    if (!ctype_alnum($curpass)) $msg='<h3>Invalid current password.</h3>';
    if (!ctype_alnum($newpass)) $msg='<h3>Invalid new password.</h3>';

    Not allowing characters like ' and " and a bunch more will protect against
    common SQL injection tricks though. Use long login and password for better
    security.


    Insta... err, copying
    =======================

    Place password.php in the same folder as the reg.php on your webserver.

    If your regpage is www.mywebs.com/reg.php your password page is
    www.mywebs.com/password.php. Same thing with the cash shop.
    Last edited by chumpywumpy; 05-09-09 at 11:58 AM.


  2. #2
    xHTML/CSS/JS/Ruby LostSpirit is offline
    MemberRank
    Feb 2008 Join Date
    $ gem search -rLocation
    482Posts

    Re: Chumpy's simple password changer v1.0

    nice chumpy.
    this addon already knew

  3. #3
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Chumpy's simple password changer v1.0

    muhaha chumpy knows about the '=;' damn, didn`t had in mind to play a lil ^^

  4. #4
    Enthusiast Akrasiel is offline
    MemberRank
    Dec 2008 Join Date
    Bergamo - ItalyLocation
    42Posts

    Re: Chumpy's simple password changer v1.0

    nice, good!

  5. #5
    Apprentice Helvis is offline
    MemberRank
    Jan 2008 Join Date
    23Posts

    Re: Chumpy's simple password changer v1.0

    I found a bug.
    In the Old Password line, you can enter anything, and the password change. user who knows someone else's login may change your password.

    Sorry for my bad english

  6. #6
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Chumpy's simple password changer v1.0

    Crap, you are right. I posted the wrong version! Updated the link.

    Rather than download again open password.php and find this line:

    PHP Code:
    $r=mssql_query("update ".DB_ACC.".dbo.cabal_auth_table set [Password]='".md5($newpass)."' where [ID]='".$login."'"); 
    Replace with:

    PHP Code:
    $r=mssql_query("update ".DB_ACC.".dbo.cabal_auth_table set [Password]='".md5($newpass)."' where [ID]='".$login."' and [Password]='".md5($curpass)."'"); 
    Thanks for pointing it out

  7. #7
    Member cabal_br is offline
    MemberRank
    Nov 2008 Join Date
    61Posts

    Re: Chumpy's simple password changer v1.0

    re upload???

  8. #8
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Chumpy's simple password changer v1.0

    The download has the change in it already, i just posted the change in case people didn't want to re-download.

  9. #9
    Proficient Member Venax is offline
    MemberRank
    Jan 2009 Join Date
    169Posts

    Re: Chumpy's simple password changer v1.0

    link dead?

  10. #10
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Chumpy's simple password changer v1.0

    Quote Originally Posted by Venax View Post
    link dead?
    Oops, i did it again!

    I cleared out my mediafire account a few days ago and must have deleted the wrong copy (there were 2 in there). I did the same for one of my patches too.

    I'll fix it when i get home from work.

  11. #11
    Member xxdestruxx is offline
    MemberRank
    Sep 2008 Join Date
    BrasilLocation
    54Posts

    Re: Chumpy's simple password changer v1.0

    Link dead? :( ;x

  12. #12
    Member cabal_br is offline
    MemberRank
    Nov 2008 Join Date
    61Posts

    Re: Chumpy's simple password changer v1.0

    yes .... !!!!!!!!!!!!

  13. #13
    Apprentice sarapao1501 is offline
    MemberRank
    Dec 2007 Join Date
    5Posts

    Re: Chumpy's simple password changer v1.0

    Link dead

    re upload

  14. #14
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Chumpy's simple password changer v1.0


  15. #15
    Apprentice hawtkidxD is offline
    MemberRank
    Aug 2009 Join Date
    19Posts

    Re: Chumpy's simple password changer v1.0

    Still dead :(

  16. #16
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Chumpy's simple password changer v1.0

    Link fixed.



Advertisement