Description
It was found that while parsing the SAML messages the StaxParserUtil class of keycloak before 2.5.1 replaces special strings for obtaining attribute values with system property. This could allow an attacker to determine values of system properties at the attacked system by formatting the SAML request ID field to be the chosen system property which could be obtained in the "InResponseTo" field in the response.
CVSS breakdown
CVSS 3.0
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
Affected products
- Red Hat / keycloak2.5.1 – 2.5.1
References
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2017:3220
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2017:3216
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2017:2809
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2018:2740
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2017:3218
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2017:2810
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2018:2741
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2018:2742
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2017:2808
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2019:0137
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2017:3219
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2019:0139
- PATCHhttps://github.com/keycloak/keycloak/pull/3715/commits/0cb5ba0f6e83162d221681f47b470c3042eef237
- MISChttp://www.securitytracker.com/id/1041707
- MISChttps://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-2582
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2019:0136
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2018:2743
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2017:3217
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2017:2811
- MISChttp://www.securityfocus.com/bid/101046