
PEACH
Un cadre d’isolation des locataires
The ACME-challenge endpoint in Appwrite versions 0.5.0 through 0.12.x before 0.12.2 contained a Local File Inclusion (LFI) vulnerability that allowed remote attackers to read arbitrary local files via directory traversal. The vulnerability was discovered in December 2021 and was fixed in version 0.12.2 released on February 11, 2022 (Dubell Blog, GitHub Release).
The vulnerability existed in the /.well-known/acme-challenge endpoint's path validation logic. The issue stemmed from an incorrect check '!\substr($absolute, 0, \strlen($base)) === $base' which inverted the result of substr, causing the path validation to be bypassed. This allowed attackers to use ../ directory traversal sequences to access files outside the intended directory. The vulnerability was exploitable when the path APP_STORAGE_CERTIFICATES/.well-known/acme-challenge existed on disk, which would be automatically created if the user chose to install let's encrypt certificates via Appwrite (Dubell Blog).
The impact was severe as it allowed reading arbitrary local files on the system. If PHP was running as root (as in the provided docker environment), an attacker could read any system file including sensitive files like /etc/shadow, /etc/passwd, private SSH keys, private certificate keys, .bash-history, local Appwrite cache files, and configuration files containing secrets such as database credentials in /proc/self/environ (Dubell Blog).
The vulnerability did not require authentication to exploit. However, exploitation required that the path APP_STORAGE_CERTIFICATES/.well-known/acme-challenge existed on the target system. According to Shodan.io data from December 2021, there were 562 servers running Appwrite that were potentially vulnerable (Dubell Blog).
The vulnerability was fixed in Appwrite version 0.12.2. Users should upgrade to this version or later to mitigate the issue. The fix involved correcting the path validation logic in the ACME-challenge endpoint (GitHub Release).
Source: Ce rapport a été généré à l’aide de l’IA
Évaluation gratuite des vulnérabilités
Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité pour évaluer votre niveau de risque et identifier les failles 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."