CVE-2022-25377: 
PHP Análisis y mitigación de vulnerabilidades

Vista general

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).

Técnicas

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).

Impacto

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).

Explotabilidad

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).

Mitigación y soluciones alternativas

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).

Recursos adicionales


Fuente: Este informe se generó utilizando IA

Relacionado PHP Vulnerabilidades:

CVE ID

Severidad

Puntuación

Tecnologías

Nombre del componente

Exploit de CISA KEV

Tiene arreglo

Fecha de publicación

CVE-2026-107845CRITICAL9.3
  • PHP logoPHP
  • contao/comments-bundle
NoSíOct 09, 2026
CVE-2026-107844MEDIUM5.3
  • PHP logoPHP
  • contao/core-bundle
NoSíOct 09, 2026
CVE-2026-107851MEDIUM4.3
  • PHP logoPHP
  • contao/core-bundle
NoSíOct 09, 2026
CVE-2026-107850MEDIUM4.3
  • PHP logoPHP
  • contao/core-bundle
NoSíOct 09, 2026
CVE-2026-107848LOW3.5
  • PHP logoPHP
  • contao/core-bundle
NoSíOct 09, 2026

Evaluación gratuita de vulnerabilidades

Compare su postura de seguridad en la nube

Evalúe sus prácticas de seguridad en la nube en 9 dominios de seguridad para comparar su nivel de riesgo e identificar brechas en sus defensas.

Solicitar evaluación

Recursos adicionales de Wiz

Obtén una demostración personalizada

¿Listo para ver a Wiz en acción?

"La mejor experiencia de usuario que he visto en mi vida, proporciona una visibilidad completa de las cargas de trabajo en la nube."
David EstlickCISO
"Wiz proporciona un panel único para ver lo que ocurre en nuestros entornos en la nube."
Adam FletcherJefe de Seguridad
"Sabemos que si Wiz identifica algo como crítico, en realidad lo es."
Greg PoniatowskiJefe de Gestión de Amenazas y Vulnerabilidades