{"id":"CVE-2020-5222","aliases":["CVE-2020-5222","GHSA-mh8g-hprg-8363"],"related":[],"kind":"vulnerability","state":"published","title":"Hard-Coded Key Used For Remember-me Token in OpenCast","summary":"Opencast before 7.6 and 8.1 enables a remember-me cookie based on a hash created from the username, password, and an additional system key. This means that an attacker getting access to a remember-me token for one server can get access to all servers which allow log-in using the same credentials without ever needing the credentials. This problem is fixed in Opencast 7.6 and Opencast 8.1","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Opencast before 7.6 and 8.1 enables a remember-me cookie based on a hash created from the username, password, and an additional system key. This means that an attacker getting access to a remember-me token for one server can get access to all servers which allow log-in using the same credentials without ever needing the credentials. This problem is fixed in Opencast 7.6 and Opencast 8.1","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe security configuration in `etc/security/mh_default_org.xml` enables a remember-me cookie based on a hash created from the [username, password, and an additional system key](https://docs.spring.io/spring-security/site/docs/3.0.x/reference/remember-me.html). Opencast has hard-coded this system key in the large XML file and never mentions to change this, basically ensuring that all systems use the same key:\n\n```xml\n<sec:remember-me key=\"opencast\" user-service-ref=\"userDetailsService\" />\n```\n\nThis means that an attacker getting access to a remember-me token for one server can get access to all servers which allow log-in using the same credentials without ever needing the credentials. For example, a remember-me token obtained from develop.opencast.org can be used on stable.opencast.org without actually knowing the log-in credentials.\n\nSuch an attack will usually not work on different installations – assuming that safe, unique passwords are used – but it is basically guaranteed to work to get access to all machines of one cluster if a token from one machine is compromised.\n\n### Patches\n\nThis problem is fixed in Opencast 7.6 and Opencast 8.1\n\n### Workarounds\n\nWe strongly recommend updating to the patched version. Still, as a workaround for older versions, in `etc/security/mh_default_org.xml`, set a custom key for each server:\n\n```xml\n<sec:remember-me key=\"CUSTOM_RANDOM_KEY\" user-service-ref=\"userDetailsService\" />\n```\n\n### References\n\n- [Relevant lines in the security configuration](https://github.com/opencast/opencast/blob/161ee619382f144dc35eea211fc6b556025b98e1/etc/security/mh_default_org.xml#L335-L336)\n- [Spring Security Remember-Me Authentication Documentation](https://docs.spring.io/spring-security/site/docs/3.0.x/reference/remember-me.html#remember-me-hash-token)\n\n### For more information\nIf you have any questions or comments about this advisory:\n- Open an issue in [opencast/opencast](https://github.com/opencast/opencast/issues)\n- For security-relevant information, email us at [security@opencast.org](mailto:security@opencast.org)\n\n### Thanks\nThanks to @LukasKalbertodt for reporting the issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Opencast versiones anteriores a 7.6 y 8.1, habilita una cookie remember-me basada en un hash creado a partir del nombre de usuario, contraseña y una clave de sistema adicional. Esto significa que un atacante que obtiene acceso a un token remember-me para un servidor puede obtener acceso a todos los servidores que permiten el inicio de sesión con las mismas credenciales sin necesidad alguna de las credenciales. Este problema se corrigió en Opencast versión 7.6 y Opencast versión 8.1.","source":"nvd"}],"published":"2020-01-30T20:50:13.000Z","modified":"2026-09-10T03:48:42.446Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-798"],"affected":[{"ranges":[{"version":"< 7.6","status":"affected"},{"version":">= 8.0, < 8.1","status":"affected"}],"vendor":"opencast","product":"opencast","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.6"}],"ecosystem":"Maven","package":"org.opencastproject:opencast-kernel","purl":"pkg:maven/org.opencastproject/opencast-kernel","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0","status":"affected","fixed":"8.1"}],"ecosystem":"Maven","package":"org.opencastproject:opencast-kernel","purl":"pkg:maven/org.opencastproject/opencast-kernel","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"7.6"},{"status":"affected","version":"8.0"}],"vendor":"apereo","product":"opencast","cpe":"cpe:2.3:a:apereo:opencast:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/opencast/opencast/security/advisories/GHSA-mh8g-hprg-8363","tags":["mitigation","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/opencast/opencast/commit/1a7172c95af8d542a77ae5b153e4c834dd4788a6","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5222","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-5222","url":"https://www.cve.org/CVERecord?id=CVE-2020-5222","licence":"CVE Terms of Use","modified":"2024-08-04T08:22:08.720Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mh8g-hprg-8363","url":"https://github.com/advisories/GHSA-mh8g-hprg-8363","licence":"CC-BY-4.0","modified":"2026-09-10T03:48:42.446Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-5222","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5222","licence":"Public domain","modified":"2026-06-17T03:21:03.337Z"}],"updatedAt":"2026-11-25T22:57:50.726Z","epss":{"score":0.00939,"percentile":0.61935,"date":"2026-12-01T12:00:22.000Z"}}