The backend user deletion has been changed to POST submission and form credential verification, preventing which type of attack?

📅 October 12, 2026 👁️ 14

This change blocks cross-site request forgery. Content systems change the background user deletion and status switching to POST submission and form security credential verification. The official purpose is to prevent cross-site request forgery from causing users to be mistakenly deleted or their status changed. It exploits the weakness: when a browser sends a request, it will automatically carry the login status, and attackers can deceive logged-in administrators to click and impersonate them to perform operations.

What was the original state that was changed

In the past, such state changes may have been associated with simple link requests - clicking on an address would execute a deletion. The problem with this approach is that the request itself does not carry proof that 'Are you really sure you want to delete', and it will be recognized as valid as long as it carries a valid login state

Why is the deletion operation on GET dangerous

The danger lies in it being「triggered inadvertently」. A single image or a jump on the page can make the browser send a link request for you, and the login state is automatically attached. Cross-site request forgery does not require obtaining a password; it takes advantage of the fact that you are already logged in. Removing deletion from this easily triggered form is a step in dealing with it.

What does the form credential validation check?

Moving the action to POST is just** a layer, what really stops forgery is the credential verification that comes with the form.

Level The method. What is blocked
Request method Change the status change to POST Reduce the surface area that can be triggered by association.
Form credentials Validate the one-time credential issued with the form Stop cross-site forged submissions.
Permission boundary Recognizes only authorized roles Operation beyond authority cannot be executed

Having only POST cannot stop carefully constructed forged requests; credential verification is the key barrier.

Why is the credential more critical than the request method

Moving the action to POST only changes 'easy to trigger' to 'requires construction', raising the attack threshold but not eliminating it. What truly distinguishes legitimate operations from forgeries is whether the server verifies a credential that is only issued with normal forms and cannot be obtained from external pages. Without this step, carefully constructed cross-site requests can still slip in with the login state. So the sequence is to first remove the easy-to-trigger form, and then truly seal the gap with credentials.

Intranasal three-layer protection

Within the site, different risks are distributed to different layers. reCAPTCHA/verification codes are responsible for machine batch submissions, sensitive word filtering, keyword replacement, and content review are responsible for content risks, authentication and escaping protection against injection and cross-site scripting. High-risk operations such as deleting users and changing statuses also need to be able to trace who did it and when, and accountability and verification need to be coordinated to close the loop. Cross-site request forgery is classified into the credentials layer, don't expect content filtering to help you block it, and don't treat the verification code as a **gate.

Common questions

Question: Is it safe to change it to POST?Not enough. POST is not easily triggered by links, it still needs form credential verification to detect forged submissions, both layers need to be done together.

Question: Can captcha prevent cross-site request forgery?Cannot do it directly. CAPTCHA is aimed at machine batch submissions, cross-site request forgery relies on valid login status, each layer manages a different type of risk.

Question: Why keep records of high-risk operations?Verification prevents forged execution, records prevent post-event responsibility, both complement each other, and the absence of any layer will leave an unclear gap.

Related articles

Before the release of the major version, how many weeks of security support are left for the old branch, and how should the upgrade window be arranged?

At the same time, only a few branches usually receive security fixes, and there will be no official patches for new vulnerabilities from the day the support is discontinued. Taking the release plan of a certain content system as an example, the security release window covers only a few specific branches, and the old branches will end support in the week of the new major version release. The upgrade window should be arranged in reverse order: first determine the day of discontinuing support, then leave time for verification and rollback, data backup must be done within the window, and login credentials must be processed as described in the upgrade instructions for the home version.

2026-10-12

After the site is written to an abnormal PHP file, why does the official investigation sequence prioritize checking the runtime directory?

The security upgrade announcement for the PHP class content system provides the following handling order: first upgrade to the fixed version, delete the running directory, check the pseudo-static rewrite rules, then investigate the abnormal files, and explain that the problem is related to vulnerabilities in previous versions. The running directory should be checked first because it is the most common landing point and also resembles renewable content, deleting it will not damage the data; after cleaning up, you still need to confirm that the backup time is earlier than the intrusion time.

2026-10-12

A static generator can build a website in a few seconds, do we still need a content management system with the backend?

The advantages of static generators lie in the construction and hosting stages, where typical sites can be built in seconds; but fast construction does not equal fast maintenance. When content structure, columns, and fields need to be adjusted repeatedly, or when multiple people need to continuously update and batch import historical content, a content management system with a backend is more suitable; here, we compare two routes from four aspects: content model, batch import, template editing, and application scenarios.

2026-10-12

Some pages want AI to crawl for free, while others want to charge for it; how to separate by address path?

It is a feasible practice to divide the area within the same site for different crawling strategies, some service providers have supported setting exceptions according to URI patterns, providing free crawling for specific pages and charging separately for the rest. Within the site, the idea is to organize the pseudo-static rules and robots by path prefix, clearly write the matching scope and effective order, and avoid the exception rules being covered by the rules of the parent directory.

2026-10-12

Can WordPress minor versions be directly updated automatically with 11 security fixes in one go?

This is a minor security update for WordPress 7.1.1 that includes 11 security fixes. The official recommendation is to update immediately, and sites that support automatic background updates will start updating automatically. This article explains which steps of the automatic update can be covered, and which situations require manual scheduling of the upgrade window, as well as the backup and credential rotation confirmation to be done before and after the update.

2026-10-13

Storage XSS appears on the comment management page, how did the script get into the background in the pending review comments.

WordPress 7.1.3 fixed a stored XSS vulnerability that could be triggered by pending review comments in the comment management page. This article explains why unreviewed content can still be rendered and executed in the background, the danger lies in treating comments as trusted data output, and the closing should be based on input verification and output escaping, and corresponding to the site's sensitive word filtering, content review and verification code protection.

2026-10-13

Why should the validation of reading and writing data be separated when a second injection occurs in the exported file?

WordPress 7.1.3 fixed a second SQL injection in the WXR export process. The characteristic of secondary injection is that it appears harmless when the data is stored, but becomes harmful when used again in the query. This article explains why import and verification should be considered separately, what to check during storage verification and output verification, and how to implement the two checkpoints of batch import within the site and content collection.

2026-10-13

Comments on private articles are read without authorization, and the permissions should be blocked at the list level or the detail level.

WordPress 7.1.3 fixed the issue where unauthorized users could read private and unpublished article comments. Unauthorized access often occurs in附属资源 such as comments and attachments, because the visibility of the main object does not automatically pass to the child set. This article explains that permissions must be checked at both the list and detail levels, and how the scope of visibility is implemented within the site based on document status and user groups.

2026-10-13