Horizon Alert
Summary of the vulnerability and why it matters
This vulnerability affects a widely used web proxy plugin, potentially allowing unauthenticated attackers to access unintended parts of your internal network. The issue arises from how the plugin handles URL parameters, leading to bypasses of security controls and possible unauthorized access to proxied services.
- Proxy plugin bypasses security.
- Critical for systems handling external requests.
- Confirm relevance and exposure.
Attack Path
How an attacker could exploit the issue
An attacker can exploit this vulnerability by sending specially crafted HTTP requests to a web application that uses the affected proxy plugin. The plugin, when configured with specific options for handling user-provided path parameters, incorrectly decodes these parameters. This misinterpretation allows an attacker to bypass intended path restrictions, potentially accessing sensitive upstream resources or services that should not be exposed.
- Network access required.
- Triggered by crafted proxy requests.
- Risk of unauthorized access to upstream services.
Live Threat
Current exploitation, exposure, and threat context
When applications use @fastify/http-proxy with parameterized prefix and rewritePrefix options, attackers could bypass configured path restrictions. This bypass could expose sensitive information or allow unauthorized actions on proxied services.
- Proxied service data and functionality.
- Unauthenticated network requests bypassing restrictions.
- Path-restriction bypass, potential SSRF, or auth bypass.
Operational Fix
Recommended remediation, mitigation, and detection steps
The @fastify/http-proxy plugin is used to proxy HTTP requests to upstream servers. This vulnerability allows unauthenticated remote attackers to bypass path restrictions and potentially achieve server-side request forgery or authorization bypass, depending on the upstream service. Owners of applications using this plugin must first identify all instances of @fastify/http-proxy, determine their reachability and criticality, and then plan remediation.
- Application owners and platform teams.
- Verify affected proxy instances and upstream exposure.
- Upgrade to the latest version of @fastify/http-proxy.