Amazon Linux AMI Security Advisory: ALAS-2018-972
Advisory Release Date: 2018-03-21 22:06 Pacific
Late application of security constraints can lead to resource exposure for unauthorised users:
Security constraints defined by annotations of Servlets in Apache Tomcat were only applied once a Servlet had been loaded. Because security constraints defined in this way apply to the URL pattern and any URLs below that point, it was possible - depending on the order Servlets were loaded - for some security constraints not to be applied. This could have exposed resources to users who were not authorised to access them. (CVE-2018-1305 )
Incorrect handling of empty string URL in security constraints can lead to unintended exposure of resources:
The URL pattern of "" (the empty string) which exactly maps to the context root was not correctly handled in Apache Tomcat when used as part of a security constraint definition. This caused the constraint to be ignored. It was, therefore, possible for unauthorised users to gain access to web application resources that should have been protected. Only security constraints with a URL pattern of the empty string were affected. (CVE-2018-1304 )
Run yum update tomcat7 to update your system.
Run yum update tomcat8 to update your system.