CVE-2024-51992: Orchid Platform Method Exposure Vulnerability in Modals
Summary
CVE-2024-51992: Orchid Platform has Method Exposure Vulnerability in Modals. Affects orchid/platform versions >= 8.0, < 14.43.0. Fixed in 14.43.0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Orchid Platform is an open-source web application framework designed for building modern applications with a focus on flexibility and ease of use. It provides a rich set of features, including asynchronous modals for user interactions. However, versions 8 through 14.42.x of Orchid Platform are vulnerable to a method exposure issue, which can lead to significant security risks.
Vulnerability Detail
The vulnerability stems from the asynchronous modal functionality within the Orchid Platform, classified as CWE-749: Exposed Dangerous Method or Function. This flaw allows attackers to invoke arbitrary methods in the 'Screen' class, potentially leading to brute force attacks on database tables, unauthorized validation checks against user credentials, and the exposure of the server's real IP address. The implications of this vulnerability can compromise the integrity and confidentiality of user data.
How To Fix
Minimum fixed version
14.43.0
This is the first release that contains the fix.
composer require orchid/platform:14.43.0
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If immediate upgrading is not feasible, implement middleware to intercept and validate requests to asynchronous modal endpoints. This middleware should allow only approved methods and parameters to be executed. Below is a sample code snippet for a middleware implementation:
public function handle($request, Closure $next)
{
// Define allowed methods
$allowedMethods = ['approvedMethod1', 'approvedMethod2'];
// Validate the method
if (in_array($request->input('method'), $allowedMethods)) {
return $next($request);
}
// Reject the request if the method is not allowed
return response()->json(['error' => 'Method not allowed'], 403);
}
Conclusion
The method exposure vulnerability in Orchid Platform poses significant risks to user data and application integrity. Users are strongly advised to upgrade to the latest version to mitigate these risks. Implementing middleware can serve as a temporary measure until an upgrade is possible.
See every vulnerability recorded for orchid/platform →
FAQ
CVE-2024-51992 is a vulnerability in the Orchid Platform that allows attackers to exploit method exposure in asynchronous modals, potentially leading to unauthorized access and data breaches.
Versions 8 through 14.42.x of Orchid Platform are affected by this vulnerability.
You can use Vulert, which monitors open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected without any signup.
If you cannot upgrade to version 14.43.0 or later, implement middleware to validate requests to asynchronous modal endpoints, allowing only approved methods.
The CVSS score of this vulnerability is 4.1, indicating a moderate severity level.
References
Related vulnerabilities
Recent vulnerabilities recorded for orchid/platform.