oss-sec mailing list archives

Re: Fwd: [SECURITY] CVE-2018-1304 Security constraints mapped to context root are ignored


From: Mark Thomas <markt () apache org>
Date: Fri, 23 Feb 2018 09:25:55 +0000

On 23/02/18 04:29, Doran Moppert wrote:
On Feb 23 2018, Mark Thomas wrote:
CVE-2018-1304 Security constraints mapped to context root are ignored

Mitigation:
Users of the affected versions should apply one of the following
mitigations:
- Review security constraints and confirm none use a URL patten of ""
  (the empty string)

Will a URL pattern of "/" correctly protect the context root of
vulnerable versions?  If so, this seems worth mentioning.

The problem typically occurs with security annotations on servlets. In
this case the security annotations pick up the mappings from the servlet
they are annotating. If you changed the servlet mapping from "" to "/"
that would almost certainly significantly change the behaviour of the
web application since you are changing the mapping from "exact match to
context root" to "default servlet".

Mark


Current thread: