Results 1 to 2 of 2
  1. #1
    Thiru is offline Member
    Join Date
    Mar 2011
    Posts
    1
    Blog Entries
    1
    Rep Power
    0

    Default 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.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,516
    Rep Power
    25

    Default Re: AppDos Vulnerability while Using BufferedReader.readLine()

    I am getting AppDos Vulnerability while reading from a BufferedReader.
    Can you explain what "I am getting AppDos Vulnerability" means.

Similar Threads

  1. To check the vulnerability on a web page.
    By naive in forum Advanced Java
    Replies: 2
    Last Post: 04-12-2011, 07:17 AM
  2. readLine() for loop
    By Billywizz in forum New To Java
    Replies: 15
    Last Post: 04-06-2011, 11:37 AM
  3. Socket Programming Vulnerability!
    By nigamsir in forum Networking
    Replies: 1
    Last Post: 03-16-2010, 04:38 PM
  4. Replies: 10
    Last Post: 01-17-2009, 08:30 PM
  5. BufferedReader: readLine method problems
    By bbq in forum Advanced Java
    Replies: 2
    Last Post: 06-30-2007, 02:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •