Sante PACS Server Web Portal DCM File Parsing Directory Traversal Arbitrary File Write Vulnerability
The Sante PACS Server Web Portal does not properly validate a user-supplied path when parsing DCM files, allowing an authenticated remote attacker to write arbitrary files. The attacker can create files with the privileges of the current user.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to create arbitrary files on affected installations of Sante PACS Server. Authentication is required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 application fails to sanitise a path taken from a DCM file before using it in file write operations.
Impact
An authenticated remote attacker could write arbitrary files on the server, potentially leading to further compromise.
What the attacker needed
Authentication required; ability to upload or supply a DCM file
The fix
The vulnerability was fixed in Sante PACS Server version 4.0.10.
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 DCM file is a medical image file. The server reads a path from inside that file and uses it to decide where to save something, without checking that the path stays inside the intended folder. An attacker who can log in can craft a DCM file that makes the server write a file to a location of their choosing.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.