nginx SSI module; disable file include? -


i looking @ nginx ssi module , wondering if there way block "file" option on ssi.

http://nginx.org/en/docs/http/ngx_http_ssi_module.html

so not this

 <!--# include file="/etc/passwd" --> 

i wasn't able find on security in regards include file, know this?

first of all, way can won't happen run nginx non-root user (there many other reasons so, , i'm sure doing already).

another thing consider ssis should treated privileged code, cgi scripts are. should not allow them untrusted users.

that said, answer question nginx processes (source code) ssi include directive treating file , uri options identically , passing them ngx_http_subrequest. same serving file request given file, in particular in name resolved relative root directive in effect. there still security considerations, in general it's safer ssi parser open , read file on it's own.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -