Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-8080-DKIM-Signature-Verification-Bypass-Header-Canonicalization-Flaw- — CVE-2026-8080 DKIM 验证绕过漏洞的 Python 模拟演示,展示不符合规范的邮件头规范化如何让攻击者注入邮件头,而签名验证仍然通过。 | Kitploit
工具/GitHubGitHub/george0papasotiriou/cve-2026-8080-dkim-signature-verification-bypass-header-canonicalization-flaw-
漏洞分析漏洞利用密码学电子邮件安全
GitHubgeorge0papasotiriou/cve-2026-8080-dkim-signature-verification-bypass-header-canonicalization-flaw-

CVE-2026-8080-DKIM-Signature-Verification-Bypass-Header-Canonicalization-Flaw-

CVE-2026-8080 DKIM 验证绕过漏洞的 Python 模拟演示,展示不符合规范的邮件头规范化如何让攻击者注入邮件头,而签名验证仍然通过。

查看仓库

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
17天前尚未审核

CVE-2026-8080 – DKIM 签名验证绕过(头部规范化缺陷)

程序代码(Python 邮件解析模拟)

root@kitploit:~
# dkim_verifier_sim.py - Flawed DKIM verifier
import re, hashlib

# Simulated email with DKIM signature
raw_email = b"""From: [email protected]
To: [email protected]
Subject: Hello
DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=mail; h=from:to:subject;
        b=abc123; bh=def456;
X-Extra: injected

This is a test.
"""

def parse_headers(raw):
    headers = {}
    lines = raw.decode().split('\r\n')
    for line in lines:
        if ': ' in line:
            key, val = line.split(': ', 1)
            headers[key.lower()] = val
    return headers

def verify_dkim(raw):
    headers = parse_headers(raw)
    # Vulnerability: canonicalisation does not remove extra headers not in the 'h' list
    # According to RFC, only headers listed in 'h' are signed, but the verifier should exclude others.
    # Here we simulate that extra header 'x-extra' is mistakenly included in the hash computation
    # because the verifier canonicalizes all headers instead of just the listed ones.
    signed_headers = headers['dkim-signature'].split('h=')[1].split(';')[0].split(':')
    # Build header list for hash
    header_block = ""
    for h in signed_headers:
        header_block += f"{h}:{headers[h]}\r\n"
    # Flaw: include extra header X-Extra because it's present in the actual headers
    if 'x-extra' in headers:
        header_block += f"x-extra:{headers['x-extra']}\r\n"
    # Now compute hash and compare... For demo, we'll just print that verification succeeds incorrectly.
    print("Verification passed (incorrectly includes extra header)")

verify_dkim(raw_email)

CVE-2026-8080 – DKIM 签名验证绕过(头部规范化错误)

Severity: Medium

概述

邮件服务器的 DKIM 验证器未严格遵循 RFC 6376 中定义的规范化算法。它在哈希计算中包含了额外的头部字段,使得攻击者可以追加一个头部(例如 X-Extra: injected)来改变邮件的实际行为,而签名仍然能够通过验证。

漏洞详情

  • 类型: 加密验证绕过
  • 影响: 电子邮件欺骗、网络钓鱼、绕过垃圾邮件过滤器。
  • 根本原因: 验证器对所有存在的头部进行规范化,而非仅规范化 h= 标签中列出的头部,导致签名内容与验证内容不一致。

漏洞利用演示

运行模拟的有缺陷验证器:

root@kitploit:~
python dkim_verifier_sim.py

即使添加了额外的头部,它仍然会打印“Verification passed”(验证通过)。

下载工具