Catégories
CVE-2026-77637 low CVSS 3.8

Vulnérabilité dans github.com/cloudreve/Cloudreve/v4 (CVE-2026-77637)

Résumé

Vulnérabilité dans github.com/cloudreve/Cloudreve/v4 (CVE-2026-77637). Risque d'opérations non autorisées ou de divulgation. Exploitable via POST /mail. Atténuation : mise à jour vers 4.0.0-20260715070110-bce08f88e9d8 ou plus.

Description d'origine

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

Summary

There is a privilege scope bypass in Cloudreve's admin API where two endpoints that mutate server state are missing the write-scope enforcement that their neighboring endpoints correctly apply. Specifically, the WOPI configuration fetch endpoint and the SMTP test/mail endpoint can both be triggered by an OAuth token that only has Admin.Read authorization — no Admin.Write needed. This breaks the intended OAuth scope boundary in a way that's subtle enough to have slipped through but meaningful enough to matter in a real deployment.

Details

The root cause is an inconsistency in how the admin tool routes are wired up in routers/router.go. The admin route group sets a baseline of ScopeAdminRead for everything underneath it (around line 868), and most write-capable endpoints inside the tool sub-group correctly layer on an additional RequiredScopes(types.ScopeAdminWrite) check on top of that. For example, the thumbnail executable setter (line 929) and the entity URL cache deletion (line 937) both do this properly.

The two endpoints that don't follow this pattern are tool.GET('wopi') (line 925) and tool.POST('mail') (line 933). Despite POST /mail clearly triggering an outbound email and GET /wopi fetching or probing WOPI service connectivity, neither has the ScopeAdminWrite guard. What that means in practice is that any OAuth application granted only Admin.Read — a scope that should be limited to inspecting configuration, not changing anything — ca…

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-77637 a été découverte dans github.com/cloudreve/Cloudreve/v4.
Des attaquants peuvent cibler un point d'entrée spécifique comme POST /mail à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : 3.8/10.
Action : mettez à jour github.com/cloudreve/Cloudreve/v4 vers 4.0.0-20260715070110-bce08f88e9d8 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/cloudreve/Cloudreve/v4 CVE-2026-77637 » sur le site de l'éditeur.

CVE-2026-77637 (github.com/cloudreve/Cloudreve/v4) — CWE-862 / CVSS v3 3.8
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : POST /mail / GET /wopi / ScopeAdminRead / tool
Correctif : 4.0.0-20260715070110-bce08f88e9d8 — 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 vulnérabilité (CWE-862) affecte github.com/cloudreve/Cloudreve/v4. Les attaquants atteignent le code vulnérable via POST /mail.

📍 Périmètre concerné

Consultez l'avis de l'éditeur pour les versions affectées de github.com/cloudreve/Cloudreve/v4. Surface d'attaque : POST /mail / GET /wopi / ScopeAdminRead / tool.

🔥 Gravité

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

🔧 Comment corriger

Mettre à jour vers 4.0.0-20260715070110-bce08f88e9d8.

🛡️ 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 /mail (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver github.com/cloudreve/Cloudreve/v4.

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/cloudreve/Cloudreve/v4' . | grep -v node_modules

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

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

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

  3. 3
    Apply patch patch
    Upgrade github.com/cloudreve/Cloudreve/v4 to 4.0.0-20260715070110-bce08f88e9d8

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

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

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

Paquets affectés

go github.com/cloudreve/Cloudreve/v4
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.0.0-20260715070110-bce08f88e9d8"}]}]
Go github.com/cloudreve/Cloudreve
[{"type":"SEMVER","events":[{"introduced":"0"}]}]
Go github.com/cloudreve/Cloudreve/v3
[{"type":"SEMVER","events":[{"introduced":"0"}]}]

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