python.pyramid-set-cookie-secure-unsafe-value

返回列表 · CWE 索引

pythonWARNING规则详情

各语言消息对照

语言消息
de

Ein Pyramid-Cookie wurde gefunden, bei dem die Option secure nicht korrekt gesetzt ist. Pyramid-Cookies sollten sicher behandelt werden, indem in response.set_cookie(...) secure=True gesetzt wird. Ist der Parameter nicht korrekt gesetzt, sind Ihre Cookies nicht ordentlich geschützt und können von einem Angreifer gestohlen werden.

en

Found a Pyramid cookie without the secure option correctly set. Pyramid cookies should be handled securely by setting secure=True in response.set_cookie(...). If this parameter is not properly set, your cookies are not properly protected and are at risk of being stolen by an attacker.

fr

Un cookie Pyramid sans l'option secure correctement définie a été détecté. Les cookies Pyramid doivent être gérés de manière sécurisée en définissant secure=True dans response.set_cookie(...). Si ce paramètre n'est pas correctement défini, vos cookies ne sont pas correctement protégés et risquent d'être volés par un attaquant.

ja

Pyramid Cookie で secure オプションが正しく設定されていないことが検出されました。response.set_cookie(...) で secure=True を設定する必要があります。このパラメーターが正しくない場合、Cookie は適切に保護されず、攻撃者に窃取される恐れがあります。

ko

Pyramid Cookie에 secure 옵션이 올바르게 설정되지 않은 것이 발견되었습니다. response.set_cookie(...)에 secure=True를 설정해야 합니다. 이 매개변수가 올바르지 않으면 Cookie가 제대로 보호되지 않아 공격자에게 탈취될 위험이 있습니다.

ru

Обнаружена cookie Pyramid с неправильно заданной опцией secure. Cookie Pyramid следует обрабатывать безопасно, устанавливая secure=True в response.set_cookie(...): при неправильном значении cookie не защищена должным образом и рискует быть похищенной злоумышленником.

zh

发现 Pyramid Cookie 未正确设置 secure 选项。应在 response.set_cookie(...) 中设置 secure=True;该参数不正确时,Cookie 得不到妥善保护,有被攻击者窃取的风险。

zh-Hant

發現 Pyramid Cookie 未正確設定 secure 選項。應在 response.set_cookie(...) 中設定 secure=True;該參數不正確時,Cookie 得不到妥善保護,有被攻擊者竊取的風險。

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/python/pyramid/audit/set-cookie-secure-unsafe-value.yaml