CVE-2020-5206: Opencast kernel Authentication Bypass Vulnerability

CRITICAL
Advisory Identifier: GHSA-vmm6-w4cf-7f3x
CVSS 8.7
CWE-285
Published
Advisory Summary

CVE-2020-5206 is a CRITICAL (CVSS 8.7) authentication bypass vulnerability (CWE-285: Improper Authorization) affecting Opencast kernel libraries in the Maven ecosystem. The issue involves authentication bypass for endpoints with anonymous access in opencast. Remediation is available by upgrading affected packages to version 7.6, 8.1.

CVE-2020-5206 at a Glance

CVE Identifier CVE-2020-5206
GHSA Identifier GHSA-vmm6-w4cf-7f3x
Severity CRITICAL
CVSS v3.1 Base Score 8.7
CWE Classification CWE-285: Improper Authorization
Affected Product Opencast kernel
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2020-5206

To remediate this vulnerability, upgrade all affected Opencast kernel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.opencastproject:opencast-kernel fixed: 7.6
<dependency>
    <groupId>org.opencastproject</groupId>
    <artifactId>opencast-kernel</artifactId>
    <version>7.6</version>
</dependency>
org.opencastproject:opencast-kernel fixed: 8.1
<dependency>
    <groupId>org.opencastproject</groupId>
    <artifactId>opencast-kernel</artifactId>
    <version>8.1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.opencastproject

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2020-5206, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.opencastproject

Analyze the terminal output to locate any version of Opencast kernel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.6), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.opencastproject command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Opencast kernel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Using a remember-me cookie with an arbitrary username can cause Opencast to assume proper authentication for that user even if the remember-me cookie was incorrect given that the attacked endpoint also allows anonymous access. This way, an attacker can, for example, fake a remember-me token, assume the identity of the global system administrator and request non-public content from the search service without ever providing any proper authentication. ### Patches This problem is fixed in Opencast 7.6 and Opencast 8.1 ### Workarounds As a workaround for older, unpatched versions, disabling remember-me cookies in `etc/security/mh_default_org.xml` will mitigate the problem but will obviously also disable this feature without obvious indication. To deactivate this, remove the following line from the security configuration: ```xml <sec:remember-me … /> ``` ### References - [Remember-me cookie in the security configuration file](https://github.com/opencast/opencast/blob/161ee619382f144dc35eea211fc6b556025b98e1/etc/security/mh_default_org.xml#L335-L336) ### For more information If you have any questions or comments about this advisory: - Open an issue in [opencast/opencast](https://github.com/opencast/opencast/issues) - For security-relevant information, email us at security@opencast.org

CVE-2020-5206 Affected Opencast kernel Versions

2 component(s)
Fixed Versions:
7.68.1
Product / Package Ecosystem Affected Versions Fixed Version
org.opencastproject:opencast-kernel
Maven
< 7.6
7.6
org.opencastproject:opencast-kernel
Maven
≥ 8.0
< 8.1
8.1

References

Frequently Asked Questions

What is CVE-2020-5206?
CVE-2020-5206 is a security vulnerability in Opencast kernel involving Authentication Bypass For Endpoints With Anonymous Access in Opencast under CWE-285: Improper Authorization.
Which Opencast kernel versions are affected?
Affected versions include releases prior to 7.6, 8.1 across affected packages: org.opencastproject:opencast-kernel.
What version fixes CVE-2020-5206?
Upgrading to 7.6, 8.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is opencast-kernel affected?
Yes, org.opencastproject:opencast-kernel is affected in releases prior to 7.6, 8.1. Upgrade your dependency to 7.6, 8.1 or later.
What is the CVSS score of CVE-2020-5206?
CVE-2020-5206 has a CVSS v3.1 base score of 8.7 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2020-5206?
CVE-2020-5206 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Maven dependencies for CVE-2020-5206?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.opencastproject'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vmm6-w4cf-7f3x",
  "modified" : "2021-10-20T18:03:07Z",
  "published" : "2020-01-30T21:21:30Z",
  "aliases" : [ "CVE-2020-5206" ],
  "summary" : "Authentication Bypass For Endpoints With Anonymous Access in Opencast",
  "details" : "### Impact\n\nUsing a remember-me cookie with an arbitrary username can cause Opencast to assume proper authentication for that user even if the remember-me cookie was incorrect given that the attacked endpoint also allows anonymous access.\n\nThis way, an attacker can, for example, fake a remember-me token, assume the identity of the global system administrator and request non-public content from the search service without ever providing any proper authentication.\n\n\n### Patches\n\nThis problem is fixed in Opencast 7.6 and Opencast 8.1\n\n\n### Workarounds\n\nAs a workaround for older, unpatched versions, disabling remember-me cookies in `etc/security/mh_default_org.xml` will mitigate the problem but will obviously also disable this feature without obvious indication. To deactivate this, remove the following line from the security configuration:\n\n```xml\n<sec:remember-me … />\n```\n\n### References\n\n- [Remember-me cookie in the security configuration file](https://github.com/opencast/opencast/blob/161ee619382f144dc35eea211fc6b556025b98e1/etc/security/mh_default_org.xml#L335-L336)\n\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Open an issue in [opencast/opencast](https://github.com/opencast/opencast/issues)\n- For security-relevant information, email us at security@opencast.org",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.opencastproject:opencast-kernel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.opencastproject:opencast-kernel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0"
      }, {
        "fixed" : "8.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/opencast/opencast/security/advisories/GHSA-vmm6-w4cf-7f3x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-5206"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opencast/opencast/commit/b157e1fb3b35991ca7bf59f0730329fbe7ce82e8"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-01-30T21:13:52Z",
    "nvd_published_at" : null
  }
}