SANs in x509 objects do not accept wildcards

オープン
#311 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python
領域
security

調査の方向性

x509 オブジェクトテンプレートと WebUI および PyMISP で使用されるホスト名検証パスを確認し、まず dns_names の SAN 値がどのようにチェックされるかを調べます。wildcard のケースと、対象に含まれていれば IP SAN を再現し、その後、有効な SAN 値が両方のインターフェースで受け入れられることを確認します。

索引モデルが issue の本文から書いたものです。

説明

Hi everyone,
I tried to add wildcards to an x509 object and it did not work. Many of the certificates we are using have wildcards as part of the SANs field.
According to RFC5280 wildcards are accepted in the SANs field:

Finally, the semantics of subject alternative names that include wildcard characters (e.g., as a placeholder for a set of names) are not addressed by this specification. Applications with specific requirements MAY use such names, but they must define the semantics.

Adding the wildcard to an x509 object did not work using the WebUI or the PyMisp library - presumably because the wildcard domain is being checked for being a valid hostname as the template uses the hostname type for dns_names.

One more thing: IP addresses are also allowed in the SANs field, but probably wouldn't pass the host validation (not tested).

Thanks for any help in advance!

主要言語
Python
スター
111
フォーク
144
平均マージ
18時間 47分
マージ済み PR(30日)
50

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MISP/misp-objects のほかの issue

MISP/misp-objects の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。