Skip to content

Course Creators can create content libraries for unauthorized Orgs

Moderate
feanil published GHSA-7pvm-qc65-fhcv Jul 25, 2024

Package

edx-platform

Affected versions

< redwood

Patched versions

master, >=quince

Description

The issue: An user with course creator access, can create content libraries for any existing or new org id, by manipulating the html/JS code in their browser. There are no checks in the backend to prevent this.

How to replicate:

  1. Log into Studio using a account with Course creator access only (Should not have staff or admin access)
  2. Click on New Library button
  3. Check the orgs listed in the dropdown
  4. Edit the HTML in the browser, to add an option in the dropdown for an org id not listed already
  5. Select the newly added org id from the dropdown
  6. Add any library name and library code.
  7. Click on Create
  8. Verify new library created in unauthorized org

Code responsible: This code is supposed to check if the user has sufficient privileges to create a library in the org. But it returns True as long as the user has course creator access, irrespective of the user's access to the org.

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

CVE ID

No known CVE

Weaknesses

No CWEs

Credits