Bug 1353902 (CVE-2016-5007) - CVE-2016-5007 spring: Path matching inconsistency
Summary: CVE-2016-5007 spring: Path matching inconsistency
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2016-5007
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1353904 1353905
Blocks: 1353906
TreeView+ depends on / blocked
 
Reported: 2016-07-08 11:27 UTC by Adam Mariš
Modified: 2021-10-21 00:54 UTC (History)
22 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
It was found that differences in the strictness of Spring Security, and Spring Framework request mapping could lead to resources not being secured. An attacker could use this flaw to bypass authentication.
Clone Of:
Environment:
Last Closed: 2021-10-21 00:54:13 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Mariš 2016-07-08 11:27:59 UTC
Both Spring Security and the Spring Framework rely on URL pattern mappings for authorization and for mapping requests to controllers respectively. It was found that differences in the strictness of the pattern matching mechanisms, for example with regards to space trimming in path segments, can lead Spring Security to not recognize certain paths as not protected that are in fact mapped to Spring MVC controllers that should be protected.

Affected versions:

Spring Security 3.2.x, 4.0.x, 4.1.0
Spring Framework 3.2.x, 4.0.x, 4.1.x, 4.2.x
Other unsupported versions are also affected

Upstream patches:

https://github.com/spring-projects/spring-framework/commit/a30ab3
https://github.com/spring-projects/spring-security/commit/e4c13e

Upstream bug:

https://github.com/spring-projects/spring-security/issues/3964

External References:

https://pivotal.io/security/cve-2016-5007

Comment 1 Adam Mariš 2016-07-08 11:28:37 UTC
Created springframework-security tracking bugs for this issue:

Affects: fedora-all [bug 1353905]

Comment 2 Adam Mariš 2016-07-08 11:28:48 UTC
Created springframework tracking bugs for this issue:

Affects: fedora-all [bug 1353904]

Comment 3 Salvatore Bonaccorso 2016-07-10 17:35:59 UTC
Hi

There is a typo in the alias used for this bugzilla entry, I think it should be CVE-2016-5007. CVE-2015-5007 is an issue for IBM WebSphere Commerce.

HTH,

Salvatore

Comment 4 gil cattaneo 2016-07-12 08:39:07 UTC
(In reply to Salvatore Bonaccorso from comment #3)
> Hi
> 
> There is a typo in the alias used for this bugzilla entry, I think it should
> be CVE-2016-5007. CVE-2015-5007 is an issue for IBM WebSphere Commerce.
> 
> HTH,
> 
> Salvatore

hi
websphere support is not available in spring packages. was removed by default
So these bugs are invalid for us?
Regards
.g

Comment 5 Jason Shepherd 2016-07-14 05:15:10 UTC
This bug does not related to IBM Websphere. It only relates to Spring (Web), and Spring Security. There was as typo in the CVE name used for the flaw, it has now been updated to CVE-2016-5007


Note You need to log in before you can comment on or make changes to this bug.