AnQiCMS v3.6.6 fixed two high-risk security issues and upgrade suggestions
AnQi Content Management System (AnQiCMS) v3.6.6 was released on October 8, 2026, fixing two high-risk security issues related to SQL injection in list sorting parameters and the vulnerability of login credentials on site switching that can be forged. It is recommended to rotate the token key and change the administrator password after the upgrade to ensure that old credentials are invalidated. These two fixes are aimed at mitigating the risk of attackers bypassing authentication or executing malicious SQL statements by constructing special requests.
What are the two high-risk issues fixed in v3.6.6?
According to the CHANGELOG record, version v3.6.6 focuses on fixing the following two high-risk issues:
SQL injection in list sorting parametersAn attacker can inject malicious SQL fragments into the sorting parameters of the list interface, bypassing the parameter validation logic and executing arbitrary database queries. This type of vulnerability can lead to data leakage, data tampering, or even server permission acquisition.
The login credentials for site switching can be forgedIn the multi-site management scenario, an attacker can forge login credentials during site switching to access the management interface of other sites as an unauthorized user. This vulnerability breaks the isolation boundary between multi-sites, making the compromise of a single site potentially affect the entire system.
Both of these issues have been rated as high-risk because they allow attackers to perform sensitive operations without valid credentials. For sites exposed to the public internet, it is recommended to upgrade to version 3.6.6 or higher as soon as possible.
Attack surface of SQL injection in list sorting parameters
List sorting is a common feature in CMS backend, used to sort content by fields such as time, title, and page views. The usual implementation is to directly append the sorting parameters submitted by the user to the SQL ORDER BY clause.
If there is insufficient parameter validation, an attacker can submit a similarid; DROP TABLE users--malicious string, which, when directly appended to the SQL statement by the system, will execute additional malicious commands. Even if prepared statements are used, the ORDER BY clause, due to the inability to use bound variables, still requires special whitelist validation.
The fix for v3.6.6 involves implementing strict whitelist validation for sorting parameters, allowing only predefined field names and sorting directions (ASC/DESC), and rejecting any input containing SQL keywords or special characters. At the same time, a one-time ticket mechanism is introduced to ensure the legitimacy of the source of sorting requests.
The risk of the login credentials for site switching being forged
AnQiCMS supports multi-site management, allowing users to switch between sites without having to log in again. This feature relies on the login token passed during site switching.
Before the fix, there was a flaw in the token generation or verification logic, attackers could:
- Intercept legitimate site switching requests and analyze the token format
- Construct a forged token pointing to the target site
- Use the forged token to switch to an unauthorized site management interface
Once successful, attackers can perform administrator-level operations on the target site, including publishing content, modifying configurations, exporting data, etc. For service providers hosting multiple customer sites, this cross-site privilege escalation could lead to serious data breaches.
v3.6.6's fix strengthens the token signature verification mechanism, ensuring that tokens can only be generated by the server and cannot be tampered with. It also introduces a token key rotation mechanism, regularly changing the signature key can quickly make leaked tokens invalid.
Token key rotation operation after the upgrade
After upgrading to v3.6.6, the official recommends rotating the token key to clear any old keys that may be in the possession of attackers. The token key is a system-level key used to sign login credentials and is stored in the configuration file.
Rotation steps:
- Back up the token key value in the current configuration file
- Generate a new random string as the token key
- Update the configuration file and restart the service
- Notify all administrators to log in again
After the rotation, all tokens signed with the old token key will expire immediately, and users need to re-authenticate. It is recommended to perform the rotation operation during off-peak hours to avoid affecting normal business.
The necessity of changing the administrator password
In addition to rotating the token key, the official also recommends changing the administrator password. This is because if an attacker has previously obtained the administrator credentials in other ways, simply rotating the token key is not enough to prevent them from logging in again.
Password change suggestion:
- Use a complex password of at least 12 characters, including uppercase and lowercase letters, numbers, and special characters
- Avoid using dictionary words, birthdays, phone numbers, and other easily guessable content.
- Assign independent accounts to different administrators and prohibit password sharing.
- Enable two-factor authentication (if supported by the system).
Password changes should be executed after token key rotation to ensure that the new password uses a new signature key for protection.
Common questions
What are the consequences of not upgrading?
If you continue to use outdated versions with vulnerabilities, the site may face risks of data leakage due to SQL injection attacks and management security risks of unauthorized access across multiple sites. For sites exposed to the public internet, the probability of being discovered by automated scanning tools is relatively high, and it is recommended to upgrade as soon as possible.
Do you need to reconfigure the site after the upgrade?
No. v3.6.6 is a patch version, which does not involve changes to the data structure or configuration format. The upgrade process only requires replacing the program files, and the existing site configuration, content data, and template files remain unchanged.
How to confirm whether the current version has been fixed?
Log in to the back-end management system, check the current version number on the system information page. If it shows 3.6.6 or higher, it already includes the fix. You can also find the release records for v3.6.6 in the CHANGELOG.md file to confirm.