ghsa-cm46-gqf4-mv4f
Vulnerability from github
Published
2024-11-12 19:56
Modified
2024-12-16 15:27
Summary
Orchid Platform has Method Exposure Vulnerability in Modals
Details

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

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.

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "Packagist",
        "name": "orchid/platform"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "8.0"
            },
            {
              "fixed": "14.43.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2024-51992"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-749"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2024-11-12T19:56:54Z",
    "nvd_published_at": "2024-11-11T20:15:19Z",
    "severity": "MODERATE"
  },
  "details": "### Impact\nThis vulnerability is a method exposure issue (CWE-749: Exposed Dangerous Method or Function) in the Orchid Platform\u2019s 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\u2019s 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        \u0027validate\u0027,\n        \u0027handle\u0027,\n        \u0027__invoke\u0027,\n        \u0027validateWith\u0027,\n        \u0027validateWithBag\u0027,\n        \u0027callAction\u0027,\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-\u003eroute();\n\n        // Allow requests to routes other than \"platform.async\".\n        if ($route?-\u003egetName() !== \u0027platform.async\u0027) {\n            return $next($request);\n        }\n\n        // Block requests attempting to invoke any of the restricted methods.\n        if (in_array($route-\u003eparameter(\u0027method\u0027), $this-\u003erestrictedMethods)) {\n            abort(503, sprintf(\n                \u0027Access to the \"%s\" method is restricted.\u0027,\n                $route-\u003eparameter(\u0027method\u0027)\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",
  "id": "GHSA-cm46-gqf4-mv4f",
  "modified": "2024-12-16T15:27:59Z",
  "published": "2024-11-12T19:56:54Z",
  "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"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N",
      "type": "CVSS_V3"
    },
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Orchid Platform has Method Exposure Vulnerability in Modals"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.