Remediation Instructions for Security Vulnerabilities in Apusic Application Server V9.0
Overview
Recently, security organizations such as the China National Vulnerability Database (CNVD) reported that Apusic Application Server has security issues including arbitrary file upload, directory traversal, privilege bypass, and JNDI deserialization vulnerabilities. This document analyzes these issues and explains the solutions.
Root Cause Analysis
The management console of Apusic Application Server has issues with ineffective access-path permission control and lax parameter validation. An attacker can craft requests that bypass permission control to maliciously access and operate the management console, causing security risks. The issue list and fix status are as follows:
1) JNDI deserialization vulnerability: affects V9.0 SP7 and earlier versions; fixed in August 2023
2) Arbitrary file download: affects V9.0 SP7 and earlier versions; fixed in April 2023
3) Directory traversal: affects V9.0 SP7 and earlier versions; fixed in August 2022
4) File deletion: affects V9.0 SP7 and earlier versions; fixed in May 2022
5) Abnormal external link: affects V9.0 SP6 and earlier versions; fixed in SP7 and later versions
6) Privilege bypass: affects V9.0 SP6 and earlier versions; fixed in SP7 and later versions
All of the above security issues have been resolved in the latest V9.0 SP8 version, which can be downloaded from http://file.apusic.com/sharing/NWWuyE3Q6.
Resolution
1. Temporary Workaround
Stop the application server, then perform the following operations:
1) Disable the application server management console and remove the default homepage.
Standard management console installation file: <install_dir>\lib\webtool.war
Security management console file: <install_dir>\lib\admin.war
Homepage: <install_dir>\domains\mydomain\applications\default\public_html\index.jsp
Steps: remove the files above (webtool.war or admin.war, and index.jsp)
2) Apply the patch that fixes the arbitrary file download issue
In the "Arbitrary File Download Patch" directory at http://file.apusic.com/sharing/vVHoyV0jR, download the patch that fixes this vulnerability. Different versions require different patches:
V9.0 SP1/SP2: download the patch named fix-over-authority-sp1-2.jar;
V9.0 SP3: download the patch named fix-over-authority-sp3.jar;
V9.0 SP4/SP5: download the patch named fix-over-authority-sp4-5.jar;
V9.0 SP6/SP7: download the patch named fix-over-authority-sp6-7.jar;
Copy the downloaded patch file to the <install_dir>\sp directory.
3) Restart the application server and access the system to confirm it works properly.
Note: If the application system is integrated with the application server, such as Kingdee China's EAS or S-HR systems, confirm with the application development department whether the management console is used. If it is used, confirm the console directory and file names before proceeding.
2. Permanent Solution
1) Patch upgrade
Applies to V9.0 series versions, such as SP5/SP6/SP7. Download the corresponding patch files admin.war, webtool.war, razor.jar, and index.jsp from http://file.apusic.com/sharing/vVHoyV0jR;
In the "Arbitrary File Download Patch" directory, download the patch that fixes the arbitrary file download issue:
V9.0 SP1/SP2: download the patch named fix-over-authority-sp1-2.jar;
V9.0 SP3: download the patch named fix-over-authority-sp3.jar;
V9.0 SP4/SP5: download the patch named fix-over-authority-sp4-5.jar;
V9.0 SP6/SP7: download the patch named fix-over-authority-sp6-7.jar;
Follow the upgrade steps below:
1. Stop the application server and back up the corresponding files (admin.war or webtool.war, razor.jar, index.jsp);
2. Overwrite the corresponding file under <install_dir>\lib\ with razor.jar;
3. If webtool.war exists under <install_dir>\lib\, overwrite it with the new webtool.war file; if admin.war exists under <install_dir>\lib\, overwrite it with the new admin.war file (webtool.war and admin.war are not used at the same time);
4. In the <install_dir>\domains\mydomain\vm.options file, set parameters to control the remote clients allowed to access the management console (by default, only the local server can access it). The example below allows 172.168.1.2 to access; modify it according to your actual situation, separating multiple addresses with commas:
com.apusic.admin.allowHosts=172.168.1.2
com.apusic.webtool.allowHosts=172.168.1.2
5. Overwrite the index.jsp file under <install_dir>\domains\mydomain\applications\default\public_html\
6. Copy the downloaded arbitrary file download patch to the <install_dir>\sp directory
7. Restart the application server
8. Access the system to confirm it works properly.
2) Full product package replacement
Download the complete Application Server V9.0 SP8 product package from http://file.apusic.com/sharing/NWWuyE3Q6, which includes all security fixes.
Remote clients of the management console (by default, only the local server can access it). The example below allows 172.168.1.2 to access; modify it according to your actual situation, separating multiple addresses with commas:
com.apusic.admin.allowHosts=172.168.1.2
com.apusic.webtool.allowHosts=172.168.1.2
