Versions of the package sinatra from 0.0.0 are vulnerable to Reliance on Untrusted Inputs in a Security Decision via the X-Forwarded-Host (XFH) header. When making a request to a method with redirect applied, it is possible to 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.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=470077f1887bf6a5f8822809cab501efc87d3ac5 commit 470077f1887bf6a5f8822809cab501efc87d3ac5 Author: Hans de Graaff <graaff@gentoo.org> AuthorDate: 2024-11-23 10:30:47 +0000 Commit: Hans de Graaff <graaff@gentoo.org> CommitDate: 2024-11-23 10:31:17 +0000 dev-ruby/sinatra: add 4.1.1 Bug: https://bugs.gentoo.org/944713 Signed-off-by: Hans de Graaff <graaff@gentoo.org> dev-ruby/sinatra/Manifest | 1 + dev-ruby/sinatra/sinatra-4.1.1.ebuild | 50 +++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+)