GHSA-945h-6vcv-pc8h: Sylius/admin bundle Sylius Admin Bundle Cross-Site Request Vulnerability

MODERATE
CVSS 6.5
Published
Advisory Summary

GHSA-945h-6vcv-pc8h is a MODERATE (CVSS 6.5) sylius admin bundle cross-site request vulnerability (General Security Weakness) affecting Sylius/admin bundle libraries in the Packagist ecosystem. The issue involves sylius admin bundle cross-site request forgery vulnerability. Remediation is available by upgrading affected packages to version 1.0.17, 1.1.9, 1.2.2.

GHSA-945h-6vcv-pc8h at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-945h-6vcv-pc8h
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification General Security Weakness
Affected Product Sylius/admin bundle
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix GHSA-945h-6vcv-pc8h

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

sylius/admin-bundle fixed: 1.0.17
Upgrade sylius/admin-bundle to 1.0.17
sylius/admin-bundle fixed: 1.1.9
Upgrade sylius/admin-bundle to 1.1.9
sylius/admin-bundle fixed: 1.2.2
Upgrade sylius/admin-bundle to 1.2.2
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 sylius/admin-bundle

How to Check if You Are Affected

To determine whether your application is affected by GHSA-945h-6vcv-pc8h, inspect your project dependencies for Sylius/admin bundle:

inspect dependencies for sylius/admin-bundle

Analyze the terminal output to locate any version of Sylius/admin bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.17), 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 General Security Weakness. In Sylius/admin bundle, 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

Sylius 1.0.0 to 1.0.16, 1.1.0 to 1.1.8, 1.2.0 to 1.2.1 versions of AdminBundle and ResourceBundle are affected by this security issue. This issue has been fixed in Sylius 1.0.17, 1.1.9 and 1.2.2. Development branch for 1.3 release has also been fixed. ### Description The following actions in the admin panel did not require a CSRF token: - marking order’s payment as completed - marking order’s payment as refunded - marking product review as accepted - marking product review as rejected ### Resolution The issue is fixed by adding a required CSRF token to those actions. We also fixed `ResourceController`‘s `applyStateMachineTransitionAction` method by adding a CSRF token check. If you use that action in the API context, you can disable it by adding `csrf_protection:` false to its routing configuration

GHSA-945h-6vcv-pc8h Affected Sylius/admin bundle Versions

3 component(s)
Fixed Versions:
1.0.171.1.91.2.2
Product / Package Ecosystem Affected Versions Fixed Version
sylius/admin-bundle
Packagist
≥ 1.0.0
< 1.0.17
1.0.17
sylius/admin-bundle
Packagist
≥ 1.1.0
< 1.1.9
1.1.9
sylius/admin-bundle
Packagist
≥ 1.2.0
< 1.2.2
1.2.2

References

Frequently Asked Questions

What is GHSA-945h-6vcv-pc8h?
GHSA-945h-6vcv-pc8h is a security vulnerability in Sylius/admin bundle involving Sylius Admin Bundle Cross-Site Request Forgery vulnerability under General Security Weakness.
Which Sylius/admin bundle versions are affected?
Affected versions include releases prior to 1.0.17, 1.1.9, 1.2.2 across affected packages: sylius/admin-bundle.
What version fixes GHSA-945h-6vcv-pc8h?
Upgrading to 1.0.17, 1.1.9, 1.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sylius/admin-bundle affected?
Yes, sylius/admin-bundle is affected in releases prior to 1.0.17, 1.1.9, 1.2.2. Upgrade your dependency to 1.0.17, 1.1.9, 1.2.2 or later.
What is the CVSS score of GHSA-945h-6vcv-pc8h?
GHSA-945h-6vcv-pc8h has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N.
What CWE is associated with GHSA-945h-6vcv-pc8h?
GHSA-945h-6vcv-pc8h is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-945h-6vcv-pc8h?
Run the dependency tree command: 'inspect dependencies for sylius/admin-bundle'. 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-945h-6vcv-pc8h",
  "modified" : "2024-05-29T18:50:26Z",
  "published" : "2024-05-29T18:50:26Z",
  "aliases" : [ ],
  "summary" : "Sylius Admin Bundle Cross-Site Request Forgery vulnerability",
  "details" : "Sylius 1.0.0 to 1.0.16, 1.1.0 to 1.1.8, 1.2.0 to 1.2.1 versions of AdminBundle and ResourceBundle are affected by this security issue.\n\nThis issue has been fixed in Sylius 1.0.17, 1.1.9 and 1.2.2. Development branch for 1.3 release has also been fixed.\n\n### Description\n\nThe following actions in the admin panel did not require a CSRF token:\n\n- marking order’s payment as completed\n- marking order’s payment as refunded\n- marking product review as accepted\n- marking product review as rejected\n\n### Resolution\n\nThe issue is fixed by adding a required CSRF token to those actions.\n\nWe also fixed `ResourceController`‘s  `applyStateMachineTransitionAction` method by adding a CSRF token check. If you use that action in the API context, you can disable it by adding `csrf_protection:` false to its routing configuration",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sylius/admin-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.0.17"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sylius/admin-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.0"
      }, {
        "fixed" : "1.1.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sylius/admin-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.2.0"
      }, {
        "fixed" : "1.2.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Sylius/SyliusAdminBundle/commit/79c2d963bed61411b1eef15715a74d2d96b91884"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/sylius/admin-bundle/2018-07-09.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Sylius/SyliusAdminBundle"
  }, {
    "type" : "WEB",
    "url" : "https://sylius.com/blog/csrf-vulnerability-in-admin-panel"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-29T18:50:26Z",
    "nvd_published_at" : null
  }
}