Portkey.ai Gateway: Server-Side Request Forgery (SSRF) in Custom Host
The gateway determines the destination baseURL by prioritizing the value in the x-portkey-custom-host request header. The proxy route then appends the client-specified path to perform an external fetch. This can be maliciously used by users for SSRF (CWE-918) attack