qdrant input validation failure
Qdrant's snapshot recovery process did not validate symlinks inside snapshot archives, so a crafted snapshot could read or write arbitrary files on the server. This could lead to full system takeover.
qdrant/qdrant
Originally disclosed on huntr
qdrant/qdrant version 1.9.0-dev is vulnerable to arbitrary file read and write during the snapshot recovery process. Attackers can exploit this vulnerability by manipulating snapshot files to include symlinks, leading to arbitrary file read by adding a symlink that points to a desired file on the filesystem and arbitrary file write by including a symlink and a payload file in the snapshot's directory structure. This vulnerability allows for the reading and writing of arbitrary files on the server, which could potentially lead to a full takeover of the system. The issue is fixed in version v1.9.0.
From the GitHub Advisory Database (GHSA-7m75-x27w-r52r, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the snapshot extraction and recovery logic did not reject symlinks or validate their targets before reading or writing files.
Impact
An attacker could read and write arbitrary files on the server, which could potentially lead to a full takeover of the system.
What the attacker needed
Ability to supply a crafted snapshot
The fix
The issue was fixed in version v1.9.0.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A snapshot is a backup file that a server restores. The server trusted everything inside that backup, including special links that point to other files on the machine. An attacker could make a backup containing such a link and a payload, causing the server to read or overwrite files it should not touch.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.