apache / openwhisk-apigateway

Apache OpenWhisk API Gateway service for exposing actions as REST interfaces.
https://openwhisk.apache.org/
Apache License 2.0
64 stars 45 forks source link

Security: Disable use of X-Accel-Redirect header #330

Closed moritzraho closed 5 years ago

moritzraho commented 5 years ago

This PR addresses a security issue in which web actions could access internal locations defined in the nginx config files by setting the X-Accel-Redirect response header.

X-accel allows for internal redirection to a location determined by a header returned from a backend. see https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/