JoshData / JoshData/python-email-validator
Ability to disallow confusing unicode characters to prevent homoglyph phishing attacks
还没有人认领这个 Issue。
- 主要语言
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查电子邮件验证的入口点,以及 issue 中引用的 Unicode TR39 confusables 数据。确定 opt-in 拒绝模式应如何使用 confusables.txt,并考虑在拒绝易混淆的 Unicode 字符而不阻止所有 Unicode 地址时所需的工作。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- backend, security
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100