Skip to main content
roberth55706517
Level 4
April 29, 2020
Solved

Veracode triggering on ResourceResolver.findResource()

It looks like Veracode does not like executing queries using the ResourceResolver.findResource() method. ResourceResolver doesn't have a parameterized version. Has anyone been able to resolve this issue? The customer I am working fore requires that all Very High to Low risk assessments are removed.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
April 30, 2020

what exactly is Veracode complaining about?

 

The method signature is

 

java.util.Iterator<Resource>findResources(java.lang.String query, java.lang.String language)

 

So I womder what Veracode is complaining about, all parameters are strongly typed.

4 replies

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
April 30, 2020

what exactly is Veracode complaining about?

 

The method signature is

 

java.util.Iterator<Resource>findResources(java.lang.String query, java.lang.String language)

 

So I womder what Veracode is complaining about, all parameters are strongly typed.

Translate
Level 2
March 21, 2024

Getting veracode CWE-99 issue for the below syntax? what is the exact solution for it Can anyone please help me on this?
resourceResolver.getResource(damPath)

Translate
joerghoh
Adobe Employee
Adobe Employee
March 21, 2024

CWE-99 is described here (Mitre) as Insufficient input check: 

 

The product receives input from an upstream component, but it does not restrict or incorrectly restricts the input before it is used as an identifier for a resource that may be outside the intended sphere of control.

 

I assume that you read the provided parameter directly from request parameter, which everyone doing this call can influence. 
 
Translate