Catégories
CVE-2026-72788 medium CVSS 5.8

Autorisation incorrecte dans github.com/siyuan-note/siyuan/kernel (CVE-2026-72788)

Résumé

Vulnérabilité dans github.com/siyuan-note/siyuan/kernel (CVE-2026-72788). Risque d'opérations non autorisées ou de divulgation. Exploitable via POST /api/system/getConf. Atténuation : mise à jour vers 0.0.0-20260812083335-251596fc0de2 ou plus.

Description d'origine

La description telle que publiée par la source (souvent en anglais).

Summary

/api/system/getConf serves Conf.UILayout to publish readers after passing it through FilterConfByPublishIgnore, whose only function is to filter that layout. The layout is written exclusively by setUILayout, which is administrator-gated, so what readers receive is the administrator's own live workspace state, re-saved on every tab open, close and focus change.

The filter that is supposed to protect it, filterLayoutItemByPublishIgnore, has four separate defects. Together they mean a single unauthenticated POST with no arguments returns the titles and identifiers of the administrator's open password-protected documents, the titles of documents in locked or closed notebooks, their recent search terms and the paths those searches were scoped to, and the paths of private assets they have open.

This report concerns FilterConfByPublishIgnore and its layout walker. It is distinct from the previously reported getConf issues, which concern configuration fields surviving HideConfSecret's blocklist. Restructuring the secret-masking path would not affect this, because UILayout is not a secret to be stripped. It is a field intended to be served and filtered.

Details

Route and writer asymmetry. kernel/api/router.go:70 registers POST /api/system/getConf with model.CheckAuth only, so it is reachable by the publish RoleReader token and anonymously when Publish.Auth.Enable is false. The corresponding writer, setUILayout at `kernel/api/rou…

Source: NIST National Vulnerability Database NVD GitHub Advisory

Résumé généré automatiquement

Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.

Une vulnérabilité référencée CVE-2026-72788 a été découverte dans github.com/siyuan-note/siyuan/kernel.
Des attaquants peuvent cibler un point d'entrée spécifique comme POST /api/system/getConf à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : 5.8/10.
Action : mettez à jour github.com/siyuan-note/siyuan/kernel vers 0.0.0-20260812083335-251596fc0de2 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/siyuan-note/siyuan/kernel CVE-2026-72788 » sur le site de l'éditeur.

CVE-2026-72788 (github.com/siyuan-note/siyuan/kernel) — CWE-863 / CVSS v3 5.8
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Surface d'attaque : POST /api/system/getConf / Conf.UILayout / FilterConfByPublishIgnore / setUILayout
Correctif : 0.0.0-20260812083335-251596fc0de2 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.

❓ Quel est le problème

Une autorisation incorrecte (CWE-863) affecte github.com/siyuan-note/siyuan/kernel. Les attaquants atteignent le code vulnérable via POST /api/system/getConf sans authentification.

📍 Périmètre concerné

Consultez l'avis de l'éditeur pour les versions affectées de github.com/siyuan-note/siyuan/kernel. Surface d'attaque : POST /api/system/getConf / Conf.UILayout / FilterConfByPublishIgnore / setUILayout.

🔥 Gravité

Gravité : Moyenne (CVSS 5.8/10). Risque d'opérations non autorisées ou de divulgation.

🔧 Comment corriger

Mettre à jour vers 0.0.0-20260812083335-251596fc0de2.

🛡️ Contournement

En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.

🔍 Détection

Recherchez dans les logs webserver/proxy/WAF des requêtes anormales vers POST /api/system/getConf (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver github.com/siyuan-note/siyuan/kernel.

Actions de réponse

Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre

  1. 1
    Identify exposure identify
    grep -r 'github.com/siyuan-note/siyuan/kernel' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で github.com/siyuan-note/siyuan/kernel を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Hunt for indicators of compromise detect
    grep 'POST /api/system/getConf' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'

    アクセスログで POST /api/system/getConf への異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。

  3. 3
    Apply patch patch
    Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260812083335-251596fc0de2

    ステージング環境で 0.0.0-20260812083335-251596fc0de2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。

  4. 4
    Post-deployment verification verify
    Replay attack against POST /api/system/getConf on staging to confirm patch closes the vector

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。

Paquets affectés

go github.com/siyuan-note/siyuan/kernel
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20260812083335-251596fc0de2"}]}]

Références

Nous utilisons des cookies pour l'analyse d'audience et la mesure publicitaire. Ce réglage s'applique à tous les sites de Game co., Ltd. En savoir plus