In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade puma to version 7.2.1, 8.0.2 or higher.
puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications. Puma is intended for use in both development and production environments. It's great for highly concurrent Ruby implementations such as Rubinius and JRuby as well as as providing process worker support to support CRuby well.
Affected versions of this package are vulnerable to User Impersonation via PROXY protocol v1 spoofing. When set_remote_address proxy_protocol: :v1 is set, an attacker can spoof the source IP address by injecting additional PROXY headers between HTTP requests on the same persistent connection, causing the application to treat the injected header as authoritative and overwrite the REMOTE_ADDR value.
This vulnerability can be avoided by setting enable_keep_alives false to disable persistent connections entirely.