DPC:DPC 報告的 HSTS TTL Nessus 掃描器不正確
摘要: 文章涵蓋 Nessus 掃描器的問題,Chrome Web 開發人員工具會顯示 HSTS TTL。
本文章適用於
本文章不適用於
本文無關於任何特定產品。
本文未識別所有產品版本。
症狀
Nessus 掃描器和 Chrome Web 開發人員工具顯示 HSTS TTL 為 15,780,000 秒(六個月)。
安全性要求此值至少為 31536000(一年)。
原因
這是 Nessus 掃描器和 Web 工具未報告正確資訊的問題。
解析度
這通常是偽陽性,因為 DPC 中 HSTS 的預設設定為 63072000 (兩年)。
若要檢查設定,請使用 SSH/Putty 以系統管理員身分登入 DPC,並使用 su - 至 root,並執行下列命令:
-
curl -k -i https://<DPCFQDN> |less
其中 <DPCFQDN> 是 DPC 伺服器的 FQDN。 - 您會收到如下所示的輸出:
Server: nginx Date: Wed, 22 Nov 2023 19:52:17 GMT Content-Type: text/html; charset=UTF-8 Content-Length: 648123 Connection: keep-alive X-DNS-Prefetch-Control: off X-Frame-Options: SAMEORIGIN Strict-Transport-Security: max-age=15552000; includeSubDomains X-Download-Options: noopen X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Accept-Ranges: bytes Cache-Control: public, max-age=0 Last-Modified: Mon, 11 Sep 2023 12:07:27 GMT ETag: W/"9e3bb-18a8423b418" Cache-Control: no-cache, no-store, must-revalidate Pragma: no-cache Expires: 0 X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff Strict-Transport-Security: max-age=63072000; includeSubdomains; Content-Security-Policy: frame-ancestors 'self'; object-src 'self'; default-src 'self' 'unsafe-inline' data:; script-src 'self' 'unsafe-inline';
「Strict-Transport-Security: max-age=63072000; includeSubdomains;」行顯示此選項設定為 63072000 秒或 2 年。
您也可以檢查 /etc/nginx/conf.d/default.conf 檔,您會看到以下部分顯示最大年齡:
以下是 Chrome 中與上述系統相同的 Web 開發人員工具的輸出:
受影響的產品
Data Protection Central文章屬性
文章編號: 000219815
文章類型: Solution
上次修改時間: 15 7月 2025
版本: 2
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。