CVE-2023-49783: Silverstripe/admin No Permission Checks For Editing/deleting Vulnerability

MODERATE
Advisory Identifier: GHSA-j3m6-gvm8-mhvw
CVSS 4.3
CWE-863
Published
Advisory Summary

CVE-2023-49783 is a MODERATE (CVSS 4.3) no permission checks for editing/deleting vulnerability (CWE-863: Incorrect Authorization) affecting Silverstripe/admin libraries in the Packagist ecosystem. The issue involves no permission checks for editing/deleting records with csv import form. Remediation is available by upgrading affected packages to version 1.13.19, 2.1.8.

CVE-2023-49783 at a Glance

CVE Identifier CVE-2023-49783
GHSA Identifier GHSA-j3m6-gvm8-mhvw
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-863: Incorrect Authorization
Affected Product Silverstripe/admin
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.3

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:N/S:U/C:N/I:L/A:N).

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

How to Fix CVE-2023-49783

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

silverstripe/admin fixed: 1.13.19
Upgrade silverstripe/admin to 1.13.19
silverstripe/admin fixed: 2.1.8
Upgrade silverstripe/admin to 2.1.8
Verify Direct and Transitive Dependencies

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

inspect dependencies for silverstripe/admin

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-49783, inspect your project dependencies for Silverstripe/admin:

inspect dependencies for silverstripe/admin

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

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Silverstripe/admin, 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 Users who don't have edit or delete permissions for records exposed in a `ModelAdmin` can still edit or delete records using the CSV import form, provided they have create permissions. The likelyhood of a user having create permissions but _not_ having edit or delete permissions is low, but it _is_ possible. Note that this doesn't affect any `ModelAdmin` which has had the import form disabled via the [`showImportForm` public property](https://api.silverstripe.org/4/SilverStripe/Admin/ModelAdmin.html#property_showImportForm), nor does it impact the `SecurityAdmin` section. #### Action may be required If you have a custom implementation of [`BulkLoader`](https://api.silverstripe.org/4/SilverStripe/Dev/BulkLoader.html), you should update your implementation to respect permissions when the return value of [`getCheckPermissions()`](https://api.silverstripe.org/4/SilverStripe/Dev/BulkLoader.html#method_getCheckPermissions) is true. If you are using any `BulkLoader` in your own project logic, or maintain a module which uses it, you should consider passing `true` to [`setCheckPermissions()`](https://api.silverstripe.org/4/SilverStripe/Dev/BulkLoader.html#method_setCheckPermissions) if the data is provided by users. **Base CVSS:** [4.3](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N/E:F/RL:O/RC:C&version=3.1) **Reported by:** Guy Sartorelli from Silverstripe ### References - https://www.silverstripe.org/download/security-releases/CVE-2023-49783

CVE-2023-49783 Affected Silverstripe/admin Versions

2 component(s)
Fixed Versions:
1.13.192.1.8
Product / Package Ecosystem Affected Versions Fixed Version
silverstripe/admin
Packagist
≥ 1.0.0
< 1.13.19
1.13.19
silverstripe/admin
Packagist
≥ 2.0.0
< 2.1.8
2.1.8

References

Frequently Asked Questions

What is CVE-2023-49783?
CVE-2023-49783 is a security vulnerability in Silverstripe/admin involving No permission checks for editing/deleting records with CSV import form under CWE-863: Incorrect Authorization.
Which Silverstripe/admin versions are affected?
Affected versions include releases prior to 1.13.19, 2.1.8 across affected packages: silverstripe/admin.
What version fixes CVE-2023-49783?
Upgrading to 1.13.19, 2.1.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is silverstripe/admin affected?
Yes, silverstripe/admin is affected in releases prior to 1.13.19, 2.1.8. Upgrade your dependency to 1.13.19, 2.1.8 or later.
What is the CVSS score of CVE-2023-49783?
CVE-2023-49783 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2023-49783?
CVE-2023-49783 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check Packagist dependencies for CVE-2023-49783?
Run the dependency tree command: 'inspect dependencies for silverstripe/admin'. 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-j3m6-gvm8-mhvw",
  "modified" : "2024-01-29T14:21:39Z",
  "published" : "2024-01-23T20:09:52Z",
  "aliases" : [ "CVE-2023-49783" ],
  "summary" : "No permission checks for editing/deleting records with CSV import form",
  "details" : "### Impact\nUsers who don't have edit or delete permissions for records exposed in a `ModelAdmin` can still edit or delete records using the CSV import form, provided they have create permissions.\n\nThe likelyhood of a user having create permissions but _not_ having edit or delete permissions is low, but it _is_ possible.\n\nNote that this doesn't affect any `ModelAdmin` which has had the import form disabled via the [`showImportForm` public property](https://api.silverstripe.org/4/SilverStripe/Admin/ModelAdmin.html#property_showImportForm), nor does it impact the `SecurityAdmin` section.\n\n#### Action may be required\n\nIf you have a custom implementation of [`BulkLoader`](https://api.silverstripe.org/4/SilverStripe/Dev/BulkLoader.html), you should update your implementation to respect permissions when the return value of [`getCheckPermissions()`](https://api.silverstripe.org/4/SilverStripe/Dev/BulkLoader.html#method_getCheckPermissions) is true.\n\nIf you are using any `BulkLoader` in your own project logic, or maintain a module which uses it, you should consider passing `true` to [`setCheckPermissions()`](https://api.silverstripe.org/4/SilverStripe/Dev/BulkLoader.html#method_setCheckPermissions) if the data is provided by users.\n\n**Base CVSS:** [4.3](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N/E:F/RL:O/RC:C&version=3.1)\n**Reported by:** Guy Sartorelli from Silverstripe\n\n### References\n- https://www.silverstripe.org/download/security-releases/CVE-2023-49783\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/admin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.13.19"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/admin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.1.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-admin/security/advisories/GHSA-j3m6-gvm8-mhvw"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-49783"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe-security/security-issues/issues/177"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripeltd/product-issues/issues/832"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-admin/commit/9693130a0a637cdf512277cf5f07e83250b191db"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/admin/CVE-2023-49783.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/silverstripe/silverstripe-admin"
  }, {
    "type" : "WEB",
    "url" : "https://www.silverstripe.org/download/security-releases/CVE-2023-49783"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-23T20:09:52Z",
    "nvd_published_at" : "2024-01-23T14:15:37Z"
  }
}