submitted for your amusement...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shawn Wilson

    submitted for your amusement...

    Hi,

    Thought you might get a kick out of this. It happened a few days ago.

    A couple years ago I set up a small database to hold the Portfolio information
    (we're an ad agency) of the company I work for. It had categories like Posters,
    Billboards, Logos, Jingles, etc. and examples of each. The PHP/MySQL backend
    fed the info to a Flash file, which displayed the text, graphics and
    multimedia.

    I was quite a bit less experienced then than I am now and decided not to
    password protect the directory I use to administer the database until the
    development was finished. There was no real data in it yet, so why bother?
    Needless to say, I forgot to password protect it, even after I entered the live
    data.

    Skip ahead to last week.

    My boss asked me to look at the Portfolio. It seems he was demonstrating it to
    a client and it was empty. Checking the DB from the command line, I realized
    all the data was gone. "Someone hacked the site!", was my first thought, but I
    quickly re-discovered that there was no password protection and my heart sank.
    "They just guessed at the URL and deleted everything", was my next thought. But
    I thought it weird that they'd delete everything, but not add a category like
    "Windoze sux0rs!" or something equally witty. I checked the logs, vowing to
    make the bastards pay. I found they did it about 2 weeks previous and noted
    their IP. I also noticed their browser was "ia_archive r", which rang a bell but
    I couldn't quite figure out where I knew that name. On to ARIN to look up who
    the IP belongs to... Answer: Alexa Internet. "Alexa" sounded familiar too.
    They make the toolbar I use to help track our sites' popularity. I wondered if
    they were also an ISP. Probably not, they didn't have many IP addresses.

    Then it hit me: the Alexa toolbar sends to Alexa the pages you visit. An Alexa
    bot then crawls the sites you visit and ranks them. The "delete" button on the
    portfolio script was a simple link, with only a Javascript confirmation (I'm the
    only one who updates the portfolio, so why bother with real buttons and a real
    confirmation screen?). So no JS means to confirmation. The Alexa bot crawled
    the site and deleted every damn record and I was the one who not only left the
    door open, but showed it where it was...

    Happy Ending: our hosting company had backup tapes. They sent me the files, I
    installed them and everything's back up and running.

    Oh, and I set up password protection :o)

    Shawn
    --
    Shawn Wilson
    shawn@glassgian t.com

  • rush

    #2
    Re: submitted for your amusement...

    "Shawn Wilson" <shawn@glassgia nt.com> wrote in message
    news:3F69FC97.F 037610D@glassgi ant.com...[color=blue]
    > Happy Ending: our hosting company had backup tapes. They sent me the[/color]
    files, I[color=blue]
    > installed them and everything's back up and running.[/color]

    well, if there were no tapes, maybe you would find your pages in Alexa
    internet archieve, I mean Alexa bot collected them for that purpose ;>>

    rush
    --




    Comment

    • Andy Hassall

      #3
      Re: submitted for your amusement...

      On Thu, 18 Sep 2003 15:42:31 -0300, Shawn Wilson <shawn@glassgia nt.com> wrote:
      [color=blue]
      >Then it hit me: the Alexa toolbar sends to Alexa the pages you visit. An Alexa
      >bot then crawls the sites you visit and ranks them. The "delete" button on the
      >portfolio script was a simple link, with only a Javascript confirmation (I'm the
      >only one who updates the portfolio, so why bother with real buttons and a real
      >confirmation screen?). So no JS means to confirmation. The Alexa bot crawled
      >the site and deleted every damn record and I was the one who not only left the
      >door open, but showed it where it was...[/color]

      Heh - ouch.

      This is covered in the HTML specification of course :-)



      "The "get" method should be used when the form is idempotent (i.e., causes no
      side-effects). Many database searches have no visible side-effects and make
      ideal applications for the "get" method.

      If the service associated with the processing of a form causes side effects
      (for example, if the form modifies a database or subscription to a service),
      the "post" method should be used."

      It's also why I'm hesitating running any sort of search engine on the intranet
      at work!

      --
      Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
      Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

      Comment

      • Savut

        #4
        Re: submitted for your amusement...

        He mean his mysql database content, and this can't be archived by a bot.


        "rush" <pipa@rush.aval on.hr> a écrit dans le message de
        news:bkcv55$fik $1@ls219.htnet. hr...[color=blue]
        > "Shawn Wilson" <shawn@glassgia nt.com> wrote in message
        > news:3F69FC97.F 037610D@glassgi ant.com...[color=green]
        > > Happy Ending: our hosting company had backup tapes. They sent me the[/color]
        > files, I[color=green]
        > > installed them and everything's back up and running.[/color]
        >
        > well, if there were no tapes, maybe you would find your pages in Alexa
        > internet archieve, I mean Alexa bot collected them for that purpose ;>>
        >
        > rush
        > --
        > http://www.templatetamer.com/
        >
        >
        >[/color]


        Comment

        • rush

          #5
          Re: submitted for your amusement...

          "Savut" <webki@hotmail. com> wrote in message
          news:Msnab.7707 $BT1.354429@new s20.bellglobal. com...[color=blue]
          > He mean his mysql database content, and this can't be archived by a bot.[/color]

          I understood that, I just made a joke. (as indicated by smilley at the end)

          rush
          --
          Get your very own domain easily. Fast and professional customer service.




          Comment

          • Shawn Wilson

            #6
            Re: submitted for your amusement...

            Andy Hassall wrote:[color=blue]
            >
            > On Thu, 18 Sep 2003 15:42:31 -0300, Shawn Wilson <shawn@glassgia nt.com> wrote:
            >[color=green]
            > >Then it hit me: the Alexa toolbar sends to Alexa the pages you visit. An Alexa
            > >bot then crawls the sites you visit and ranks them. The "delete" button on the
            > >portfolio script was a simple link, with only a Javascript confirmation (I'm the
            > >only one who updates the portfolio, so why bother with real buttons and a real
            > >confirmation screen?). So no JS means to confirmation. The Alexa bot crawled
            > >the site and deleted every damn record and I was the one who not only left the
            > >door open, but showed it where it was...[/color]
            >
            > Heh - ouch.
            >
            > This is covered in the HTML specification of course :-)
            >
            > http://www.w3.org/TR/html4/interact/...#submit-format
            >
            > "The "get" method should be used when the form is idempotent (i.e., causes no
            > side-effects). Many database searches have no visible side-effects and make
            > ideal applications for the "get" method.[/color]

            I realize that now. Like I said, I did this a while ago. I didn't see the harm
            at the time. I do now.

            I read and I forget.
            I see and I remember.
            I do and I understand.

            Shawn
            --
            Shawn Wilson
            shawn@glassgian t.com

            Comment

            Working...