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

(Pwn2Own) Synology BeeStation BST150-4T SQL Injection Remote Code Execution Vulnerability

The update_settings command in Synology BeeStation BST150-4T fails to validate user-supplied input before using it in SQL queries, allowing an authenticated network-adjacent attacker to inject SQL. This can be chained with other vulnerabilities to execute code as root.

Pumpkin Follow

Originally disclosed on Zero Day Initiative

Medium 6.4 View original

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Synology BeeStation BST150-4T devices. Authentication is required to exploit this vulnerability.

Pumpkin Chang (@u1f383) and Orange Tsai (@orange_8361) from DEVCORE Research Team, 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

Likely, the update_settings command builds SQL queries by concatenating user-supplied strings without proper validation or parameterisation.

Impact

An authenticated, network-adjacent attacker could chain this SQL injection with other vulnerabilities to execute arbitrary code as root, but authentication is required.

What the attacker needed

Network-adjacent access; authentication required

The fix

Synology has issued an update to correct this vulnerability.

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.

SQL injection is when a program puts user input directly into a database command without checking it, so an attacker can sneak in extra commands. Here, an attacker who can log in and is on the same network can abuse this to run their own code on the device with the highest privileges.

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 Pumpkin

View all

2 more disclosed reports, 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.