Catégories
CVE-2020-4071

Vulnérabilité dans django-basic-auth-ip-whitelist (CVE-2020-4071)

Résumé

Vulnérabilité dans django-basic-auth-ip-whitelist (CVE-2020-4071). Risque d'opérations non autorisées ou de divulgation. Exploitable via BASIC_AUTH_LOGIN. Atténuation : mise à jour vers 0.3.4 ou plus.

Description d'origine

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

Impact

Potential timing attack exists on websites where the basic authentication is used or configured, i.e. BASIC_AUTH_LOGIN and BASIC_AUTH_PASSWORD is set. Currently the string comparison between configured credentials and the ones provided by users is performed through a character-by-character string comparison. This enables a possibility that attacker may time the time it takes the server to validate different usernames and password, and use this knowledge to work out the valid credentials. This attack is understood not to be realistic over the Internet. However, it may be achieved from within local networks where the website is hosted, e.g. from inside a data centre where a website's server is located.

Sites protected by IP address whitelisting only are unaffected by this vulnerability.

Patches

This vulnerability has been fixed on version 0.3.4 of django-basic-auth-ip-whitelist. Update to version 0.3.4 as soon as possible and change basic authentication username and password configured on a Django project using this package.

Workarounds

Stop using basic authentication and use the IP whitelisting component only. It can be achieved by not setting BASIC_AUTH_LOGIN and BASIC_AUTH_PASSWORD in Django project settings.

References

For more information

If you have any questions or comments about this advisory:

  • Open an issue at h…

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-2020-4071 a été découverte dans django-basic-auth-ip-whitelist.
Des attaquants peuvent cibler un point d'entrée spécifique comme BASIC_AUTH_LOGIN à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour django-basic-auth-ip-whitelist vers 0.3.4 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « django-basic-auth-ip-whitelist CVE-2020-4071 » sur le site de l'éditeur.

CVE-2020-4071 (django-basic-auth-ip-whitelist) — CWE-208
Vecteur d'attaque : physique / non authentifié / sans interaction utilisateur
Surface d'attaque : BASIC_AUTH_LOGIN / BASIC_AUTH_PASSWORD
Correctif : 0.3.4 — appliquer immédiatement
Contournement : Stop using basic authentication and use the IP whitelisting component only.
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-208) affecte django-basic-auth-ip-whitelist. Les attaquants atteignent le code vulnérable via BASIC_AUTH_LOGIN sans authentification.

📍 Périmètre concerné

Consultez l'avis de l'éditeur pour les versions affectées de django-basic-auth-ip-whitelist. Surface d'attaque : BASIC_AUTH_LOGIN / BASIC_AUTH_PASSWORD.

🔥 Gravité

Gravité : ?. Risque d'opérations non autorisées ou de divulgation.

🔧 Comment corriger

Mettre à jour vers 0.3.4.

🛡️ Contournement

Contournement : Stop using basic authentication and use the IP whitelisting component only.

🔍 Détection

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

  1. 1
    Identify exposure identify
    grep -r 'django-basic-auth-ip-whitelist' . | grep -v node_modules

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

  2. 2
    Apply temporary workaround mitigate
    Stop using basic authentication and use the IP whitelisting component only.

    パッチが適用されるまでの応急処置として、Stop using basic authentication and use the IP whitelisting component only. を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    Apply patch patch
    Upgrade django-basic-auth-ip-whitelist to 0.3.4

    ステージング環境で 0.3.4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    Post-deployment verification verify
    Confirm patched version is live in production

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

Paquets affectés

PyPI django-basic-auth-ip-whitelist
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.3.4"}]}]

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