CVE-2024-51992: Orchid/platform Orchid Platform Has Method Exposure Vulnerability

MODERATE
Advisory Identifier: GHSA-cm46-gqf4-mv4f
CVSS 4.1
CWE-749
Published
Advisory Summary

CVE-2024-51992 is a MODERATE (CVSS 4.1) orchid platform has method exposure vulnerability (CWE-749: Exposed Dangerous Method or Function) affecting Orchid/platform libraries in the Packagist ecosystem. The issue involves orchid platform has method exposure vulnerability in modals. Remediation is available by upgrading affected packages to version 14.43.0.

CVE-2024-51992 at a Glance

CVE Identifier CVE-2024-51992
GHSA Identifier GHSA-cm46-gqf4-mv4f
Severity MODERATE
CVSS v3.1 Base Score 4.1
CWE Classification CWE-749: Exposed Dangerous Method or Function
Affected Product Orchid/platform
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.1

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

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

How to Fix CVE-2024-51992

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

orchid/platform fixed: 14.43.0
Upgrade orchid/platform to 14.43.0
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 orchid/platform

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-51992, inspect your project dependencies for Orchid/platform:

inspect dependencies for orchid/platform

Analyze the terminal output to locate any version of Orchid/platform in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.43.0), 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-749: Exposed Dangerous Method or Function, where the product provides an applications programming interface (api) or similar interface for interaction with external actors, but the interface includes a dangerous method or function that is not properly restricted. In Orchid/platform, 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 This vulnerability is a method exposure issue (CWE-749: Exposed Dangerous Method or Function) in the Orchid Platform’s asynchronous modal functionality, affecting users of Orchid Platform version 8 through 14.42.x. Attackers could exploit this vulnerability to call arbitrary methods within the `Screen` class, leading to potential brute force of database tables, validation checks against user credentials, and disclosure of the server’s real IP address. ### Patches The issue has been patched in the latest release, version 14.43.0, released on November 6, 2024. Users should upgrade to version 14.43.0 or later to address this vulnerability. ### Workarounds If upgrading to version 14.43.0 is not immediately possible, you can mitigate the vulnerability by implementing middleware to intercept and validate requests to asynchronous modal endpoints, allowing only approved methods and parameters. Example middleware: ```php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; class PreventBruteForceOnAsyncRoute { /** * Methods that are restricted from being invoked via the async route. */ protected array $restrictedMethods = [ 'validate', 'handle', '__invoke', 'validateWith', 'validateWithBag', 'callAction', ]; /** * Handle an incoming request. */ public function handle(Request $request, Closure $next): Response { // Retrieve the current route from the request. /** @var \Illuminate\Routing\Route|null $route */ $route = $request->route(); // Allow requests to routes other than "platform.async". if ($route?->getName() !== 'platform.async') { return $next($request); } // Block requests attempting to invoke any of the restricted methods. if (in_array($route->parameter('method'), $this->restrictedMethods)) { abort(503, sprintf( 'Access to the "%s" method is restricted.', $route->parameter('method') )); } // Continue request processing for other cases. return $next($request); } } ``` ### References - [CWE-749: Exposed Dangerous Method or Function](https://cwe.mitre.org/data/definitions/749.html) ### Acknowledgements We would like to extend our sincere gratitude to **Positive Technologies** and researcher **Vladislav Gladky** for identifying the vulnerability and their significant contribution to enhancing the security of our platform. Their expertise and dedication play a crucial role in making **Orchid** more reliable and secure for all users.

CVE-2024-51992 Affected Orchid/platform Versions

1 component(s)
Fixed Versions:
14.43.0
Product / Package Ecosystem Affected Versions Fixed Version
orchid/platform
Packagist
≥ 8.0
< 14.43.0
14.43.0

References

Frequently Asked Questions

What is CVE-2024-51992?
CVE-2024-51992 is a security vulnerability in Orchid/platform involving Orchid Platform has Method Exposure Vulnerability in Modals under CWE-749: Exposed Dangerous Method or Function.
Which Orchid/platform versions are affected?
Affected versions include releases prior to 14.43.0 across affected packages: orchid/platform.
What version fixes CVE-2024-51992?
Upgrading to 14.43.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is orchid/platform affected?
Yes, orchid/platform is affected in releases prior to 14.43.0. Upgrade your dependency to 14.43.0 or later.
What is the CVSS score of CVE-2024-51992?
CVE-2024-51992 has a CVSS v3.1 base score of 4.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2024-51992?
CVE-2024-51992 is classified under CWE-749: Exposed Dangerous Method or Function (The product provides an Applications Programming Interface (API) or similar interface for interaction with external actors, but the interface includes a dangerous method or function that is not properly restricted.).
How can I check Packagist dependencies for CVE-2024-51992?
Run the dependency tree command: 'inspect dependencies for orchid/platform'. 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-cm46-gqf4-mv4f",
  "modified" : "2024-12-16T15:27:59Z",
  "published" : "2024-11-12T19:56:54Z",
  "aliases" : [ "CVE-2024-51992" ],
  "summary" : "Orchid Platform has Method Exposure Vulnerability in Modals",
  "details" : "### Impact\nThis vulnerability is a method exposure issue (CWE-749: Exposed Dangerous Method or Function) in the Orchid Platform’s asynchronous modal functionality, affecting users of Orchid Platform version 8 through 14.42.x. Attackers could exploit this vulnerability to call arbitrary methods within the `Screen` class, leading to potential brute force of database tables, validation checks against user credentials, and disclosure of the server’s real IP address.\n\n### Patches\nThe issue has been patched in the latest release, version 14.43.0, released on November 6, 2024. Users should upgrade to version 14.43.0 or later to address this vulnerability.\n\n### Workarounds\nIf upgrading to version 14.43.0 is not immediately possible, you can mitigate the vulnerability by implementing middleware to intercept and validate requests to asynchronous modal endpoints, allowing only approved methods and parameters.\n\n\nExample middleware:\n\n```php\nnamespace App\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Http\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass PreventBruteForceOnAsyncRoute\n{\n    /**\n     * Methods that are restricted from being invoked via the async route.\n     */\n    protected array $restrictedMethods = [\n        'validate',\n        'handle',\n        '__invoke',\n        'validateWith',\n        'validateWithBag',\n        'callAction',\n    ];\n\n    /**\n     * Handle an incoming request.\n     */\n    public function handle(Request $request, Closure $next): Response\n    {\n        // Retrieve the current route from the request.\n        /** @var \\Illuminate\\Routing\\Route|null $route */\n        $route = $request->route();\n\n        // Allow requests to routes other than \"platform.async\".\n        if ($route?->getName() !== 'platform.async') {\n            return $next($request);\n        }\n\n        // Block requests attempting to invoke any of the restricted methods.\n        if (in_array($route->parameter('method'), $this->restrictedMethods)) {\n            abort(503, sprintf(\n                'Access to the \"%s\" method is restricted.',\n                $route->parameter('method')\n            ));\n        }\n\n        // Continue request processing for other cases.\n        return $next($request);\n    }\n}\n```\n\n### References\n- [CWE-749: Exposed Dangerous Method or Function](https://cwe.mitre.org/data/definitions/749.html)\n\n### Acknowledgements\n\nWe would like to extend our sincere gratitude to **Positive Technologies** and researcher **Vladislav Gladky** for identifying the vulnerability and their significant contribution to enhancing the security of our platform. Their expertise and dedication play a crucial role in making **Orchid** more reliable and secure for all users.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "orchid/platform"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0"
      }, {
        "fixed" : "14.43.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/orchidsoftware/platform/security/advisories/GHSA-cm46-gqf4-mv4f"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-51992"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/orchidsoftware/platform"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-749" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-12T19:56:54Z",
    "nvd_published_at" : "2024-11-11T20:15:19Z"
  }
}