go.cookie-missing-secure

返回列表 · CWE 索引

goWARNING规则详情

各语言消息对照

语言消息
de

Ein Session-Cookie wurde ohne gesetztes Flag 'Secure' erkannt. Das Flag 'Secure' verhindert, dass der Client das Cookie über unsichere Kanäle wie HTTP überträgt. Setzen Sie das Flag 'Secure', indem Sie im Options-Struct 'Secure' auf 'true' stellen.

en

A session cookie was detected without setting the 'Secure' flag. The 'secure' flag for cookies prevents the client from transmitting the cookie over insecure channels such as HTTP. Set the 'Secure' flag by setting 'Secure' to 'true' in the Options struct.

fr

Un cookie de session sans l'option 'Secure' a été détecté. Cette option empêche le client de transmettre le cookie via des canaux non sécurisés comme HTTP. Définissez 'Secure' à 'true' dans la structure Options.

ja

セッション cookie に 'Secure' フラグが設定されていないのが検出されました。このフラグは、クライアントが HTTP などの安全でないチャネルを経由して cookie を送信することを防ぎます。Options 構造体で 'Secure' を 'true' に設定してください。

ko

세션 cookie에 'Secure' 플래그가 설정되지 않은 것이 감지되었습니다. 이 플래그는 클라이언트가 HTTP 등 안전하지 않은 채널을 통해 cookie를 전송하지 않도록 방지합니다. Options 구조체에서 'Secure'를 'true'로 설정하십시오.

ru

Обнаружена сессионная cookie без флага 'Secure'. Этот флаг запрещает клиенту передавать cookie по незащищённым каналам вроде HTTP. Установите 'Secure' в 'true' в структуре Options.

zh

检测到会话 cookie 未设置 'Secure' 标志。该标志防止客户端通过 HTTP 等不安全通道传输 cookie。请在 Options 结构中把 'Secure' 设为 'true'。

zh-Hant

檢測到工作階段 cookie 未設定 'Secure' 旗標。該旗標防止用戶端透過 HTTP 等不安全通道傳輸 cookie。請在 Options 結構中把 'Secure' 設為 'true'。

CWE 知识卡

语言名称修复建议
deSensibles Cookie ohne Secure-AttributWeisen Sie dem sensiblen Cookie die Attribute Secure, HttpOnly und SameSite zu.
en——
frCookie sensible dans une session HTTPS sans l'attribut 'Secure'Ajoutez aux cookies sensibles les attributs Secure, HttpOnly et SameSite.
ja機密性の高い Cookie の Secure 属性未設定機密性の高い Cookie に Secure、HttpOnly、SameSite の各属性を追加してください。
ko민감 Cookie의 Secure 속성 미설정민감 Cookie에 Secure·HttpOnly·SameSite 속성을 추가하십시오.
ruЧувствительная cookie без атрибута SecureДобавляйте чувствительным cookie атрибуты Secure, HttpOnly и SameSite.
zh敏感 Cookie 未设置 Secure 属性敏感 Cookie 增加 Secure、HttpOnly 与 SameSite 属性。
zh-Hant敏感 Cookie 未設定 Secure 屬性敏感 Cookie 增加 Secure、HttpOnly 與 SameSite 屬性。

OWASP

A05:2021 - Security Misconfiguration

元数据

likelihoodLOW
impactLOW
confidenceMEDIUM

修复字段

fix无
fix-regex有

上游规则源

github.com/opengrep/opengrep-rules/tree/main/go/lang/security/audit/net/cookie-missing-secure.yaml