What to pay attention to after upgrading v3.6.6 after fixing two high-risk issues

📅 2026-10-22 👁️ 9

The AnQiCMS v3.6.6 version was released on October 8, 2026, and fixed two high-risk security issues: SQL injection in list sorting parameters and the possibility of forgeable login credentials when switching sites. It is recommended to rotate the site signature key and change the administrator password during the upgrade to completely eliminate the risk of abuse of old credentials. This update also strengthened the input validation of sorting parameters, blocking the attack path of constructing malicious SQL statements through URL parameters.

What is the SQL injection vulnerability in sorting parameters?

The sorting function on the list page allows users to specify the sorting field and direction through URL parameters, for example,?order=created_at&dir=descBefore v3.6.6, some sorting parameters were not properly filtered before being concatenated directly into SQL queries, allowing an attacker to construct special sorting values to inject additional SQL statements into the query.

The danger of this type of injection attack lies in the fact that, once executed successfully, the attacker may be able to read sensitive information from the database, or even modify or delete data. Although AnQiCMS has built-in JWT authentication and content sensitive word filtering protection mechanisms, the sorting parameters are located in the request URL, bypassing some routine checks.

v3.6.6 has implemented whitelisting for sorting parameters, allowing only predefined field names to appear in the ORDER BY clause. Any value not on the whitelist will be rejected, blocking the injection path at its source.

How is the login credential forgery risk generated during site switching?

Multi-site management is one of the core capabilities of AnQiCMS, supporting the management of multiple independent sites on the same backend. During the site switching process, the system needs to verify whether the current user's identity is still valid in the new site.

In versions prior to v3.6.6, there was a possibility of login credentials being forged during site switching. Attackers could bypass authentication logic by constructing specific credential data to access other sites非法ly. This vulnerability is particularly dangerous in multi-site deployments, as the downfall of one site could affect the entire cluster.

The fix introduced a stricter credential verification mechanism and recommends rotating the site signature key after upgrading. The site signature key is a critical parameter used for signing and verifying login tokens. After rotation, all old forged credentials will become invalid.

Why rotate the site signature key after upgrading?

The site signature key is similar to an encryption key, used to generate and verify JWT tokens. If an attacker obtains valid login credentials during a vulnerability exposure period, even if the vulnerability has been fixed, these credentials will still be available until the site signature key is rotated.

Rotating the site signature key operation will make all existing tokens invalid, forcing all users to re-login. Although this step may bring temporary inconvenience, it ensures that no old credentials remain. Accompanied by changing the administrator's password, it can completely cut off the attacker's possible continuous access path.

The one-time ticket mechanism has also been strengthened in this update. The ticket becomes invalid immediately after use, preventing replay attacks. Even if the attacker intercepts a legitimate login request, they cannot reuse the ticket for a second login.

What are the precautions for the upgrade steps?

To upgrade to v3.6.6, you need to follow the sequence of operations below to ensure that the security fixes take effect:

Step 1: Backup the database and configuration files. Before performing any upgrade operations, make a complete backup of the current system's database and config directory. AnQiCMS supports data backup functions, including the backup and recovery of static files, which can be operated directly in the background.

Second step: Download the v3.6.6 installation package. Obtain the latest version from the official channel, verify the integrity of the file, and then upload it to the server. If deploying with Docker, you can pull the latest anqicms/anqicms image.

Third step: Replace the program files and restart the service. Stop the currently running service, replace the old version with the new version of the file, and then restart. The default listening port is 8001, and Baota panel users can complete the deployment with one click.

Fourth step: Rotate the site signature key. Find the site signature key field in the configuration file, generate a new random string to replace the old value. Save and restart the service to make the change take effect.

Step 5: Modify the administrator password. After logging in with the new site signature key, immediately modify the passwords of all administrator accounts. This step ensures that even if the old password is leaked, it can no longer be used to log in.

Step 6: Verify that the features are working normally. Check if the core functions such as list sorting, site switching, and user login are working normally. Observe whether there are any abnormal requests in the logs and confirm that the injection attack path has been blocked.

Common questions

Question: What risks are there if the site signature key is not rotated?

Answer: The old credentials are still valid, and attackers may continue to use the legitimate tokens obtained previously to access the system. Rotation is the necessary step to eliminate residual risks.

Question: Does v3.6.6 affect existing plugins or templates?

Answer: This update mainly involves security fixes and does not change the public API and template tag interface. Under normal circumstances, there is no need to adjust the existing extensions.

Question: How can you confirm that your version has this vulnerability?

Answer: Check the version number in the config/constant.go file. All versions below 3.6.6 are affected. It is recommended to upgrade to the latest version as soon as possible.

Related articles

Update instructions for AnQiCMS v3.6.7

Released on October 20, 2026 - Save settings. The biggest change in this version is the save setting. The backend settings page is divided into multiple tabs. When you change something in the 'Basic Settings' and click save, the program submits the entire page - but those tabs you haven't opened are empty, so the settings in 'SEO', 'Email', and 'Watermark' that you've never touched are cleared to default values.The entire process does not report an error, and the save prompts success as usual. Now it is changed to only save the items you have modified, and the ones not touched are kept as they are. The front-end also conveniently fixed another problem: when switching between tabs, the content filled halfway will not be lost.Involves the four pages of site settings, content settings, security settings, and contact information, as well as

2026-10-20

AnQiCMS v3.6.6 fixed two high-risk security issues and upgrade suggestions

Explain the two high-risk issues of SQL injection in the list sorting parameter and the site switching login credentials that can be forged in the CHANGELOG of version 3.6.6, and provide suggestions for token key rotation and administrator password modification operations after the upgrade.

2026-10-16

AnQiCMS v3.6.3 launches three major AI capabilities: Visual Editor, MCP Server, and Automatic Tagging

Introducing AnQiCMS v3.6.3 version (released on 2026-09-04) with three new AI capabilities: Visual template editor, MCP Server support, reCAPTCHA captcha and AI automatic tagging, reducing the development threshold and improving content creation efficiency.

2026-10-16

AnQiCMS v3.6.5 MCP intent directory reconstruction: new capability of round-level batch approval.

Detailed explanation of the AnQiCMS v3.6.5 version (released on 2026-10-07), which rebuilds the MCP tool layer based on the intent directory and supports round-by-round batch approval, as well as the newly added features such as email subscription, message list, and base64 upload for attachments.

2026-10-16

Important feature update explanation of AnQiCMS v3.6.5 version

AnQiCMS v3.6.5 was released on October 7, 2026, the MCP tool layer was rebuilt based on the intent directory and supports round-by-round batch approval. New features include email subscription, message list management, base64 attachment upload, template backup expansion, and file search wildcard functions. This article details the usage and configuration methods of each new feature.

2026-10-16

AnQiCMS v3.6.6 security update analysis: detailed analysis of fixing two high-risk issues

AnQiCMS v3.6.6 was released on October 8, 2026, and fixed two high-risk issues, including SQL injection in list sorting parameters and site switching login credentials that can be forged. When upgrading, you need to rotate the site signature key and change the administrator password, and enhance security through a single ticket mechanism.

2026-10-22

v3.6.6 fixes the list sorting parameter injection issue, how to schedule the upgrade window?

AnQiCMS resolves the SQL injection issue in the list sorting parameter and the two high-risk issues where the login credentials of site switching can be forged in v3.6.6 (2026-10-08), and suggests that the site signature key and the administrator's password should be rotated during the upgrade, and the administrator's password should be changed. The upgrade window should be arranged during the off-peak hours: first, back up data and static files, stop writing after upgrading, and then verify the sorting parameters, site switching, and the exposed back-end surface one by one, and write the changes of the one-time ticket mechanism into the regression checklist.

2026-10-25

AnQiCMS v3.6.6 security upgrade: Fixed sorting parameter injection and login credential forgery vulnerabilities

AnQiCMS v3.6.6 was released on October 8, 2026, addressing two high-risk issues: SQL injection in list sorting parameters, and the possibility of login credentials being forged when switching sites. The upgrade is not just a version change; the official recommendation is to also rotate the full-site request signature key and change the administrator password, as the second issue means that there is a possibility of existing credentials being misused, and the handling needs to cover the already exposed aspects.

2026-10-26