Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
Appwrite 1.4.0 before 1.9.10 and 2.6.0 before 2.6.2 Path Traversal via providerRootDirectory Parameter
Vulnerability Description
Appwrite 1.4.0 before 1.9.10 and 2.6.0 before 2.6.2 contains a path traversal vulnerability in the builds worker (src/Appwrite/Platform/Modules/Functions/Workers/Builds.php in current releases), which sanitizes the providerRootDirectory of a function or site only by stripping leading '.' and '/' characters with ltrim() and then appends it to the repository checkout path to choose the directory packaged into the deployment, so '..' segments survive. Authenticated users who can create or update functions or sites, for example with the functions.write or sites.write scope, can set providerRootDirectory on a Git-connected function or site to a value such as ../../../../../etc so that the builds worker packages a directory outside the checkout, then download the deployment to read files from the builds worker container, including other projects' deployments and builds on the storage volumes it mounts. In 2.6.0 and 2.6.1 only functions and sites connected through the Entire Git provider are affected.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Vulnerability Type
对路径名的限制不恰当(路径遍历)