November 10, 2026
How a Browser Extension Check Led to Uncovering CVE-2021–44528 (Open Redirect)
While browsing a target Web application, I clicked on the Shodan Browser Extension to view quick context on the server stack, open ports…

By Adarsh S Nair
1 min read
While browsing a target Web application, I clicked on the Shodan Browser Extension to view quick context on the server stack, open ports, and potential known vulnerabilities associated with the host's infrastructure.
Among the listed technologies and CVE findings, one specific entry caught my attention: CVE-2021–44528.
What is CVE-2021–44528?
In Ruby on Rails (Action Pack versions >= 6.0.0), the framework implements Host Authorization middleware to guard against HTTP Host Header Injection attacks. However, when combined with specific "allowed host" configurations, an attacker crafting a custom X-Forwarded-Host request header could bypass this logic, causing the application to issue an HTTP 302 Found redirect to an arbitrary external domain.
Steps to Reproduce:
- Navigated to the application login portal at
[https://app.example.com/login]. - Enter the Credentials and click Login
- Intercept the POST based request and add X-Forwarded-Host header, setting its value to an external domain attacker.com
- Upon forwarding the modified Request, the server responded with a redirect directive pointing to the attacker-controlled host attacker.com
Screenshot:
Remediation
- Upgrade Action Pack / Rails: Update Ruby on Rails to a patched release where host authorization logic strictly parses
X-Forwarded-Hostheaders against absolute host matching rules. - Explicit Host Validation: Configure host matching regex patterns strictly to avoid matching unexpected subdomains or forwarded origins.
Shodan Extension:
Shodan - Chrome Web Store The Shodan plugin tells you where the website is hosted (country, city), who owns the IP and what other services/ ports…
Connect with me on LinkedIn: linkedin.com/in/adarsh-s-nair-2300b9264/