GHSA-5fv7-wh8q-cmfj: 
Python Analyse et atténuation de la vulnérabilité

Summary

Modoboa stores credential PDFs in a shared storage directory using a filename derived from the account's mutable username field. get_creds_filename() only checks that the resolved path stays inside the storage directory; it does not verify that the file belongs to the account being authorized

Details

A privileged account without a mailbox (DomainAdmin or Reseller) can rename itself to a path-like value such as x/../<victim>. The account update path skips e-mail/domain validation whenever the request body has no mailbox key, so the value is persisted. The attacker then calls GET /api/v2/credentials/<own_id>/; authorization passes on the attacker's own account, while os.path.abspath collapses x/../victim to <storage_dir>/victim.pdf. The server decrypts that file and returns it. The chain was confirmed end to end in the lab: the attacker received the victim's decrypted PDF byte for byte (2557 bytes, matching SHA-256, Content-Disposition: attachment; filename="reseller@tenant-a.test.pdf").

Proof of concept

PATCH /api/v2/accounts/{{account_id}}/ HTTP/1.1
Host: {{host}}
Authorization: Bearer {{token}}
Content-Type: application/json
{"username": "x/../{{victim_username}}"}
GET /api/v2/credentials/{{account_id}}/ HTTP/1.1
Host: {{host}}
Authorization: Bearer {{token}}
  • {{account_id}} is the attacker's own account.
  • Do not send Accept: application/pdf in the second request; DRF returns 406.
  • Expected: 200, Content-Type: application/pdf, and Content-Disposition: attachment; filename="{{victim_username}}.pdf".
  • With the default delete_first_dl=True, the file is deleted after download.

Impact

plaintext usernames and passwords of any account whose username is known and whose document still exists. If the victim is a Reseller or another tenant's administrator, this becomes cross-tenant privilege escalation and account takeover. With the default delete_first_dl=True, the read is one-shot and also destroys the victim's document


Source: NVD

Connexe Python Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

GHSA-7j4m-2589-jfg9HIGH7.8
  • Python logoPython
  • graphlm
NonOuiNov 17, 2026
GHSA-5fv7-wh8q-cmfjHIGH7.6
  • Python logoPython
  • modoboa
NonOuiNov 17, 2026
GHSA-8cgq-x343-p74cMEDIUM6.5
  • Python logoPython
  • mail-parser
NonOuiNov 16, 2026
GHSA-24mq-4vc6-2prfMEDIUM6.5
  • Python logoPython
  • mail-parser
NonOuiNov 16, 2026
GHSA-xhrq-2mqv-q8wxMEDIUM5.3
  • Python logoPython
  • mail-parser
NonOuiNov 16, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités