GSA / GSA/ansible-https-proxy

Disable server_tokens directive in NGINX

未關閉
#9 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
沒有語言資料
星號
10
分支
5
PR 合併指標
30 天內沒有已合併 PR

描述

>Draft CIS Benchmark 1.1.10

## Description
By default NGINX will happily tell a user what version of NGINX is in use. This is valuable information to an attacker, and should be turned off by making use of the `server\_tokens` directive.

## Rationale
Potential attackers may check if your version of NGINX contains known vulnerabilities. Hiding the version will slow down and mitigate potential attackers.

## Remediation
To disable the `server\_tokens` directive, set if to `off` inside a `server` block in your `nginx.conf`: ``` server { ... server_tokens off; ... } ```

## Audit
In the NGINX configuration file `nginx.conf` ensure the `server\_tokens` directive is set to `off`. You can also check a 404 page provided by NGINX and see if it displays a version number.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。