GHSA-cm46-gqf4-mv4f

Suggest an improvement
Source
https://github.com/advisories/GHSA-cm46-gqf4-mv4f
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-cm46-gqf4-mv4f/GHSA-cm46-gqf4-mv4f.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-cm46-gqf4-mv4f
Aliases
Published
2024-11-12T19:56:54Z
Modified
2024-12-16T15:47:08.917801Z
Severity
  • 4.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N CVSS Calculator
  • 5.1 (Medium) CVSS_V4 - 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 CVSS Calculator
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:

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.

Database specific
{
    "nvd_published_at": "2024-11-11T20:15:19Z",
    "cwe_ids": [
        "CWE-749"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-11-12T19:56:54Z"
}
References

Affected packages

Packagist / orchid/platform

Package

Name
orchid/platform
Purl
pkg:composer/orchid/platform

Affected ranges

Type
ECOSYSTEM
Events
Introduced
8.0
Fixed
14.43.0

Affected versions

8.*

8.0.0
8.0.1
8.0.2
8.1.0
8.2.0
8.2.1
8.2.2
8.3.0
8.3.1
8.4.0
8.5.0
8.5.1

9.*

9.0.0
9.0.1
9.0.2
9.0.3
9.1.0
9.1.1
9.2.0
9.3.0
9.4.0
9.4.1
9.4.2
9.4.3
9.4.4
9.5.0
9.5.1
9.5.2
9.5.3
9.5.4
9.6.0
9.7.0
9.7.1
9.7.2
9.7.3
9.7.4
9.8.0
9.8.1
9.8.2
9.9.0
9.9.1
9.9.2
9.10.0
9.10.1
9.11.0
9.11.1
9.11.2
9.12.0
9.12.1
9.13.0
9.14.0
9.14.1
9.14.2
9.14.3
9.14.4
9.14.5
9.14.6
9.15.0
9.15.1
9.15.2
9.16.0
9.16.1
9.17.0
9.17.1
9.18.0
9.18.1
9.19.0
9.19.1
9.19.2
9.19.3
9.19.4
9.19.5
9.19.6
9.19.7
9.19.8
9.20.0
9.20.1
9.21.0

10.*

10.0.0
10.0.1
10.0.2
10.1.0
10.1.1
10.1.2
10.1.3
10.1.4
10.2.0
10.2.1
10.3.0
10.4.0
10.4.1
10.4.2
10.5.0
10.5.1
10.5.2
10.6.0
10.6.1
10.6.2
10.6.3
10.7.0
10.7.1
10.8.0
10.8.1
10.8.2
10.9.0
10.10.0
10.11.0
10.12.0
10.12.1
10.12.2
10.13.0
10.14.0
10.14.1
10.15.0
10.16.0
10.17.0
10.18.0
10.18.1
10.19.0
10.19.1
10.19.2
10.20.0
10.20.1
10.21.0
10.22.0
10.22.1
10.23.0
10.24.0
10.25.0
10.25.1
10.25.2
10.25.3
10.26.0
10.26.1
10.27.0
10.27.1
10.27.2
10.28.0
10.29.0
10.30.0
10.31.0

11.*

11.0.0
11.0.1

12.*

12.0.0
12.1.0
12.2.0
12.2.1
12.2.2
12.3.0
12.3.1
12.3.2
12.4.0
12.4.1
12.4.2
12.4.3
12.4.4
12.4.5
12.5.0
12.6.0
12.6.1
12.6.2

13.*

13.0.0
13.0.1
13.0.2
13.1.0
13.2.0
13.3.0
13.4.0
13.5.0
13.6.0
13.6.1
13.7.0
13.7.1
13.8.0
13.9.0
13.9.1
13.9.2
13.9.3
13.9.4
13.10.0

14.*

14.0.0-alpha1
14.0.0-alpha2
14.0.0-alpha3
14.0.0-alpha4
14.0.0-alpha5
14.0.0-alpha6
14.0.0-alpha7
14.0.0
14.0.1
14.0.2
14.0.3
14.1.0
14.1.1
14.2.0
14.2.1
14.3.0
14.4.0
14.5.0
14.6.0
14.7.0
14.8.0
14.8.1
14.9.0
14.9.1
14.10.0
14.11.0
14.12.0
14.12.1
14.12.2
14.13.0
14.14.0
14.15.0
14.16.0
14.17.0
14.17.1
14.18.0
14.18.1
14.19.0
14.20.0
14.21.0
14.21.1
14.22.0
14.22.1
14.23.0
14.23.1
14.24.0
14.25.0
14.25.1
14.25.2
14.25.3
14.26.0
14.26.1
14.27.0
14.27.1
14.27.2
14.28.0
14.28.1
14.28.2
14.30.0
14.30.1
14.30.2
14.31.0
14.31.1
14.31.2
14.32.0
14.33.0
14.33.1
14.34.0
14.35.1
14.36.0
14.36.1
14.36.2
14.37.0
14.38.0
14.39.0
14.40.0
14.41.0
14.42.0