GSA / GSA/ansible-https-proxy

Ensure NginX error messages are defined

未关闭
#14 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
没有语言数据
星标
10
派生
5
PR 合并指标
30 天内没有已合并 PR

描述

>Draft CIS Benchmark 1.1.2

## Description
Define custom error page to reduce system sensitive information.

## Rationale
When there is error response such as 404 file not found error, the error message page may reveal NginX version or additional system sensitive information. Hackers may use these information to attack the web service.

## Remediation
To define error pages in NginX.conf: ``` server { error\_page 500 501 /50x.html; location = /50x.html { root html } ``` ``` 4xx Error page example server { error\_page 400 401 402 403 404 405 406 407 413 414 /4xx.html; location = /4xx.html{ root html; } ```

## Audit
TBD

## Notes
The self-defined error message page must exceed 512 bytes. Otherwise, IE will automatically present its friendly error page instead. For 302 code, it must not define a error message page. Otherwise, all the error will redirect to it. is defined based on current web root directory. Admin may define it based on real situation.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。