Out-of-bounds read In github.com/siyuan-note/siyuan/kernel

Description

SiYuan has Arbitrary Document Reading within the Publishing Service

Details

Document IDs were retrieved via the /api/file/readDir interface, and then the /api/block/getChildBlocks interface was used to view the content of all documents.

PoC

#!/usr/bin/env python3
"""SiYuan /api/block/getChildBlocks 文档内容读取"""
import requests
import json
import sys

def get_child_blocks(target_url, doc_id):
    """...
image

Impact

File reading: All encrypted or prohibited documents under the publishing service could be read.

Mitigation

Update Impact

Minimal update. May introduce new vulnerabilities or breaking changes.

Ecosystem
Package
Affected version
FLAT-VHCMX – Vulnerability | Fluid Attacks Database