Skip to main content
Participant
June 29, 2015
Question

String Index out of range: -1 | Intermittent Issue | Nessus Scan

  • June 29, 2015
  • 0 replies
  • 335 views

Hi All,

We have received the following error while running Nessus scan on our application [http]. " String index out of range: -1, java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1937) at coldfusion.runtime.CFPage.removeQuotes(CFPage.java:5542) at coldfusion.runtime.CFPage.GetHTTPRequestData(CFPage.java:5585) at coldfusion.runtime.CFPage.GetHTTPRequestData(CFPage.java:5554) ". This is an intermittent and has occured while doing a security scan. Please see the code that i have use below:

         <cfset reqData = getHTTPRequestData()>

         <cfif structKeyExists(reqData,"headers")>

         <cfif structKeyExists(reqData,"headers.X-Requested-With")>

                <cfif reqData.headers["X-Requested-With"] eq "XMLHttpRequest">

                 <cfsetting showdebugoutput="false">

                </cfif>

             </cfif>

         </cfif>

Can anyone please help me on this ?

regards,

Raghu N

    This topic has been closed for replies.