Results 1 to 2 of 2
-
AppDos Vulnerability while Using BufferedReader.readLine()
Hi When my application was ran through an Security Scanner I am getting AppDos Vulnerability while reading from a BufferedReader.
Here is my code goes...
void parse(reader, writer) {
String line = null;
while((line = reader.readLine())!= null)
{
// Remove JavaScript
if (isPartOfString("somestring", line))
{
while ((!isPartOfString("somestring", line)) && ((line = reader.readLine())!= null));
continue;
}
// Remove comments
if (isPartOfString("somestring", line))
{
while ((!isPartOfString("somestring", line)) && ((line = reader.readLine())!= null));
continue;
}
}
}
So.Could anyone please can tell me what could be the prevention for AppDos Vulnerability and How to implement that.
- 02-27-2012, 02:37 PM #2
Similar Threads
-
To check the vulnerability on a web page.
By naive in forum Advanced JavaReplies: 2Last Post: 04-12-2011, 08:17 AM -
readLine() for loop
By Billywizz in forum New To JavaReplies: 15Last Post: 04-06-2011, 12:37 PM -
Socket Programming Vulnerability!
By nigamsir in forum NetworkingReplies: 1Last Post: 03-16-2010, 05:38 PM -
Hi there, and i have little problem with readLine
By Chesh in forum New To JavaReplies: 10Last Post: 01-17-2009, 09:30 PM -
BufferedReader: readLine method problems
By bbq in forum Advanced JavaReplies: 2Last Post: 06-30-2007, 03:27 AM
Bookmarks