JoshData / JoshData/python-email-validator
Ability to disallow confusing unicode characters to prevent homoglyph phishing attacks
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 1.4k
- フォーク
- 140
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When emails contain unicode characters that look similar to ascii characters, an attack vector is possible anytime we display the unicode email as an identifier of a user without punycode encoding the displayed email.
It would be nice to have an option to make confusing unicode characters fail email validation, but might be outside the scope of this library since it depends on the external confusables.txt data file from unicode.org?
The Unicode Consortium's Visual Spoofing Recommendations agree with this solution as a better alternative than blocking all unicode characters in domains and emails.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、メール検証のエントリーポイントと、issue で参照されている Unicode TR39 の confusables データを確認します。オプトインの拒否モードで confusables.txt をどのように使用すべきかを判断し、紛らわしい Unicode 文字を拒否しつつ、すべての Unicode アドレスをブロックしないために必要な作業を検討します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- backend, security
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100