What problems can arise when parameters are spliced into the action name, and how can such name splicing be self-checked?

📅 October 10, 2026 👁️ 6

What problems may arise when request parameters are concatenated into internal action names or hooks, and how should the site self-check? It will trigger an action that was not intended to be exposed: the name is made up, and any input that can form a valid name can be hung on other processing logic.The WordPress system has fixed this type in the security maintenance version in October 2026: The parameters passed to the hook of combining status and type can be forged, leading to conflicts in action names, reported by Alex Concha from the WordPress security team.The announcement only wrote the cause and result, without specifying the specific exploitation method, self-check by cause is sufficient.

Why might splicing names lead to unauthorized access

The common form of internal action name is「status plus type」or「object plus action」, connected by a separator. Generate the name according to this rule when registering listeners, and拼出 the same rule when calling——it looks symmetrical and convenient.

The value on the calling side comes from the request. If the parameters can directly affect the name being拼出来的,the caller is choosing 'which registered process to go'. The listening registry is often much larger than the external interface: internal cleaning, state rollback, batch recalculation and other actions are all included in it, which were originally assumed to be called only by the system internally, without secondary authentication.

Overriding is not obtained by bypassing the check, but by the fact that 'this name can be called from the outside'. This is the most typical consequence of concatenation writing.

Is the conflict of action names the same as parameter injection?

It is not the same thing, but the cause is the same. Parameter injection is where the value is treated as code execution, and action name conflict is where the value is treated as a routing identifier. The former often results in the data layer, while the latter often results in the behavior layer.

The common point between the two is that concatenation occurs before validation or there is no validation at all. Therefore, the approach is also the same - it is not to escape the concatenation, but to enumerate the permissible values.

The same type of repair in the self-owned system can be used as a reference: One of the high-risk issues fixed in AnQiCMS v3.6.6 is that the list sorting parameters are拼进 query statements, another is that the login credentials can be forged during site switching, based on the issuance method of one-time tickets; The upgrade recommendations also require the rotation of the server signature key and the modification of the administrator's password. Sorting parameters and concatenation are at two different levels (query statements and action names), but the risk model is consistent: the parameter that should be an enumeration value is treated as a free string.

How to investigate the three types of concatenation points within the site

The first category is hooks and action names. Search all the positions where the variable **name template is located. If any part comes from the request, it should be listed for correction.

The second category is routing and page identifiers. Writing styles like 'Generate template name by parameters' and 'Choose processing branch by parameters' have similar consequences and conflicts with action names, the difference being the processing range that can be reached. The troubleshooting method is the same: the template name and branch identifier must be decided by the whitelist.

The third category is query construction. Sorting fields, table aliases, and state filtering parameters, if directly concatenated, become data layer issues. This category should be handled parameterized, not by character filtering——filtering is always less than whitelist.

After checking the three categories, put the results in a table: parameter name, allowed values, validation position, and whether there is a whitelist. The table is easier to follow than code comments when making changes next time.

The document status and type parameters should be validated by whitelist.

Status and type are the most common two concatenation sections and are most easily treated as free strings. This is because these two look 'how to pass it all' on the interface.

For example, the status of documents within the station itself is a finite set: formal documents, drafts, pending release, and recycling station. AnQiCMS handles it in this way - the draft link with a preview mark can be previewed, and deleting a formal document is moved to the recycling station instead of being physically deleted. Since the values are fixed, the validation should be done by enumeration: values not in the set should be directly rejected instead of being拼进名字后看会不会命中。

The same goes for the type field. The type identifier under the custom content model is defined by the backend, and there is no reason for the frontend request to bring in any type.

Note two points when writing a validation function: the whitelist should be placed in the service layer instead of just in the controller; rejection should produce a clear error instead of 'nothing happens' — 'nothing happens' can mislead troubleshooters into thinking the logic is malfunctioning.

Common questions

Is it okay to just change the escape character?No. Escaping cannot prevent the occurrence of other valid names concatenated legally, conflicts will still happen. What needs to be prevented is the range of optional values.

Should all internal actions be included?It is recommended to collect according to accessibility: only whitelist actions at externally accessible entries should be retained, and internal actions should be called by the system. Once the range is narrowed, the consequence of misspelling names will degenerate from over-authorization to not finding the action.

How to confirm whether the historical version has been called in this way?The most convenient way to check the distribution of parameter values in the log is to list the unique values of the state and type parameters. If there are values outside the set, it means that someone has called it in this way or has tried it before.

What should be done after the repair is launched?Implement according to the announcement. Both the rotation of the server signature key and the modification of the administrator password have been written; both must be completed; only replacing the code without rotation, the risk of credentials still remains.

Related articles

How could a function that converts relative addresses to absolute addresses become an entry point for denial of service?

The public function that converts relative addresses to absolute addresses can become a source of denial of service problems because the cost of parsing and concatenation is determined by the external input. The approach to closing it is to first limit the source and length of the address, and then enter parsing, and process the remote capture and collection chain in the same order.

2026-10-10

The same CMS released seven security repairs in one go, how should the administrator follow up in order?

When releasing multiple security fixes at once, the follow-up order should be to confirm the ability to roll back, then upgrade, and finally check credentials and files. When reading the announcement, first look at the first three lines: the distribution of the number and type of fixes, whether an immediate update is required, and which branches the fixes have been rolled back to. Taking the security maintenance version of the peer system on October 6, 2026, as an example, it contains seven security fixes and four defect fixes, rolled back to earlier branches, and only the newer versions are being actively supported.

2026-10-10

At which layer should the site clean the cross-site scripting brought by the third-party embedded card

Cross-site scripting brought by third-party embedded cards, the answer is not either/or: the content embedded is generated by an external service, bypassing the normal field filtering, so the front-end escaping is not enough; and only reviewing before publishing cannot prevent the external service from changing the return after the fact. The reasonable point is three layers - limit the source and marking range when collecting and storing, review the content and sensitive words before publishing, and allow embedded tags to pass through the whitelist when outputting on the front-end.

2026-10-10

AI can capture the list page but not the detail page, which layer should be checked first?

The list page can be read, but the detail page cannot be read. The most effective way is to search layer by layer according to 'Entry List—Link Accessible—Content Renderable': First, confirm whether the detail page is listed in the site description file and sitemap provided for the model, then confirm whether the pseudo-static address of the detail page can be directly accessed, and finally check whether the new content has been submitted to the search channel. Each layer corresponds to different repair actions, and directly modifying the rendering by skipping the first two layers is usually ineffective.

2026-10-10

A module specifically designed for IP access restriction has been bypassed, can the whitelist still be considered as a line of defense?

When the module for access restriction based on IP itself is bypassed, the whitelist is still a line of defense, but it cannot be used as the only line of defense. It should be used in conjunction with account group permissions, interface exposure range control, and multi-site rule setting, so that the consequences will not be magnified when a single point fails.

2026-10-10

There is no supported upgrade version for the vulnerability in the announcement, which layer of the site will break first?

The security announcement states that the project has stopped maintenance and there is no upgradeable supported version. The disposal sequence is completely different when a patch is available: first disable or uninstall the project, then narrow down the accessible entry points, then evaluate the impact on data, throughout the process retain reversible backups, and transfer similar requirements to implementations that are still under maintenance.

2026-10-10

Can the background field execute content as a template, and where does the server-side template injection occur?

The content written in the background field will only be executed when it is handed over to the template engine for rendering. Server-side template injection occurs at this rendering layer rather than the storage layer. The solution is to let the field value only participate in rendering as data, cooperate with content review and sensitive word filtering before publication, and change the template at the template layer.

2026-10-10

When the same content has multiple accessible addresses, where should the standard address be marked?

When the same content has multiple accessible addresses, it is equivalent whether the standard address is marked in the page or the response header; the protocol recognizes both positions; what really needs to be distinguished is whether it can be merged - use a redirect to close if it can be clearly unified, and use a standard address declaration if multiple entry points must be retained.

2026-10-10