Highlighted

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

New Here ,
Jun 29, 2015

Copy link to clipboard

Copied

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

Views

276

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

New Here ,
Jun 29, 2015

Copy link to clipboard

Copied

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

Views

277

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 29, 2015 0

Have something to add?

Join the conversation