🇰🇷 한글 설명
Reddit 전용 마크다운 파서인 snudown의 참조 테이블 구현에서 서비스 거부(DoS) 취약점이 발견되었습니다. 공격자가 해시 충돌을 유발하는 마크다운 참조를 생성하여 해시 테이블의 성능을 저하시키고 시스템 자원을 고갈시킬 수 있습니다.
💡 쉬운 설명
마크다운 문서 내의 특정 링크 형식을 악용하여 컴퓨터가 계산을 처리하는 데 너무 많은 시간을 쓰게 만드는 공격입니다. 이로 인해 서비스가 매우 느려지거나 멈출 수 있습니다.
🇺🇸 원문 (English)
Snudown is a reddit-specific fork of the Sundown Markdown parser used by GitHub, with Python integration added. In affected versions snudown was found to be vulnerable to denial of service attacks to its reference table implementation. References written in markdown ` [reference_name]: https://www.example.com` are inserted into a hash table which was found to have a weak hash function, meaning that an attacker can reliably generate a large number of collisions for it. This makes the hash table vulnerable to a hash-collision DoS attack, a type of algorithmic complexity attack. Further the hash table allowed for duplicate entries resulting in long retrieval times. Proofs of concept and further discussion of the hash collision issue are discussed on the snudown GHSA(https://github.com/reddit/snudown/security/advisories/GHSA-6gvv-9q92-w5f6). Users are advised to update to version 1.7.0.
📍 영향받는 시스템
snudown 1.7.0 미만 버전
⚔️ 공격 벡터
해시 충돌을 유발하는 마크다운 참조(Reference) 링크를 포함한 악성 데이터 전송
🛡️ 대응 방법
snudown 라이브러리를 1.7.0 버전 이상으로 업데이트
🔧 검증 코드
출력된 버전 번호가 1.7.0보다 낮은지 확인합니다.
pip show snudown | grep Version