Vulnérabilité dans waitress (CVE-2019-16786)
Résumé
Vulnérabilité dans waitress (CVE-2019-16786). Des informations confidentielles peuvent être exposées. Exploitable via chunked. Atténuation : mise à jour vers 1.4.0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
Waitress would parse the Transfer-Encoding header and only look for a single string value, if that value was not chunked it would fall through and use the Content-Length header instead.
According to the HTTP standard Transfer-Encoding should be a comma separated list, with the inner-most encoding first, followed by any further transfer codings, ending with chunked.
Requests sent with:
Transfer-Encoding: gzip, chunked
Would incorrectly get ignored, and the request would use a Content-Length header instead to determine the body size of the HTTP message.
This could allow for Waitress to treat a single request as multiple requests in the case of HTTP pipelining.
Patches
This issue is fixed in Waitress 1.4.0. This brings a range of changes to harden Waitress against potential HTTP request confusions, and may change the behaviour of Waitress behind non-conformist proxies.
Waitress will now return a 501 Not Implemented error if the Transfer-Encoding is not chunked or contains multiple elements. Waitress does not support any transfer codings such as gzip or deflate.
The Pylons Project recommends upgrading as soon as possible, while validating that the changes in Waitress don't cause any changes in behavior.
Workarounds
Various reverse proxies may have protections against sending potentially bad HTTP requests to the backend, and or hardening against potential issues like this. If the reverse proxy doesn't use HTTP/1.1…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
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-2019-16786 a été découverte dans waitress.
Des attaquants peuvent cibler un point d'entrée spécifique comme chunked à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées.
Action : mettez à jour waitress vers 1.4.0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « waitress CVE-2019-16786 » sur le site de l'éditeur.
CVE-2019-16786 (waitress) — CWE-444
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : chunked / gzip / deflate
Correctif : 1.4.0 — appliquer immédiatement
Contournement : Various reverse proxies may have protections against sending potentially bad HTTP requests to the backend, and or hardening against potential issues like this.
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 vulnérabilité (CWE-444) affecte waitress. Les attaquants atteignent le code vulnérable via chunked.
Consultez l'avis de l'éditeur pour les versions affectées de waitress. Surface d'attaque : chunked / gzip / deflate.
Gravité : ?. Des informations confidentielles peuvent être exposées.
Mettre à jour vers 1.4.0.
Contournement : Various reverse proxies may have protections against sending potentially bad HTTP requests to the backend, and or hardening against potential issues like this.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
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 'waitress' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
waitressを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
Various reverse proxies may have protections against sending potentially bad HTTP requests to the backend, and or hardening against potential issues like this.パッチが適用されるまでの応急処置として、Various reverse proxies may have protections against sending potentially bad HTTP requests to the backend, and or hardening against potential issues like this. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3Apply patch patch
Upgrade waitress to 1.4.0ステージング環境で 1.4.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web access.redhat.com
- web docs.pylonsproject.org
- web github.com
- web lists.debian.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web oracle.com