GHSA-j4mm-7pj3-jf7v

Suggest an improvement
Source
https://github.com/advisories/GHSA-j4mm-7pj3-jf7v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-j4mm-7pj3-jf7v/GHSA-j4mm-7pj3-jf7v.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j4mm-7pj3-jf7v
Aliases
Published
2021-12-14T21:43:00Z
Modified
2023-11-08T04:07:12.929556Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
HTTP Method Spoofing
Details

Opencast versions prior to 9.10 allow HTTP method spoofing, allowing to change the assumed HTTP method via URL parameter. This allows attackers to turn HTTP GET requests into PUT requests or an HTTP form to send DELETE requests. This bypasses restrictions otherwise put on these types of requests and aids in cross-site request forgery (CSRF) attacks, which would otherwise not be possible.

Impact

The vulnerability allows attackers to craft links or forms which may change the server state. For example, the following GET request would create a new user:

% curl -i -u admin:opencast \
  'https://legacy.opencast.org/admin-ng/users/test.json?_method=PUT&username=test&password=attack'
HTTP/2 200
…

If an admin is logged in to legacy.opencast.org and accidentally clicks this link, a user will silently be created.

Patches

This issue is fixed in Opencast 9.10 and 10.0.

Workarounds

You can mitigate the problem by setting the SameSite=Strict attribute for your cookies. If this is a viable option for you depends on your integrations. We strongly recommend updating in any case.

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-14T18:15:00Z",
    "github_reviewed_at": "2021-12-14T18:49:26Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-290"
    ]
}
References

Affected packages

Maven / org.opencastproject:opencast-common

Package

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

Affected ranges

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

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