Skip to content
RCE Write-up Advanced

We Decide What You See: Remote Code Execution on a Major IPTV Platform

An authentication bypass in the Ministra IPTV management platform allowed unauthenticated access to admin AJAX functions, leading to SQL injection and PHP object injection, which could be chained to achieve remote code execution on the server.

research.checkpoint.com

Published on research.checkpoint.com

About a year ago Check Point Research discovered critical vulnerabilities in a Ukrainian TV streaming platform that, if exploited, could leave service providers exposed to a serious breach. The risks would be their entire customer database of personal info and financial details as well as allowing an attacker to…

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the authentication check was only enforced when a specific AJAX header was present, and user-controlled input was used as array keys without proper sanitisation, leading to SQL injection and subsequent PHP object injection.

Impact

An attacker could gain full control over the server, potentially exposing customer financial details and allowing them to stream any content they choose to customers' screens.

What the attacker needed

Network access to the Ministra platform; no authentication required

The fix

The vulnerabilities were fixed in version 5.4.1 of Stalker/Ministra.

How it was found

  1. Send a request to an admin AJAX function without the X-Requested-With header to bypass authentication.
  2. Control the 'order', 'columns', and 'search' parameters to inject SQL via array keys.
  3. Use the SQL injection to return arbitrary data that is then passed to unserialize.
  4. Craft a PHP object injection payload using SwiftMailer classes to achieve arbitrary file write.
  5. Write a PHP file to the server to execute arbitrary code.

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 write-up has not been written yet. The Original tab links to the source.

The Ministra platform is used by TV service providers to manage set-top boxes. The researchers found that some admin functions could be accessed without logging in, and by sending specially crafted requests they could trick the server into running their own code. This means an attacker could take full control of the server, potentially accessing customer data or changing what customers see on their TVs.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.