GHSA-59g4-hpg3-3gcp

Suggest an improvement
Source
https://github.com/advisories/GHSA-59g4-hpg3-3gcp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-59g4-hpg3-3gcp/GHSA-59g4-hpg3-3gcp.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-59g4-hpg3-3gcp
Aliases
Published
2021-12-14T21:44:03Z
Modified
2023-11-01T04:56:45.759229Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Files Accessible to External Parties in Opencast
Details

Opencast before version 10.6 allows references to local file URLs in ingested media packages, allowing attackers to include local files from Opencast's host machines and making them available via the web interface.

Impact

Before Opencast 10.6, Opencast would open and include local files during ingests. Attackers could exploit this to include most local files the process has read access to, extracting secrets from the host machine.

For example, to expose the custom.properties of develop.opencast.org via the asset manager, an attacker could have run:

curl -f -i -u admin:opencast \
  https://develop.opencast.org/ingest/addMediaPackage/fast \
  -F 'flavor=presenter/source'\
  -F mediaUri=file:///srv/opencast/opencast-dist-allinone/etc/custom.properties\
  -F title="custom.properties"  

An attacker would need to have the privileges required to add new media to exploit this. But these are often widely given.

Patches

The issue has been fixed in Opencast 10.6 and 11.0.

Workarounds

You can mitigate this issue by narrowing down the read access Opencast has to files on the file system using UNIX permissions or mandatory access control systems like SELinux. This cannot prevent access to files Opencast needs to read though and we highly recommend updating.

References

For more information

If you have any questions or comments about this advisory: * Open an issue in our issue tracker * Email us at security@opencast.org

Database specific
{
    "nvd_published_at": "2021-12-14T20:15:00Z",
    "github_reviewed_at": "2021-12-14T19:29:54Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-552"
    ]
}
References

Affected packages

Maven / org.opencastproject:opencast-ingest-service-impl

Package

Name
org.opencastproject:opencast-ingest-service-impl
View open source insights on deps.dev
Purl
pkg:maven/org.opencastproject/opencast-ingest-service-impl

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
10.6

Affected versions

6.*

6.6

7.*

7.2
7.3
7.4
7.5
7.6
7.7
7.8
7.9

8.*

8.0
8.1
8.3
8.4
8.5
8.6
8.7
8.8
8.9
8.10
8.11

9.*

9.0
9.1
9.2
9.3
9.4
9.5
9.6
9.7
9.9
9.10
9.11
9.12

10.*

10.0
10.1
10.2
10.3
10.4
10.5