High, CVSS 8.6RubyGemsPublished
rack-contrib vulnerable to Denial of Service due to the unconstrained value of the incoming "profiler_runs" parameter
CVE-2024-35231 · GHSA-8c8q-2xw3-j869
- Affected
- RubyGems rack-contrib < 2.5.0
- Fixed in
- 2.5.0· Vendor fix available
- Issue
- The next ruby code is vulnerable to denial of service due to the fact that the user controlled data profilerruns was not contrained to any limitation. Which would lead to allocating resources on the server side with no limitation (CWE-770). An exploit as such curl --fail "http://127.0.0.1:9292/?profilerruns=9999999999&profile=processtime" may cause resource exhaution by a remotely controlled value. PoC Herein the config.ru file: A Dockerfile: A Gemfile A Docker compose To run the PoC To exploit DoS: Impact - Potential denial of service by remotely user-controlled data.
Recommended action: Upgrade to 2.5.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.