Server-Side Request Forgery in Apache ShenYu
Apache Software Foundation Apache ShenYu
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.shenyu:shenyu-admin Maven |
|
|
| org.apache.shenyu:shenyu-common Maven |
|
|
Apache Software Foundation Apache ShenYu
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.shenyu:shenyu-admin Maven |
|
|
| org.apache.shenyu:shenyu-common Maven |
|
|
There exists an SSRF (Server-Side Request Forgery) vulnerability located at the /sandbox/proxyGateway endpoint. This vulnerability allows us to manipulate arbitrary requests and retrieve corresponding responses by inputting any URL into the requestUrl parameter.
Of particular concern is our ability to exert control over the HTTP method, cookies, IP address, and headers. This effectively grants us the capability to dispatch complete HTTP requests to hosts of our choosing.
This issue affects Apache ShenYu: 2.5.1.
Upgrade to Apache ShenYu 2.6.0 or apply patch https://github.com/apache/shenyu/pull/4776 .
From the CVE record · apache
The /sandbox/proxyGateway endpoint is vulnerable to server-side request forgery. An attacker can supply a URL in the requestUrl parameter and control the HTTP method, cookies, IP address, and headers of requests sent to chosen hosts, then retrieve the responses. Authentication and user-interaction requirements are not specified.
Teams running Apache ShenYu 2.5.1 or using Maven packages org.apache.shenyu:shenyu-admin or org.apache.shenyu:shenyu-common below 2.6.0 should check their deployments.