Can hidden storage XSS be found in pending reviews, and how to converge injection points on the background page?

📅 October 9, 2026 👁️ 5

Can. Pending comments are not displayed externally, but they are read and rendered on the background list page - the moment the administrator opens the review queue, this content has already entered the page. The key to stored XSS is never about 'whether the content is public', but whether the content is interpreted as code somewhere'. One of the items fixed in WordPress 7.1.3 security version is the stored XSS in the comment management backend page, which can be triggered explicitly by pending comments.

Why can content that has not been published trigger?

A common misconception is that the front-end is the only rendering scenario. In fact, there are at least three rendering surfaces: the front-end article page and comment section, the back-end comment list and article editing page, and notification or summary pages. The back-end list page often displays the submitter's nickname, email, and comment content to varying degrees. As long as one place concatenates the stored original text into HTML, malicious fragments that have not been reviewed can be executed there.

The second misconception is that 'not displaying the full content' is safe. Even if the list page only truncates the first few characters, the script fragments before the truncation point can still be interpreted and executed by the browser.

Rendering location Who is watching Trigger condition Control means
Front-end comment area All visitors Only show content that has passed the review Output escaping, review release
Background comment list Administrators and editors Pending review content will also be rendered Review the escaping and field truncation method
Notification and Summary Administrator Title or Nickname Concatenated into Template Unified Escape, Not Parsed at the Template Level

Three Common Positions of Injection Points

The first category is the submission field that directly enters HTML: nickname, website, comment content, these three items usually allow longer text and are less checked. The second category is the structured field used as attributes or style values: image address, color value, URL parameters, the dot often appears in special character processing and protocol prefix judgment. The third category is the export and secondary processing path: another set of splicing logic is used when writing content to reports, exporting files, or statistical pages, and most of the problems in front-end security and back-end issues belong to this category.

AnQiCMS in the README factual aperture has attributed the defense of XSS and SQL injection to built-in mechanisms: JWT authentication is responsible for sessions, content sensitive word filtering is responsible for入库side governance, anti-crawling interference code is responsible for content protection. These three are not equal to output escaping, escaping must be completed in the rendering layer.

Storage filtering and rendering escaping division

Both have different responsibilities and cannot be substituted for each other. AnQiCMS's content security settings provide sensitive word filtering and keyword replacement, content review, which belongs to the side governance of entry, dealing with whether the content should be retained or replaced. Injection prevention relies on context-based escaping during the rendering stage: entity escaping at the position of HTML text, quotation wrapping at the attribute position, and whitelist verification at the link protocol position.

There are two typical failures when only viewing the入库 filtering: the filtering rules hit the keywords, bypassing uppercase, encoding, and blank variants; the content after replacement still contains executable structure, just in a different form. Conversely, only output escaping cannot handle compliance and quality requirements, both levels need to exist simultaneously.

The hierarchical permissions on the review chain.

The content to be reviewed itself is sensitive data. In the same WordPress announcement, there is another fix: there is an unauthorized visibility issue with comments on private and unpublished posts. This indicates that the risk is not only script execution, but also unauthorized reading.

Suggested order of convergence: First confirm which roles can read comments on unpublished content, narrow the scope to the minimum necessary; then confirm whether the review action requires independent permissions, do not let 'see' be equivalent to 'approve'; then tighten the session and token side, AnQiCMS built-in JWT authentication, the validity period and rotation should be included in the background account management; finally, use the reCAPTCHA captcha on the form side to reduce the amount of machine submissions - the number of malicious samples in the review queue decreases, and the probability of human mistakes decreases accordingly.

Common questions

Is it safe to turn off the comment function?Eliminated this type of entry, but comments, registration, and submission forms belong to the same form, any path that allows external text to be stored and then displayed must be checked according to the same standard.

Should we clean up historical data after patching?Yes. Malicious fragments of storage-type issues should remain in the library, the escaping repair only changes the rendering result, historical data will still appear with suspicious structures in exports and statistics.

Can the captcha replace the review?No. The captcha blocks the amount of automated submission in this section, content risk depends on filtering and review clearance.

How to verify if your site's backend is affected?Submit a comment with a tag text that does not contain a script, do not go into the background, just view the background list page display results of angle brackets and quotes, and be able to judge whether the escaping occurs in the rendering layer.

Related articles

Is the old version program still receiving security patches, and how to judge the boundary between the rollback support and the actual maintenance period?

How to determine whether the old version can obtain security fixes, and it is necessary to distinguish between three levels of support: active support, only security maintenance, and discontinued maintenance. The rollback in the announcement usually only covers security fixes, and functional and performance defects are not rolled back. It is a common mistake to consider the rollback as the maintenance period. This article explains how to read the announcement, how to judge the boundaries, and how to arrange the upgrade rhythm of enterprise stations.

2026-10-09

Original content is being collected in bulk, what three levels of protection can be done within the station?

When content is collected in bulk, it is necessary to distinguish between traffic loss and aperture loss, and the two layers should be separated for protection. The first layer uses anti-crawling interference codes to prevent搬运 from obtaining clean text; The second layer uses sensitive word filtering and keyword replacement, content review to ensure that the external expression is not altered; The third layer collects the content of various channels, so that the standard version is always on the station. This article gives the applicable boundaries and common mistakes of each layer.

2026-10-09

Is llms.txt a proposal or a standard, and to what extent do various engines support it?

llms.txt is currently a draft proposal for public consultation, not a finalized standard; at the same time, both the publishers and the tool side are already adopting it, and the browser audit tool will check if it exists. This article explains what the proposal identity means, what this document solves is navigation rather than weight, and who should generate it within the site, and how to keep it consistent with the sitemap and crawling rules.

2026-10-09

How to measure GEO effect: three indicators of citation rate, visibility, and AI traffic.

The effect of optimizing the generative engine should be measured by three indicators: the citation rate looks at whether the source is included in the answer, the visibility looks at the proportion mentioned in the fixed question set, and the AI traffic looks at the behavior quality after actually entering the site. Only looking at the entry traffic will underestimate the effect, because a significant proportion of questions do not click on any page when answered. This article provides methods for collecting the three indicators, how to build the sampling question set, and a weekly record table.

2026-10-09

The amount of AI crawler scraping is much greater than the recommended traffic, what does this comparison mean for content stations?

The ratio of the amount of crawling to the recommended traffic measures the gap between consumption and return, as the denominators are different, more crawling does not necessarily mean being able to bring back visitors. Third-party monitoring shows that the crawling and recommendation ratios of different AI platforms vary greatly, with the ratio of some platforms reaching thousands to one. The response of content sites is not simply to open up or block, but to manage crawling authorization and reference visibility separately.

2026-10-09

Before going live, run five checks on the trial site to see what shortcomings a CMS has

The trial demo site should not be used to browse the interface, but to run a task list. The five checks are: Can the content structure be changed, can daily actions be batched, can backup and recovery really roll back, how wide is the coverage of the interface capabilities, and where are the actual entry points of AI and automation capabilities in the background. After completing these five checks, the shortcomings that cannot be seen in the selection stage will be exposed, and this article gives the specific operation actions and judgment criteria for each item.

2026-10-09

In the web server, Nginx accounts for about 30%, how to choose this layer when building a website

According to the statistics of W3Techs in October 2026, Nginx's usage rate is about 30%, this layer has long been a general component, and the focus of selection should not still be on 'which software to choose'. What really makes a difference is the configuration side: the delivery method of static resources, where to place the redirect and pseudo-static rules, how to set proxy timeout and buffering, and how to pass the source address. This article explains why the gap between different configurations of the same software is much greater than switching software, as well as the four key things to consider when building a website at this layer.

2026-10-09

The affected version range in the Joomla security announcement starts from 1.5.0, what does that mean

The Joomla Security Center recently announced three bulletins, listing the affected versions in ranges such as 1.5.0 to 5.4.8, 6.0.0 to 6.1.3, with the unified fix date of September 25, 2026. The ranges starting from very early versions indicate that the vulnerability is located in the public code that has not changed for many years. This article analyzes how to read the affected range, fix date, and rollback boundary fields in the bulletins, and provides the verification order for our own site: version records, backup points, and upgrade windows, and also explains the two types of issues fixed by AnQiCMS itself in version v3.6.6.

2026-10-09