The script in the pending comments is executed on the background page, why can't it be seen on the front page?

📅 2026-10-11 👁️ 12

Why is the script executed in the background page of the pending review comments not visible on the front page? The reason is not mysterious: the front template only renders the content that has passed the review, and the part that has not passed the review does not appear in the visitor's address, so this injection path is left with only one trigger scenario - the moment the administrator opens the comment management page. Once the text in the queue is treated as 'data already stored in the database' rather than 'still controllable external input', the script is pieced together at this background layer.

Why does the problem appear in the background specifically

The rendering logic of the background list page is different from the front-end. The front-end needs to go through status judgment, and unreviewed content cannot enter the template at all; the back-end must display the original text to allow administrators to review, otherwise, they cannot see the full picture of the content to be processed. If the 'display original text' step is not escaped, the script carried in the comment text will be executed as part of the page.

The second difference is session permissions. Visitors to the front desk read public pages, and even if scripts are executed, they can only reach anonymous sessions; the back-end pages carry the administrator's login status, and the same script can use this session to call interfaces and change configurations. Therefore, 'what visitors on the front desk cannot see' is not that the risk has become smaller, but that the risk has changed its location - from the public side to the highest permission side.

The content awaiting review is also input: how should a notice be read?

WordPress in version 7.1.3 of this maintenance version, one of the seven security fixes was a stored cross-site scripting vulnerability on the comment management page, the reporter explicitly wrote 'can be triggered by pending comments.' The value of this statement is not in the vulnerability itself, but in the qualitative assessment it provides: Pending status is just a business status, not a security status.

When reading such announcements, you can separate the three fields. The first is the trigger location, whether it is written on the management page or the front page, it determines whose session is affected; the second is the required permissions, anonymous submission and submission requiring login have completely different handling orders; the third is whether to roll back to the old branch, rolling back means that the old version will continue to receive the same fix. It is much more useful to check these three items against your own site than to just remember a number.

Is it safe if it is not visible on the front page?

No. There are at least three easily overlooked paths:

  • Notification and reminder emails will include the comment text snippet in the email body, and the administrator will still read the original text in the email client;
  • The exported and backed up files save the original text entered, and any action of 'taking a look' may trigger execution;
  • When the in-site interface returns the pending content to the front-end script, if the caller writes directly to the page, the injection point returns to the browser.

In other words, 'not displayed on the front end' only blocks the visitor path. What needs to be prevented is all places that treat unfiltered text as tags for rendering, and most of these places are concentrated in the background and auxiliary links.

The three-level reception on the back-end side

The first layer is the filtering before storage. Within the site, messages and comments are first placed in the pending review status, sensitive word filtering and keyword replacement take effect at this step, and the content matched is replaced or blocked according to the rules. The meaning of this layer is to block obvious dirty data before display, but the blacklist-based replacement itself is not entirely reliable and cannot rely on it alone.

The second layer is the escaping at output time. Separate the 'who wrote the content' and 'what role this content is': All text should be escaped as plain text, and the position requiring rich text should be declared separately. It is the easiest way to make mistakes when the same data goes through a set of output functions in the front-end and another set in the back-end—the two places should default to escaping, not trusting by default.

The third layer is the convergence of permissions and entry. The review page should only do the review job, actions like deleting and status switching should be with verification, and it should not be allowed to be completed with a single ordinary page load. The back-end address itself being not public does not equal to authorization, login status, operation confirmation, and interface authorization are three different things. The site provides JWT authentication and built-in protection related to XSS and SQL injection, but these are all 'a default protection on the program side', which cannot replace this step of output escaping.

Where do review and filtering take effect separately?

The two points that are easy to confuse: content review is about 'whether this content can be displayed externally', and sensitive word filtering is about 'which words need to be replaced or blocked during display'. The former depends on state transition, and the latter depends on string processing at the input or output stage. If only the review stage is monitored, the original script will still be sent to the background as is after approval; if only replacement is done, it can be bypassed by changing the encoding or writing style.

The document status within the station is divided into draft, pending release, official document, and recycle bin. The review process for comments and messages is managed separately. It is recommended to divide the content into two groups during safety self-inspection: one group will be rendered externally, and one group will only appear in the background or notifications. Both groups must follow the same rule - whether to escape by default. Pay special attention to the scenario where the draft link is accompanied by a preview parameter, as the status that can be opened externally should be handled as external content.

Common questions

Question: Is it the most convenient to turn off all comments?Of course, turning it off is the most convenient, but it is often necessary to leave a message in business. A compromise is to review and then publish, and at the same time, the display content of the review page should be processed as plain text, so that even if there is dirty data in the queue, it will not be executed.

Is it enough to do escaping only on the front end?Not enough. The front-end escaping protects the visitor, while the back-end display and notification chain protects the administrator session, and the latter has higher privileges. The same data needs to be confirmed separately at each rendering point.

Can the announcement of upgrading the peer program be directly applied to your own site?Answer: No. The announcement provides the code path and affected version of the program itself, the only thing that can be used is the定性 of 'Review content must also be processed according to external input', and each rendering point of the home site needs to be checked one by one.

Question: How often should this type of maintenance version be followed up?Answer: Sort according to the severity and trigger position in the announcement. Prioritize those that fall on the management page and can be submitted anonymously, and merge the rest into the regular maintenance window.

Related articles

The security fix has been backfilled to a branch from several years ago, can the old version continue to be used?

A maintenance and security release note states: This release includes 7 security fixes and 4 bug fixes, and security fixes will be backfilled by convention to branches still eligible for security fixes, up to version 4.7, and it is explicitly stated that only the latest version is in active support. The backfilled are the issues listed this time, and maintenance fixes and support periods cannot be backfilled. This article distinguishes these two layers and explains how to read the version history.

2026-10-10

The program writes the model description file and AI usage log into the version history, and checks which items to follow up on.

In the release records of similar programs, V3.2.24 writes the addition of llms.txt automatic output and background configuration, V3.2.27 writes the addition of spider logs and AI log pagination tabs on the system log page. The two lines correspond to whether the model can read and whether it has been used after reading. This article explains the division of labor, the three-step verification when following the behavior, and the switch position and judgment basis of similar modules within the site.

2026-10-10

The plugin page writes the test up to a certain version and the million-level installation volume, what can be read from these two lines when selecting the model.

Annotation on the directory page of a security plugin, Tested up to 7.1.3, 5+ million installations, Current version 9.0.2, Last updated on September 30, 2026. These three lines indicate different things: The compatibility annotation indicates the tested versions, which does not constitute a commitment for interactive adaptation; The installation volume indicates popularity, but does not indicate maintenance intensity. This article explains the scope and limitations of these two types of information item by item, and compares the two implementation paths of extended assembly and built-in capabilities.

2026-10-10

How many percentage points do the website building platforms occupy in the market share statistics, and should the content-based official website follow this path?

In the share statistics, Shopify accounts for 5.4%, Wix for 4.2%, and Squarespace for 2.4%. These levels represent the hosting website needs driven by transactions and display. This article uses these numbers to distinguish between transaction-driven sites and content-driven websites, explaining where multi-site and multi-language management falls on one side, and what responsibilities should be retained when building a content-driven website, as well as when it is indeed time to choose a hosting platform.

2026-10-10

Announcement for the same program has both internal and CVE numbers, which one to follow up?

When a single announcement carries both vendor internal numbers and CVE numbers, the purpose of the two sets of numbers is different: CVE is suitable for cross-product search and asset library comparison, while vendor announcements include affected version, fix branch, and disposition scheme. This article uses a list of public announcements to explain which one to follow and how to leave a record in the proprietary system.

2026-10-11

The requests of the AI crawler start with encrypted signatures, can't the whitelist only look at the UA?

The new robot verification method uses HTTP message signatures to prove the identity of the crawler, and three signature-related headers need to be included in the request, with User-Agent being just one of the supplementary declarations. This article explains the difference between verifiable identity and forgeable strings, as well as where the whitelist should be written, and what the exclusion rules and anti-crawling measures each manage.

2026-10-11

Open measurement finds that the diversity of source references of various generative engines is very different, how should it be read.

A systematic comparison study measures the natural search results with five generative search systems provided by three parties, finding that there are significant differences among the engines in terms of whether they rely on internal knowledge or external retrieval, as well as the diversity of sources. This article explains the correct interpretation of these conclusions and which paths within the site should be made machine-verifiable.

2026-10-11

Nginx and Apache each have their place in the server software market share, and when choosing website options, which factors should be considered.

The statistics provided are of the installation distribution, not the adaptation conclusion. This article uses a public server software statistics to explain what these numbers count, why a site is counted twice, and brings the selection back to pseudo-static rules, deployment entry, memory usage, and operational familiarity.

2026-10-11