Catégories
CVE-2026-44342 medium CVSS 5.3

CSRF dans github.com/QuantumNous/new-api (CVE-2026-44342)

Résumé

Vulnérabilité dans github.com/QuantumNous/new-api (CVE-2026-44342). Les données peuvent être altérées par des attaquants. Exploitable via GET /api/oauth/email/bind. Atténuation : mise à jour vers 0.12.0-alpha.1 ou plus.

Description d'origine

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

Summary

The email and WeChat account binding endpoints used GET requests for state-changing account operations. In deployments where session cookies could be sent on cross-site navigations, an attacker could trigger a logged-in user's browser to bind an attacker-controlled email address or OAuth identity.

Affected endpoints included:

  • GET /api/oauth/email/bind
  • GET /api/oauth/wechat/bind

Impact

A successful attack could change account binding state. For email binding, the attacker could bind an email address they control and then attempt follow-on account recovery flows. The default session cookie configuration uses SameSite=Strict, which mitigates common cross-site navigation attacks in modern browsers, so the issue is rated Medium.

Affected versions

Versions before v0.12.0-alpha.1 are affected.

Patches

This issue is fixed in v0.12.0-alpha.1. The fix changes email and WeChat binding routes from GET to POST and reads parameters from a JSON request body instead of query parameters. The same change set also normalizes password reset responses to avoid disclosing whether an email is registered.

Workarounds

If upgrading immediately is not possible, ensure session cookies are configured with strict SameSite behavior and block GET requests to /api/oauth/email/bind and /api/oauth/wechat/bind at the reverse proxy.

Resources

  • Fixed by commit e099117c61391abdf888fb75e382a582e550bd0e.
  • Relevant code paths: router/api-router.go and `co…

Source: GitHub Security Advisories (Global) 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-44342 a été découverte dans github.com/QuantumNous/new-api.
Des attaquants peuvent cibler un point d'entrée spécifique comme GET /api/oauth/email/bind à distance pour détourner le produit.
Les données peuvent être altérées par des attaquants. Score CVSS : 5.3/10.
Action : mettez à jour github.com/QuantumNous/new-api vers 0.12.0-alpha.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/QuantumNous/new-api CVE-2026-44342 » sur le site de l'éditeur.

CVE-2026-44342 (github.com/QuantumNous/new-api) — CWE-352 / CVSS v3 5.3
Vecteur d'attaque : distant (réseau) / non authentifié
Surface d'attaque : GET /api/oauth/email/bind / GET /api/oauth/wechat/bind / e099117c61391abdf888fb75e382a582e550bd0e
Correctif : 0.12.0-alpha.1 — appliquer immédiatement
Contournement : If upgrading immediately is not possible, ensure session cookies are configured with strict SameSite behavior and block GET requests to /api/oauth/email/bind and /api/oauth/wechat/bind at the reverse proxy.
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 CSRF (CWE-352) affecte github.com/QuantumNous/new-api. Les attaquants atteignent le code vulnérable via GET /api/oauth/email/bind sans authentification.

📍 Périmètre concerné

Consultez l'avis de l'éditeur pour les versions affectées de github.com/QuantumNous/new-api. Surface d'attaque : GET /api/oauth/email/bind / GET /api/oauth/wechat/bind / e099117c61391abdf888fb75e382a582e550bd0e.

🔥 Gravité

Gravité : Moyenne (CVSS 5.3/10). Les données peuvent être altérées par des attaquants.

🔧 Comment corriger

Mettre à jour vers 0.12.0-alpha.1.

🛡️ Contournement

Contournement : If upgrading immediately is not possible, ensure session cookies are configured with strict SameSite behavior and block GET requests to /api/oauth/email/bind and /api/oauth/wechat/bind at the reverse proxy.

🔍 Détection

Recherchez dans les logs webserver/proxy/WAF des requêtes anormales vers GET /api/oauth/email/bind (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver github.com/QuantumNous/new-api.

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/QuantumNous/new-api' . | grep -v node_modules

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

  2. 2
    Hunt for indicators of compromise detect
    grep 'GET /api/oauth/email/bind' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'

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

  3. 3
    Apply temporary workaround mitigate
    If upgrading immediately is not possible, ensure session cookies are configured with strict SameSite behavior and block GET requests to `/api/oauth/email/bind` and `/api/oauth/wechat/bind` at the reverse proxy.

    パッチが適用されるまでの応急処置として、If upgrading immediately is not possible, ensure session cookies are configured with strict SameSite behavior and block GET requests to /api/oauth/email/bind and /api/oauth/wechat/bind at the reverse proxy. を実施。回避策の副作用 (機能低下) を確認した上で。

  4. 4
    Apply patch patch
    Upgrade github.com/QuantumNous/new-api to 0.12.0-alpha.1

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

  5. 5
    Post-deployment verification verify
    Replay attack against GET /api/oauth/email/bind on staging to confirm patch closes the vector

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

Paquets affectés

go github.com/QuantumNous/new-api
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.0-alpha.1"}]}]

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