![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
There is a name for this type of exploit, which unfortunately has slipped my mind. Googling for "javascript injection" or "html form exploit" might give you some leads though. Cross site scripting. |
#12
| |||
| |||
|
|
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" No: that's focusing on the wrong part of the problem. Chances are, the value of the "width" attribute, while interesting, is not something the server is particularly interested in getting from the form. |
#13
| |||
| |||
|
#14
| |||
| |||
|
|
Just wondering: how much would the striptags function protect you from attacks like this? |
#15
| ||||
| ||||
|
|
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? |
|
page_with_form_on_it.html $ vi page_with_form_on_it.html |
|
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? |
|
___/_|\_\__\_\ |*| Houston, TX, USA |
#16
| |||
| |||
|
|
No: that's focusing on the wrong part of the problem. Chances are, the value of the "width" attribute, while interesting, is not something the server is particularly interested in getting from the form. Sorry, Joel, I realize I used a reserved word (though my page worked just fine as long as a number was typed on the form). In the case of the page I'm testing, I did want to specify the size, so "width" was what I wanted to set, so to avoid confusion, here is what I ended up with ... |
|
And if you want to see it in action, try my test page http://www.mazes.com/asp-maze/test-maz.asp |
#17
| |||
| |||
|
|
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? ---------------------------------------------------------- I'm a little confused by this. The fact that you read some virus code in a textarea field doesn't mean that your computer now has a virus infection, it depends on what you do with the data. The only way I know of that this could directly produce a virus infection is if you tried to read it into a 50 byte area and it overflowed into code. Another way it might produce a virus is if you tried to pipe it to another DOS program. Is that what happened? How did you know it was a DOS-related virus? |
#18
| |||
| |||
|
#19
| |||
| |||
|
#20
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |