I have security vulnerabilities that I have to address for our TDS instances
that deal with server version information being displayed. This occurs on
EVERY page that comes up in the catalog at the very bottom and looks something
like this:
THREDDS Data Server [Version 5.0.0-beta9 - 2021-09-01T02:47:21+0000]
Documentation
Also, the Info page displays information, such as shown below.
* Webapp Name: THREDDS Data Server
* Webapp Version: 5.0.0-beta9
I am temporarily addressing the vulnerability by commenting out a few lines in
the following files:
- thredds##5.0.0-beta9/WEB-INF/templates/commonFragments.html
-
thredds##5.0.0-beta9/WEB-INF/jsp/thredds/server/serverinfo/serverInfo_html.jsp
Is there a better way to do this? Each time I update the TDS version, I have
to manually modify these files again. This is occurring in TDS 5 betas, but
also was present in TDS 4.x as well.
Thanks,
Mitchell Brown