![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have never in my life seen anything like this. One of my websites was hacked tonight by a hacker who was able to send a DoS-related viral packet of data through a text field on my site that has maxlength="50" |
|
Can anyone tell me how on earth that is possible? |
#3
| |||
| |||
|
|
I have never in my life seen anything like this. One of my websites was hacked tonight by a hacker who was able to send a DoS-related viral packet of data through a text field on my site that has maxlength="50" - - Can anyone tell me how on earth that is possible? |
#4
| |||
| |||
|
|
I have never in my life seen anything like this. One of my websites was hacked tonight by a hacker who was able to send a DoS-related viral packet of data through a text field on my site that has maxlength="50" (the data packet itself was about 1024 bytes in length, and several packets were sent). Can anyone tell me how on earth that is possible? |
|
... , and how do I stop them? |
#5
| |||
| |||
|
|
I have never in my life seen anything like this. One of my websites was hacked tonight by a hacker who was able to send a DoS-related viral packet of data through a text field on my site that has maxlength="50" (the data packet itself was about 1024 bytes in length, and several packets were sent). Can anyone tell me how on earth that is possible? I can't even duplicate that or come close to it, and yet someone has not only done it but done it repeatedly, and how do I stop them? |
#6
| |||
| |||
|
|
phillip.s.powell (AT) gmail (DOT) com wrote: I have never in my life seen anything like this. One of my websites was hacked tonight by a hacker who was able to send a DoS-related viral packet of data through a text field on my site that has maxlength="50" - - Can anyone tell me how on earth that is possible? Read Alan's reply carefully. It's a bit harsh (almost as harsh as I intended to write...), but you may need that. To demonstrate how it is not just possible but extremely easy, copy the page (or any form that has a maxlength attribute in a <textarea element) onto your local disk, open the page in any editor, add a <base href="..."> element where "..." is the absolute address of the original page (this might not be needed), and edit the <textarea> element by removing the maxlength attribute or by changing it to maxlength="42424242". Then open the page in a browser and submit as much data as you like. (Browsers may actually impose some limitations on the size of textarea data or on form data as a whole, but if they do, the limitations allow much larger bulks of data than 50 characters.) Of course, people who want to make DoS attacks know how to do such things more efficiently, e.g. just look at the action attribute you have, resolve it to an absolute address, and use a program of their own to send anything they like to that address, at an unreasonable rate. Much of this can be automated, so that they can attack a million servers at a time. |
#7
| |||
| |||
|
|
... hacked tonight by a hacker who was able to send a DoS-related viral packet of data through a text field on my site that has maxlength="50" Changing or removing maxlength="50" would be the work of a moment and you can't stop it from happening. All you can do it cope with the results. |
#8
| |||
| |||
|
|
... hacked tonight by a hacker who was able to send a DoS-related viral packet of data through a text field on my site that has maxlength="50" Changing or removing maxlength="50" would be the work of a moment and you can't stop it from happening. All you can do it cope with the results. I'm one of those people that is still learning to use ASP as one method of doing server side programming. |
|
If I had a program that accepted parameters like this, would this be an adequate method of coping? size = Request.form("width") if size="" then size=Request.QueryString("width") if len(size)>50 then size="default" |
|
Or should I search for a method of eliminating that variable from the form or query string completely with the equivalent of form("width")="" (I have no idea if that's even a valid code). If I merely use these parameters in text mode, as names or numbers, does this still mean that it can be used in some way that I don't intend, as I assume that the success of such an attack depends on the code on my page? |
#9
| |||
| |||
|
|
... hacked tonight by a hacker who was able to send a DoS-related viral packet of data through a text field on my site that has maxlength="50" Changing or removing maxlength="50" would be the work of a moment and you can't stop it from happening. All you can do it cope with the results. I'm one of those people that is still learning to use ASP as one method of doing server side programming. If I had a program that accepted parameters like this, would this be an adequate method of coping? size = Request.form("width") if size="" then size=Request.QueryString("width") if len(size)>50 then size="default" |
|
If I merely use these parameters in text mode, as names or numbers, does this still mean that it can be used in some way that I don't intend, as I assume that the success of such an attack depends on the code on my page? |
#10
| |||
| |||
|
|
If I merely use these parameters in text mode, as names or numbers, does this still mean that it can be used in some way that I don't intend, as I assume that the success of such an attack depends on the code on my page? It all depends on how the input is going to be used. If anything -- a browser, an operating system shell, a database engine -- is going to be doing any sort of processing or execution of the input, then it's potentially exploitable, and you need to actively guard against it. |
![]() |
| Thread Tools | |
| Display Modes | |
| |