• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Jun 29, 2015 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

310

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
community guidelines
no replies

Have something to add?

Join the conversation
Resources
Documentation