Traversée de chemin dans github.com/oxyno-zeta/s3-proxy (CVE-2026-42882)
Résumé
Traversée de chemin dans github.com/oxyno-zeta/s3-proxy (CVE-2026-42882). Des informations confidentielles peuvent être exposées. Exploitable via PUT /upload/foo/drafts/../restricted/. Atténuation : mise à jour vers 0.0.0-20260424211602-1320e4abd46a ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
oxyno-zeta/s3-proxy is an aws s3 proxy written in go. Prior to 5.0.0, s3-proxy contains an authentication bypass caused by inconsistent URL path interpretation between the authentication middleware and the bucket handler. The authentication middleware evaluates resource path patterns against the percent-encoded request URI (r.URL.RequestURI()), while the bucket handler constructs S3 object keys from the decoded path (r.URL.Path). This mismatch, combined with the glob library being invoked without a path separator (causing * to match across / boundaries), allows unauthenticated attackers to write to, read from, or delete objects in protected S3 namespaces. Exploitation is possible via three techniques: (1) using * patterns
that match across path separators to reach protected routes via path traversal (e.g., /open/foo/drafts/../restricted/), (2) using percent-encoded slashes (%2F) to collapse multiple path segments into a single token at the auth layer while the decoded form resolves to a protected namespace at the storage layer, and (3) using dot-dot segments (../) under ** prefix patterns, where the raw path matches an open route while Go's URL parser resolves the traversal to a protected path before the bucket handler runs. An unauthenticated attacker with network access can perform unauthorized PUT, GET, or DELETE operations on objects in authentication-protected S3 namespaces. This vulnerability is fixed in 5.0.0.
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-42882 a été découverte dans github.com/oxyno-zeta/s3-proxy.
Des attaquants peuvent cibler un point d'entrée spécifique comme PUT /upload/foo/drafts/../restricted/ à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées. Score CVSS : 9.4/10.
Action : mettez à jour github.com/oxyno-zeta/s3-proxy vers 0.0.0-20260424211602-1320e4abd46a ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/oxyno-zeta/s3-proxy CVE-2026-42882 » sur le site de l'éditeur.
CVE-2026-42882 (github.com/oxyno-zeta/s3-proxy) — CWE-22 / CVSS v3 9.4
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Surface d'attaque : PUT /upload/foo/drafts/../restricted/ / PUT /upload/foo / PUT /upload/foo/drafts/ / PUT /open/../restricted/secret.json
Correctif : 0.0.0-20260424211602-1320e4abd46a — 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.
Une traversée de chemin (CWE-22) affecte github.com/oxyno-zeta/s3-proxy. Les attaquants atteignent le code vulnérable via PUT /upload/foo/drafts/../restricted/ sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/oxyno-zeta/s3-proxy. Surface d'attaque : PUT /upload/foo/drafts/../restricted/ / PUT /upload/foo / PUT /upload/foo/drafts/ / PUT /open/../restricted/secret.json.
Gravité : Critique (CVSS 9.4/10). Des informations confidentielles peuvent être exposées.
Mettre à jour vers 0.0.0-20260424211602-1320e4abd46a.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs webserver/proxy/WAF des requêtes anormales vers PUT /upload/foo/drafts/../restricted/ (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver github.com/oxyno-zeta/s3-proxy.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'github.com/oxyno-zeta/s3-proxy' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/oxyno-zeta/s3-proxyを grep し、稼働しているサービス・バージョンを把握する。 -
2Hunt for indicators of compromise detect
grep 'PUT /upload/foo/drafts/../restricted/' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
PUT /upload/foo/drafts/../restricted/への異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3Apply patch patch
Upgrade github.com/oxyno-zeta/s3-proxy to 0.0.0-20260424211602-1320e4abd46aステージング環境で 0.0.0-20260424211602-1320e4abd46a に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4Post-deployment verification verify
Replay attack against PUT /upload/foo/drafts/../restricted/ on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- web github.com