Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #20391

Re: How to detect that or determine if your server side script or javascript has been hacked?

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: How to detect that or determine if your server side script or javascript has been hacked?
Date 2013-06-22 13:12 +0000
Organization A noiseless patient Spider
Message-ID <kq47s3$jor$1@dont-email.me> (permalink)
References <e5abd2fe-dd94-4d84-8bad-277d87c242a9@googlegroups.com> <XnsA1E79A10E952eejj99@194.109.133.133> <fa737844-ec4d-4581-9c32-82e366b4eb96@googlegroups.com>

Show all headers | View raw


On Fri, 21 Jun 2013 21:19:01 -0700, justaguy wrote:

> You're a good guy and has been very helpful... let's forget about the
> two scenario speculation for a sec.  In the last few months some of my
> HTML FORM element returns double value... for instance,
> <form>
> <input type="text" id="quantity" name="quantity" size="3">
> </form>
> 
> And say, the user enter 1 for the input box.  But when the form is
> submitted,
> the value of FORM.quantity is strangely "1,1" instead of "1".
> I can't fathom that I change the value of this FORM element upon
> submission.
> So, how come?  It has happened several times.

First things first. Is your HTML validating?

Remember that Javascript acts on the document node tree that the browser 
generates from your html by using the dtd that you specify. If your html 
isn't valid for that dtd, then the browser may be applying your javascript 
to a document node tree that doesn't match the one you wrote the 
javascript to work on.

Oh, and check whether you have multiple inputs in the form with the same 
name or id values too.

-- 
Denis McMahon, denismfmcmahon@gmail.com

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to detect that or determine if your server side script or javascript has been hacked? justaguy <lichunshen84@gmail.com> - 2013-06-21 15:01 -0700
  Re: How to detect that or determine if your server side script or javascript has been hacked? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-06-22 00:56 +0200
    Re: How to detect that or determine if your server side script or javascript has been hacked? justaguy <lichunshen84@gmail.com> - 2013-06-21 21:19 -0700
      Re: How to detect that or determine if your server side script or javascript has been hacked? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-06-22 09:23 +0200
        Re: How to detect that or determine if your server side script or javascript has been hacked? justaguy <lichunshen84@gmail.com> - 2013-06-22 07:26 -0700
          Re: How to detect that or determine if your server side script or javascript has been hacked? justaguy <lichunshen84@gmail.com> - 2013-06-22 08:17 -0700
      Re: How to detect that or determine if your server side script or javascript has been hacked? Denis McMahon <denismfmcmahon@gmail.com> - 2013-06-22 13:12 +0000
        Re: How to detect that or determine if your server side script or javascript has been hacked? Tim Streater <timstreater@greenbee.net> - 2013-06-22 15:24 +0100
          Re: How to detect that or determine if your server side script or javascript has been hacked? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-22 18:13 +0200
            Re: How to detect that or determine if your server side script or javascript has been hacked? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-22 18:33 +0200
        Re: How to detect that or determine if your server side script or javascript has been hacked? justaguy <lichunshen84@gmail.com> - 2013-06-22 07:27 -0700
  Re: How to detect that or determine if your server side script or javascript has been hacked? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-06-21 23:20 -0300
    Re: How to detect that or determine if your server side script or javascript has been hacked? justaguy <lichunshen84@gmail.com> - 2013-06-21 21:20 -0700
  Re: How to detect that or determine if your server side script or javascript has been hacked? Stefan Weiss <krewecherl@gmail.com> - 2013-06-22 04:34 +0200
    Re: How to detect that or determine if your server side script or javascript has been hacked? justaguy <lichunshen84@gmail.com> - 2013-06-21 21:21 -0700
  Re: How to detect that or determine if your server side script or javascript has been hacked? Mike Duffy <Use.web.form@in.sig> - 2013-06-22 01:34 -0400

csiph-web