View RSS Feed

Thiru

AppDos Vulnerability in java using BufferedReader.readLine()

Rate this Entry
by , 02-22-2012 at 10:08 AM (1680 Views)
Hi When my application is going through an Scanner I am getting AppDos Vulnerability with BufferedReader.readLine() can anyone help me out on this.My Sample code is as follows:

while((line = reader.readLine())!= null)
{

// Remove JavaScript
if (isPartOfString(SCRIPT_OPEN_TAG, 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;
}

//Replace images
if (isPartOfString("somestring", line) || isPartOfString("somestring", line))
{
continue;
}
}

Submit "AppDos Vulnerability in java using BufferedReader.readLine()" to Facebook Submit "AppDos Vulnerability in java using BufferedReader.readLine()" to Digg Submit "AppDos Vulnerability in java using BufferedReader.readLine()" to del.icio.us Submit "AppDos Vulnerability in java using BufferedReader.readLine()" to StumbleUpon Submit "AppDos Vulnerability in java using BufferedReader.readLine()" to Google

Comments