HighDots Forums  

Hacker was able to send virus via text field maxlength="50" - HOW?

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Hacker was able to send virus via text field maxlength="50" - HOW? in the HTML forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
phillip.s.powell@gmail.com
 
Posts: n/a

Default Re: Hacker was able to send virus via text field maxlength="50" - HOW? - 10-03-2005 , 10:27 AM






It's not so trivial. Like I said before, I utilize server-side
validation as well as client-side validation that checks strictly for
length of submittal along with using Regular Expressions to determine
if the data is purely alphanumeric.

Now tell me this, how can they bypass SERVER-side validation?

Phil


Reply With Quote
  #22  
Old   
phillip.s.powell@gmail.com
 
Posts: n/a

Default Re: Hacker was able to send virus via text field maxlength="50" - HOW? - 10-03-2005 , 10:29 AM






Does this also apply to server-side validation as well, as I have that,
in the PHP script (trivia.php) and in the CGI that it goes to after
successful client-side validation and server-side validation back upon
trivia.php?

Phil


Reply With Quote
  #23  
Old   
James A. Donald
 
Posts: n/a

Default Re: Hacker was able to send virus via text field maxlength="50" - HOW? - 10-03-2005 , 02:33 PM



On 3 Oct 2005 08:27:00 -0700, "phillip.s.powell (AT) gmail (DOT) com"
<phillip.s.powell (AT) gmail (DOT) com> wrote:
Quote:
It's not so trivial. Like I said before, I utilize server-side
validation as well as client-side validation that checks strictly for
length of submittal along with using Regular Expressions to determine
if the data is purely alphanumeric.

Now tell me this, how can they bypass SERVER-side validation?
Apache is a complicated thing with lots of flaws, and all the modules
that tend to be loaded onto Apache are complicated things with lots of
flaws.

So you are not providing enough information, and in fact, if you found
the relevant information, you would probably have already figured out
the answer.

You have not shown us these server side checks, nor where in the long
and complicated process of Apache responding to a request these server
side checks are applied.

I was going through the configuration files of my apache server, and
it is a nightmare. There is so many twisted and unexpected ways
someone might be able to access stuff.

Ideally you want to intercept at every stage, and perform whatever
sanity checks are appropriate at every stage. Make all requests are
well formed. Any request must fit one of a certain set of known
patterns. If it does not, then 404 it.


--
http://www.jim.com


Reply With Quote
  #24  
Old   
Jan Roland Eriksson
 
Posts: n/a

Default Re: Hacker was able to send virus via text field maxlength="50" - HOW? - 10-03-2005 , 06:41 PM



On Mon, 03 Oct 2005 12:33:59 -0700, James A. Donald <jamesd (AT) echeque (DOT) com>
wrote:

Quote:
On 3 Oct 2005 08:27:00 -0700, "phillip.s.powell (AT) gmail (DOT) com"
phillip.s.powell (AT) gmail (DOT) com> wrote:
It's not so trivial. Like I said before, I utilize server-side
validation as well as client-side validation that checks strictly for
length of submittal along with using Regular Expressions to determine
if the data is purely alphanumeric.

Now tell me this, how can they bypass SERVER-side validation?

Apache is a complicated thing with lots of flaws,
You may want to qualify that statement of yours ?

Quote:
and all the modules that tend to be loaded onto Apache are
complicated things with lots of flaws.
Once again, your qualification of that statement will be welcome,
especially as seen in the light that a vast majority of web servers
around the world are running apache on (li/u)nix.

Any one here remember what happened when MS purchsed Hotmail and tried
to move that entity over to Windows based servers ?

--
Rex




Reply With Quote
  #25  
Old   
Miguel Cruz
 
Posts: n/a

Default Re: Hacker was able to send virus via text field maxlength="50" - HOW? - 10-03-2005 , 11:03 PM



phillip.s.powell (AT) gmail (DOT) com <phillip.s.powell (AT) gmail (DOT) com> wrote:
Quote:
It's not so trivial. Like I said before, I utilize server-side
validation as well as client-side validation that checks strictly for
length of submittal along with using Regular Expressions to determine
if the data is purely alphanumeric.

Now tell me this, how can they bypass SERVER-side validation?
Without seeing the code you are using, that question is imposible to answer
with any specificity. The short answer is that the code was most likely
flawed.

miguel
--
Hit The Road! Photos from 36 countries on 5 continents: http://travel.u.nu
Latest photos: Macau; Queens Day in Amsterdam; Grand Canyon; Amman, Jordan


Reply With Quote
  #26  
Old   
phillip.s.powell@gmail.com
 
Posts: n/a

Default Re: Hacker was able to send virus via text field maxlength="50" - HOW? - 10-04-2005 , 01:33 PM



I didn't reproduce the code because I felt it would be out of scope
considering this is an HTML forum, and my server-side code is in both
PHP and TCL.

I can do so, however, if you wish.

Phil

Miguel Cruz wrote:
Quote:
phillip.s.powell (AT) gmail (DOT) com <phillip.s.powell (AT) gmail (DOT) com> wrote:
It's not so trivial. Like I said before, I utilize server-side
validation as well as client-side validation that checks strictly for
length of submittal along with using Regular Expressions to determine
if the data is purely alphanumeric.

Now tell me this, how can they bypass SERVER-side validation?

Without seeing the code you are using, that question is imposible to answer
with any specificity. The short answer is that the code was most likely
flawed.

miguel
--
Hit The Road! Photos from 36 countries on 5 continents: http://travel.u.nu
Latest photos: Macau; Queens Day in Amsterdam; Grand Canyon; Amman, Jordan


Reply With Quote
  #27  
Old   
Miguel Cruz
 
Posts: n/a

Default Re: Hacker was able to send virus via text field maxlength="50" - HOW? - 10-04-2005 , 02:19 PM



phillip.s.powell (AT) gmail (DOT) com <phillip.s.powell (AT) gmail (DOT) com> wrote:
Quote:
Miguel Cruz wrote:
phillip.s.powell (AT) gmail (DOT) com <phillip.s.powell (AT) gmail (DOT) com> wrote:
It's not so trivial. Like I said before, I utilize server-side
validation as well as client-side validation that checks strictly for
length of submittal along with using Regular Expressions to determine
if the data is purely alphanumeric.

Now tell me this, how can they bypass SERVER-side validation?

Without seeing the code you are using, that question is imposible to answer
with any specificity. The short answer is that the code was most likely
flawed.

I didn't reproduce the code because I felt it would be out of scope
considering this is an HTML forum, and my server-side code is in both
PHP and TCL.

I can do so, however, if you wish.
Well, you're right, this probably isn't the forum for it. But the answer to
your question ultimately does rest there. As others have explained, HTML
(i.e. 'maxlength') is irrelevant to people's ability to send any amount of
data to your server-side application.

miguel
--
Hit The Road! Photos from 36 countries on 5 continents: http://travel.u.nu
Latest photos: Hong Kong; Macau; Queens Day in Amsterdam; Grand Canyon


Reply With Quote
  #28  
Old   
James A. Donald
 
Posts: n/a

Default Re: Hacker was able to send virus via text field maxlength="50" - HOW? - 10-04-2005 , 08:24 PM



James A. Donald
Quote:
Apache is a complicated thing with lots of flaws,
Jan Roland Eriksson
Quote:
You may want to qualify that statement of yours ?

and all the modules that tend to be loaded onto Apache are
complicated things with lots of flaws.

Once again, your qualification of that statement will be welcome,
especially as seen in the light that a vast majority of web servers
around the world are running apache on (li/u)nix.
I don't mean to dis Apache. Getting Apache secure is hard, but then
it is also hard using microsoft.



--
http://www.jim.com


Reply With Quote
  #29  
Old   
phillip.s.powell@gmail.com
 
Posts: n/a

Default Re: Hacker was able to send virus via text field maxlength="50" - HOW? - 10-05-2005 , 08:46 AM



I guess the inevitable question therein is this: What's the point in
maxlength if it ultimately serves no purpose in enforcing just what it
is advertised to do? You might as well stop using it!

Phil

Miguel Cruz wrote:
Quote:
phillip.s.powell (AT) gmail (DOT) com <phillip.s.powell (AT) gmail (DOT) com> wrote:

I didn't reproduce the code because I felt it would be out of scope
considering this is an HTML forum, and my server-side code is in both
PHP and TCL.

I can do so, however, if you wish.

Well, you're right, this probably isn't the forum for it. But the answer to
your question ultimately does rest there. As others have explained, HTML
(i.e. 'maxlength') is irrelevant to people's ability to send any amount of
data to your server-side application.

miguel
--
Hit The Road! Photos from 36 countries on 5 continents: http://travel.u.nu
Latest photos: Hong Kong; Macau; Queens Day in Amsterdam; Grand Canyon


Reply With Quote
  #30  
Old   
Chris Morris
 
Posts: n/a

Default Re: Hacker was able to send virus via text field maxlength="50" - HOW? - 10-05-2005 , 08:59 AM



"phillip.s.powell (AT) gmail (DOT) com" <phillip.s.powell (AT) gmail (DOT) com> writes:
Quote:
I guess the inevitable question therein is this: What's the point in
maxlength if it ultimately serves no purpose in enforcing just what it
is advertised to do? You might as well stop using it!
It can be advisory to the user - their browser may stop them typing
more than 50 characters if that is all that's allowed, as a reminder
that they have typed too much.

On the other hand, since most browsers don't give an obvious warning
that you've reached maxlength and just silently swallow additional
characters, it could also be harmful to the user by making misentry
more likely if they hit a key twice by mistake (and so send 011234
instead of 012345)

maxlength is a feature that might (or might not) stop accidental
mistypes needing a round-trip to the server. It can, sometimes, be
quite good at that.
(I'm surprised there's no 'minlength' attribute for password change
forms, which might be somewhat more useful)

--
Chris


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.