Description
Arbitrary File Overwrite via Tar Extraction Path Traversal in DB Electronica Telecomunicazioni S.p.A. Mozart FM Transmitter versions 30, 50, 100, 300, 500, 1000, 2000, 3000, 3500, 6000, 7000 allows an attacker to perform Tar extraction with -C / allow arbitrary file overwrite via crafted archive. The `restore_mozzi_memories.sh` script extracts user-controlled tar archives with `-C /` flag, depositing contents to the filesystem root without path validation. When combined with the unauthenticated file upload vulnerabilities (CVE-01, CVE-06, CVE-07), attackers can craft malicious .tgz archives containing path-traversed filenames (e.g., `etc/shadow`, `var/www/index.php`) to overwrite critical system files in writable directories, achieving full system compromise.
EPSS Score:
0%
Comprehensive Technical Analysis of EUVD-2025-199671
1. Vulnerability Assessment and Severity Evaluation
The vulnerability described in EUVD-2025-199671 is an Arbitrary File Overwrite via Tar Extraction Path Traversal in DB Electronica Telecomunicazioni S.p.A. Mozart FM Transmitter. This vulnerability allows an attacker to overwrite arbitrary files on the system by exploiting the restore_mozzi_memories.sh script, which extracts user-controlled tar archives with the -C / flag. The script does not validate the paths of the extracted files, leading to potential overwriting of critical system files.
Severity Evaluation:
- CVSS Base Score: 9.3
- CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:H/SC:L/SI:H/SA:H/AU:N
The high base score indicates a critical vulnerability due to the ease of exploitation (low complexity, no authentication required) and the severe impact on system integrity and availability.
2. Potential Attack Vectors and Exploitation Methods
Attack Vectors:
- Unauthenticated File Upload: Attackers can exploit unauthenticated file upload vulnerabilities (CVE-01, CVE-06, CVE-07) to upload malicious tar archives.
- Crafted Archive Extraction: The malicious tar archives can contain path-traversed filenames (e.g.,
etc/shadow,var/www/index.php) that, when extracted, overwrite critical system files.
Exploitation Methods:
- Crafting Malicious Archives: Attackers can create tar archives with specially crafted filenames designed to overwrite system files.
- Exploiting the Script: The
restore_mozzi_memories.shscript extracts these archives to the filesystem root without validating the paths, allowing the overwrite to occur.
3. Affected Systems and Software Versions
The vulnerability affects multiple versions of the Mozart FM Transmitter:
- Versions: 30, 50, 100, 300, 500, 1000, 2000, 3000, 3500, 6000, 7000
All these versions are susceptible to the arbitrary file overwrite vulnerability due to the flawed tar extraction process.
4. Recommended Mitigation Strategies
- Patch Management: Apply the latest patches and updates provided by DB Electronica Telecomunicazioni S.p.A. to mitigate the vulnerability.
- Input Validation: Ensure that the
restore_mozzi_memories.shscript includes robust input validation to prevent path traversal. - Access Controls: Implement strict access controls to prevent unauthenticated file uploads.
- Monitoring and Logging: Enhance monitoring and logging to detect and respond to suspicious file upload activities.
- Backup and Recovery: Maintain regular backups and have a recovery plan in place to restore system integrity in case of a successful attack.
5. Impact on European Cybersecurity Landscape
The vulnerability poses a significant risk to the European cybersecurity landscape, particularly in sectors relying on telecommunications infrastructure. The potential for full system compromise can lead to disruptions in communication services, data breaches, and loss of service availability. This underscores the need for robust cybersecurity measures and timely patch management across critical infrastructure.
6. Technical Details for Security Professionals
Vulnerability Details:
- Script:
restore_mozzi_memories.sh - Extraction Flag:
-C / - Exploit Mechanism: Path traversal in tar archives leading to arbitrary file overwrite.
Detection and Response:
- Detection: Implement file integrity monitoring (FIM) to detect unauthorized changes to critical system files.
- Response: Develop incident response plans to quickly identify and mitigate the impact of a successful exploit.
- Forensics: Conduct forensic analysis to trace the source of malicious tar archives and understand the scope of the compromise.
Prevention:
- Code Review: Conduct thorough code reviews to identify and fix similar vulnerabilities in other scripts and applications.
- Security Training: Provide training to developers and administrators on secure coding practices and the risks associated with path traversal vulnerabilities.
By addressing these points, organizations can significantly reduce the risk posed by this vulnerability and enhance their overall cybersecurity posture.