The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

The World's Worst Security System

Last post 08-01-2007 4:32 PM by fist-poster. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 07-31-2007 6:37 PM

    The World's Worst Security System

    function Login(){
    var done=0;
    var username=document.login.username.value;
    username=username.toLowerCase();
    var password=document.login.password.value;
    password=password.toLowerCase();
    if (username=="tshm" && password=="thebigpicture") { window.location="image_download.shtm"; done=1; }
    if (username=="kevin" && password=="tshm") { window.location="image_download.shtm"; done=1; }
    if (username=="member3" && password=="password3") { window.location="page3.html"; done=1; }
    if (done==0) { alert("Invalid login!"); }
    }

     

    Guess what?  It's unencrypted and found in the source of the login page.

     

  • 07-31-2007 7:41 PM In reply to

    Re: The World's Worst Security System

    lgeekery:
    function Login(){
    var done=0;
    var username=document.login.username.value;
    username=username.toLowerCase();
    var password=document.login.password.value;
    password=password.toLowerCase();
    if (username=="tshm" && password=="thebigpicture") { window.location="image_download.shtm"; done=1; }
    if (username=="kevin" && password=="tshm") { window.location="image_download.shtm"; done=1; }
    if (username=="member3" && password=="password3") { window.location="page3.html"; done=1; }
    if (done==0) { alert("Invalid login!"); }
    }

    Guess what?  It's unencrypted and found in the source of the login page.

    The hardest thing with this one is deciding where to start with describing the wrongness...

    Maybe... why is one member's user name another member's password? What is the mystery behind page3.htm? Which members have acess to page2.htm and page1.htm? What horrible tale of forgotten passwords has the toLowerCase to tell? The questions... they're burning...

  • 07-31-2007 9:24 PM In reply to

    Re: The World's Worst Security System

    PSWorx:
    lgeekery:
    function Login(){
    var done=0;
    var username=document.login.username.value;
    username=username.toLowerCase();
    var password=document.login.password.value;
    password=password.toLowerCase();
    if (username=="tshm" && password=="thebigpicture") { window.location="image_download.shtm"; done=1; }
    if (username=="kevin" && password=="tshm") { window.location="image_download.shtm"; done=1; }
    if (username=="member3" && password=="password3") { window.location="page3.html"; done=1; }
    if (done==0) { alert("Invalid login!"); }
    }

    Guess what?  It's unencrypted and found in the source of the login page.

    The hardest thing with this one is deciding where to start with describing the wrongness...

    Maybe... why is one member's user name another member's password? What is the mystery behind page3.htm? Which members have acess to page2.htm and page1.htm? What horrible tale of forgotten passwords has the toLowerCase to tell? The questions... they're burning...

     

    What happens, exactly, if you just... go to image_download.shtm?

    --Edward Dassmesser
  • 07-31-2007 9:27 PM In reply to

    Re: The World's Worst Security System

    An amazing thing called... a 404 error.  (Yes, it does get worse.  They didn't even put in the correct links.   Both cases of shtm should be shtml.)
  • 08-01-2007 1:35 AM In reply to

    Re: The World's Worst Security System

    Certainly stupid, but we've seen worse. Heck, you can find a worse security system at any US airport.
  • 08-01-2007 11:06 AM In reply to

    Re: The World's Worst Security System

    asuffield:
    Certainly stupid, but we've seen worse. Heck, you can find a worse security system at any US airport.

     

    You know, it's not generally considered kouth to point out that the Emperor has no clothes... 

  • 08-01-2007 2:05 PM In reply to

    Re: The World's Worst Security System

    lgeekery:
    Guess what?  It's unencrypted and found in the source of the login page.

    Real men do, of course, encrypt their javascript, kind of like this: http://halcy.de/code/rot13/rot13ajax.pl (Beat that for "ajax abuse" ;) ) 

  • 08-01-2007 4:32 PM In reply to

    Re: The World's Worst Security System

    TODO: Add users "member4" and "member5"

    Some kids' stuff? 

Page 1 of 1 (8 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems