v3.6.6 security update details: fixed sorting parameter injection and credential forgery issues.

📅 2026-10-15 👁️ 18

The Anqi CMS version 3.6.6 was released on October 8, 2026. This update focuses on security reinforcement and fixes two high-risk vulnerabilities: SQL injection risk in list sorting parameters, and the issue that login credentials can be forged when switching sites. Sites that have completed the upgrade need to perform two follow-up operations: rotate the site switching key, and change the passwords of all administrator accounts to eliminate potential security risks.

The principle of SQL injection vulnerability in sorting parameters

In the scenario of querying the data list, users can specify the sorting field and direction through URL parameters, for example?order=created_at&direction=desc. If the backend directly concatenates the sorting value passed by the user to the SQL statement, the attacker can construct malicious input such asorder=id; DROP TABLE users--, resulting in the database executing unexpected dangerous instructions.

The v3.6.6 version adds a whitelist verification mechanism for sorting parameters, allowing only predefined field names to participate in the sorting logic, and illegal inputs will be directly rejected. At the same time, the underlying query builder has been changed to use parameterized binding, blocking the possible path of SQL injection at the root. This fix does not affect existing functionality, but will change the response behavior to exceptional parameters: previously, it may return error details, but now it will uniformly return general prompts to avoid leaking database structure information.

The risk of login credential forgery when switching sites

In a multi-site deployment architecture, administrators can quickly switch between sites without having to log in repeatedly. This convenient feature relies on a single-use token mechanism: when a user initiates a switch request from the source site, the system generates a short-term valid token, and the target site validates the token to establish a session.

The vulnerability in previous versions lies in that if an attacker can intercept or guess the generation pattern of the token, they can forge a legitimate switch request, bypass identity verification, and directly enter the background. Version 3.6.6 has reconstructed the token generation algorithm, introducing stronger random entropy sources and time constraints, making brute-force attacks impossible within the actual time window. At the same time, the server has added tracking of the token usage status, and the same token becomes invalid immediately after consumption to prevent replay attacks.

Necessary operations after the upgrade

After completing the code upgrade, you must perform the following two steps to completely eliminate the impact of the old vulnerabilities:

The first step is to rotate the site switching key. A new key value is generated in the system settings key management area, the old key will continue to be valid for 120 seconds during the grace period to ensure that the ongoing switching operation is not interrupted. After the grace period ends, all tokens issued based on the old key will immediately expire.

Step two, change the passwords of all administrator accounts. Although the vulnerability itself does not directly leak password hashes, to prevent potential credential abuse, it is recommended to update all administrator passwords to a strong combination (including uppercase and lowercase letters, numbers, and special characters, with a length of no less than 12 characters). If two-factor authentication is enabled, this step can be appropriately relaxed, but it is still recommended to change passwords regularly.

Scope of Impact Assessment

These two vulnerabilities mainly affect deployments that have enabled the multi-site feature and exposed the management entrance to the outside. Sites in single-site mode or those without the site switching function are less affected by the second vulnerability, but it is still recommended to apply the patch for sorting parameters, as list queries are a general function of the backend.

For sites that have already passed the firewall rules to limit the management entry IP range, the external attack surface is relatively controllable, but internal threats (such as users with partial permissions trying to escalate privileges) still need to be defended through code-level fixes. It is recommended that all sites running versions before v3.6.6 upgrade as soon as possible, especially those carrying sensitive data or providing public services.

Common questions

How can you confirm that the current version has applied the fix?

After logging into the backend, check the "About System" page. The version number should display as 3.6.6 or higher. You can also check the header records of the CHANGELOG.md file to confirm that it contains the two update notes "Fixed list sorting parameter SQL injection" and "Fixed site switching login credentials can be forged". If you cannot access the backend, you can query the version constant value in the config/constant.go file through the command line.

Will the key rotation for site switching cause the existing session to expire?

I will not. The site switch key is only used to issue new switch tokens and does not affect established active sessions. Administrators can still operate the system normally after rotating the key, and the new key will only be used to sign the new key when the site switch is initiated actively. The 120-second grace period design is to ensure that there is enough time for ongoing operations to complete and will not be interrupted due to key switching.

What are the consequences if you forget to change the administrator's password?

The old password can still be used normally after the upgrade, but if an attacker has previously obtained the password hash through other means and the hash can be reversed or exploited, there is still a risk of being misused. The purpose of changing the password is to cut off this potential attack chain. If it is not possible to coordinate all administrators to change their passwords at this time, at least the site switching key rotation should be completed first, and then arrange the subsequent password update plan.

Related articles

v3.6.6 Upgrade checklist on the day: change the site signature key first or change the administrator's password first.

v3.6.6 (Released on 2026-10-08) fixed two high-risk issues of SQL injection in list sorting parameters and forged login credentials during site switching, the official upgrade recommendation is to rotate the site signature key and change the administrator password. The order of the day is: backup stop writing, upgrade program, rotate signature key, change administrator password, clear session and log in again, and finally verify list sorting and site switching.

2026-10-15

MCP tool layer reconstruction and email subscription, what to look for in the v3.6.5 update record.

AnQiCMS v3.6.5 released on October 7, 2026, the core changes are that the MCP tool layer has been rebuilt based on the intent directory and supports round-by-round batch approval, while also adding email subscription, message list, attachment base64 upload, template backup table expansion and file search wildcard capabilities. This article interprets the meaning of the changes item by item according to the update records, and provides a checklist of actions before and after the upgrade.

2026-10-13

A version update fixes sorting parameter injection and the possibility of login credentials being forged, why should the key be changed at the same time

AnQiCMS v3.6.6 (2026-10-08) fixes two high-risk issues: list sorting parameters can be injected into the query to form SQL injection, and the login credentials used for site switching may be forged. The official upgrade recommendation is to simultaneously rotate the site signature key and change the administrator password. This article explains why the upgrade only closes the entry and does not invalidate the credentials that have already been released, as well as why the steps of key rotation, password change, and backup should be completed in the same upgrade window.

2026-10-13

AnQiCMS - AnQiCMS v3.6.6 Update Log (Merged v3.6.5)

v3.6.5 and v3.6.6 merge update instructions: MCP tool layer rebuilt according to intent directory and supports round-by-round batch approval, adds features such as email subscription, message list, and base64 attachment upload; fixes two high-risk security issues that can be injected into list sorting parameters and forged login credentials between sites, and fixes multiple issues such as incorrect deletion reports and silent data damage in documents. Please rotate TokenSecret and change the administrator password after the upgrade.

2026-10-08

v3.6.5 adds detailed explanation of email subscription, message list, file search, and base64 upload features.

v3.6.5 was released on October 7, 2026, adding five new features: email subscription, message list, base64 attachment upload, template backup table expansion, and wildcard file search, solving pain points such as user retention, content interaction, resource management, and search efficiency, providing a complete backend operation tool for small and medium-sized enterprise websites.

2026-10-15

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.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

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