GSA / GSA/ansible-https-proxy

Ensure NginX error messages are defined

Đang mở
#14 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
10
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

>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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.