Reliance on Untrusted Inputs in a Security Decision in Sinatra - CVE-2024-21510
Published: February 5, 2025
Vulnerability details
The vulnerability allows a remote attacker to gain access to potentially sensitive information.
The vulnerability exists due to excessive data output by the application. A remote attacker when making a request to a method with redirect applied, can trigger an Open Redirect Attack by inserting an arbitrary address into this header. If used for caching purposes, such as with servers like Nginx, or as a reverse proxy, without handling the X-Forwarded-Host header, attackers can potentially exploit Cache Poisoning or Routing-based SSRF.
Affected software
Anolis OS
pcs (Red Hat package)
pcs
pcs-snmp
How to mitigate CVE-2024-21510
pcs (Red Hat package) - update to 0.10.18-2.el8_10.3
pcs - update to 0.10.18-2.0.1
pcs-snmp - update to 0.10.18-2.0.1
External References
- https://security.snyk.io/vuln/SNYK-RUBY-SINATRA-6483832
- https://github.com/sinatra/sinatra/blob/b626e2d82c23b4fde0b51782fd32ca27ccde1d1a/lib/sinatra/base.rb%23L319
- https://github.com/sinatra/sinatra/blob/b626e2d82c23b4fde0b51782fd32ca27ccde1d1a/lib/sinatra/base.rb%23L323C1-L343C17
- https://github.com/sinatra/sinatra/pull/2010