A flaw was found in Keycloak 3.4.3.Final, 4.0.0.Beta2, 4.3.0.Final. When using 'responsemode=formpost' it is possible to inject arbitrary Javascript-Code via the 'state'-parameter in the authentication URL. This allows an XSS-Attack upon succesfully login.
{
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:redhat:single_sign-on:7.2:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "7.2"
},
{
"last_affected": "7.2"
},
{
"introduced": "7.2"
},
{
"last_affected": "7.2"
}
],
"source": "CPE_STRING",
"vendor_product": "redhat:single_sign-on"
}
]
}{
"cpe": [
"cpe:2.3:a:redhat:keycloak:3.4.3:*:*:*:*:*:*:*",
"cpe:2.3:a:redhat:keycloak:4.0.0:beta2:*:*:*:*:*:*",
"cpe:2.3:a:redhat:keycloak:4.3.0:*:*:*:*:*:*:*"
],
"source": "CPE_STRING",
"extracted_events": [
{
"introduced": "3.4.3"
},
{
"last_affected": "3.4.3"
},
{
"introduced": "4.0.0-beta2"
},
{
"last_affected": "4.0.0-beta2"
},
{
"introduced": "4.3.0"
},
{
"last_affected": "4.3.0"
}
]
}