Skip to content
SQL injection Advisory Advanced CVE-2024-1863

Sante PACS Server Token Endpoint SQL Injection Remote Code Execution Vulnerability

The token endpoint on port 3000 builds SQL queries from an unvalidated user-supplied string, allowing an unauthenticated attacker to inject SQL. This can be leveraged to execute code as the NETWORK SERVICE account.

Florent Saudel Follow

Originally disclosed on Zero Day Initiative

Critical 9.8 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Sante PACS Server. Authentication is not required to exploit this vulnerability.

Florent Saudel, on the Zero Day Initiative

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

The token parameter is concatenated into SQL queries without validation or parameterisation.

Impact

An unauthenticated remote attacker could execute arbitrary code with the privileges of the NETWORK SERVICE account.

What the attacker needed

Network access to port 3000; no authentication required

The fix

It was fixed in version 3.3.6.

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.

The server takes a value from a web request and pastes it straight into a database command without checking it. An attacker can add their own database instructions, and in this case that leads to running their own code on the machine. No login is needed.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by Florent Saudel

View all

1 more disclosed report, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.