php.laravel-cookie-null-domain

返回列表 · CWE 索引

phpERROR规则详情

各语言消息对照

语言消息
de

Eine Konfigurationsdatei wurde gefunden, in der das Attribut domain nicht auf null steht. Es wird empfohlen (außer bei Subdomain-Registrierungen), das Attribut auf null zu setzen, damit nur dieselbe Origin das Cookie setzen kann und Ihre Cookies so geschützt sind.

en

Found a configuration file where the domain attribute is not set to null. It is recommended (unless you are using sub-domain route registrations) to set this attribute to null so that only the same origin can set the cookie, thus protecting your cookies.

fr

Un fichier de configuration où l'attribut domain n'est pas défini à null a été détecté. Il est recommandé (sauf si vous enregistrez des routes de sous-domaines) de définir cet attribut à null afin que seule la même origine puisse poser le cookie, protégeant ainsi vos cookies.

ja

設定ファイルの domain 属性が null に設定されていません。(サブドメインルート登録を使用している場合を除き)null に設定することを推奨します。同一オリジンからのみ cookie を設定できるようになり、お使いの cookie を保護できます。

ko

설정 파일에서 domain 속성이 null로 설정되지 않은 것이 발견되었습니다. null로 설정하는 것이 좋습니다(서브도메인 라우트 등록을 사용하는 경우는 제외). 이렇게 하면 같은 출처만 cookie를 설정할 수 있어 사용자의 cookie를 보호할 수 있습니다.

ru

В файле конфигурации атрибут domain не установлен в null. Рекомендуется (если вы не используете регистрацию маршрутов поддоменов) задать для него null, чтобы cookie могла устанавливать только та же самая доменная зона — это защитит ваши cookie.

zh

发现配置文件中 domain 属性未设为 null。建议(除非使用子域名路由注册)将其设为 null,使只有同源可以设置 cookie,保护你的 cookie。

zh-Hant

發現設定檔案中 domain 屬性未設為 null。建議(除非使用子網域路由註冊)將其設為 null,使只有同源可以設定 cookie,保護你的 cookie。

CWE 知识卡

语言名称修复建议
deOffenlegung von InformationenMinimieren Sie die von Schnittstellen zurückgegebenen Felder; sensible Daten gehören weder in Antworten noch in Logs oder Fehlermeldungen.
en——
frExposition d'informations sensibles à un acteur non autoriséRéduisez au minimum les champs renvoyés par les interfaces ; les données sensibles ne doivent figurer ni dans les réponses, ni dans les journaux, ni dans les messages d'erreur.
ja情報漏えいAPI の返却フィールドを最小限に抑え、機密データはレスポンス、ログ、エラーメッセージに含めないでください。
ko정보 노출인터페이스가 반환하는 필드를 최소화하고, 민감한 데이터가 응답·로그·오류 메시지에 들어가지 않도록 하십시오.
ruРаскрытие информацииМинимизируйте поля в ответах API: чувствительные данные не должны попадать в ответы, журналы и сообщения об ошибках.
zh信息泄露最小化接口返回字段,敏感数据不进入响应、日志与错误信息。
zh-Hant資訊洩漏最小化介面回傳欄位,敏感資料不進入回應、日誌與錯誤資訊。

OWASP

A01:2021 - Broken Access Control

元数据

likelihoodLOW
impactLOW
confidenceLOW

修复字段

fix无
fix-regex无

上游规则源

github.com/opengrep/opengrep-rules/tree/main/php/laravel/security/laravel-cookie-null-domain.yaml