You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggestion: isolate the changes to FHIRServletContextListener and FHIRRestServletFilter.
you can construct the set/map in the context listener and use something like event.getServletContext().setAttribute(FHIRPersistenceHelper.class.getName(), persistenceHelper);
we're thinking we might need the map so that we're not actually "using the user input" directly when we do the filesystem access.
then get it back out in the servlet filter to verify it tenant id is valid.
you can use FHIRConfiguration.getConfiguredTenants() to get the list of directories.
Currently, when a request comes in with an X-FHIR-TENANT-ID header value, we:
/
or.
); thenDespite the input validation, CodeQL is flagging that as a potential vulnerability.
We think we can make that warning go away by flipping our processing.
The text was updated successfully, but these errors were encountered: