What can unlogged-in users read, where are the permission boundaries of the content system likely to leak?

📅 October 12, 2026 👁️ 18

What content can unregistered users actually read, which is often not determined by the visibility of the main article, but by the respective boundaries of the attached objects and interface layers. A private text is blocked, but if its comments, attachments, and preview addresses are not tightened together, it is equivalent to opening another path through the side door. The places where permission boundaries are prone to leaks are mostly not on the list page, but on these several easily ignored paths.

A recent public security announcement exactly illustrates this: WordPress fixed the issue in version 7.1.3 where comments on private and unpublished posts could be read by unauthorized users. The main content itself is private, but the problem lies in the fact that the附属 data of comments does not inherit the visibility judgment of the main content - which is almost the most typical form of unauthorized access.

The main content was preserved, but why did the附属 data leak?

The main article and its mounted data are usually two sets of read logic. The main text follows content permission judgment, while comments, attachments, and custom fields often go through independent query interfaces. It is easy to default to '附属数据跟着主内容走' when writing, but in actual execution, the comment interface may only return based on 'whether the article ID exists' without checking whether the current status of this article is private or not published.

The leak point is in this sentence: The state filter is only written on one side of the main content. If any child resource query bypasses the state judgment, private content is exposed in fragments. Attachments, comments, messages, and related recommendation lists all belong to this kind of 'Looking at someone else's field, but it is actually the boundary you should guard.'

The most easily overlooked filter at the interface layer

The list interface is the second leak point. The detail interface checks whether a single article is readable, but the list interface often returns entries directly by category or tag, bringing out records from 'Unpublished' and 'Recycle Bin'. Every additional status returned by the interface is a piece of content overstepping its authority.

There is a more concealed location: search and aggregation. In-site search combines the title, abstract, and text snippet to return results. If the index is not filtered by status, private titles may appear in the results as 'hit snippets'.

How to define the boundary between preview and draft?

The draft preview is intentionally designed but should have boundaries. The document status is generally divided into four categories: official, draft, pending release, and recycling bin: pending release is scheduled but not yet at the point, draft is still being edited, and recycling bin is deleted and waiting to be cleaned up. The preview link for editing and proofreading is a reasonable requirement, but the question is whether it is long-term effective, whether it can be indexed by search engines, and whether it can still be accessed after leaving.

The safe way is to use signed short-term links for previews and ensure that the preview address does not participate in crawling. Formal documents should be moved to the recycle bin instead of being physically deleted, and recovery should only occur at controlled entry points to avoid publicly exposed deleted data being read back by public interfaces.

Three-level control within the site

Within the site, generally, the boundary is sealed with three layers: user groups determine the range visible when logging in or not, document status determines the lifecycle of the content itself, and the scope of interface exposure determines which capabilities are open by default to tools.

Control layer What does it manage? Typical leak points Sealing method
User group permissions What content can the unlogged / ordinary / VIP groups access Only block the page, not the interface Permission judgment sinks to the data query layer
Document status Visibility of formal, draft, pending release, and recycling station Child resources do not inherit status filtering All comments and attachments must check the main content status
Interface exposure Whether the high-risk capability can be adjusted externally Default access to all-site operations High-risk domains are closed by default and need to be explicitly opened

AnQiCMS corresponds to these three points by: User management and VIP grouping are used to set access permissions for different user groups; Document status is distinguished between formal, draft, to be published, and recycling bin, with deletion going to the recycling bin instead of physical deletion; Interfaces are set according to the capability domain to set the exposure range, backup, upgrade, and multi-site operations such as these are set to default closed, and need to be explicitly enabled to be accessible. Only when the three overlap can the 'sideways door' be blocked one by one.

Common questions

Question: Is it enough to block only the details page of private articles?Answer: Not enough. Comments, attachments, search snippets, and list interfaces are independent read paths. Any one that does not perform state filtering will leak. Permission judgment should fall to the data query layer, not just at the page rendering layer.

Question: Will the draft preview link be caught by search engines?Answer: It should be treated differently. The preview entry should not be indexed and the link should be short-lived; if the preview address is long-term and can be indexed, it is equivalent to publicly releasing unissued content.

Question: Why should high-risk interfaces be closed by default?The default open means that any available credential or bypassed authentication can trigger a full-site operation. Setting the exposure range of capabilities such as multi-site and backup to default closed is to narrow the impact radius once unauthorized.

Related articles

Injections can also be hidden in exported files, where can the prevention of second-order SQL injection be found?

The feature of second-order injection is delayed execution: malicious content looks harmless when written for the first time, but triggers only when exported, imported, or rebuilt as a statement to be consumed. This article takes the second-order SQL injection in the WXR export fixed in WordPress 7.1.3 as an example, explaining the difference between first-order and second-order, why export has become a delivery channel, and where to place protection in the steps of writing, storing, and consuming, as well as the checks to be added to the backup and recovery process.

2026-10-12

The XSS triggered when the comment is opened in the background, where should the content system prevent it?

Some cross-site scripting attacks are not triggered on the front end, but are executed when administrators open pending comments on the backend. This type of vulnerability has a completely different protection location than the front end. This article takes the recently fixed WordPress 7.1.3 comment management page stored XSS as an example, explaining why the secondary context is an independent attack surface, why input filtering is not enough, and the three layers of protection that need to be done on the backend: output escaping, permission boundaries, and content review.

2026-10-12

When old versions only patch security vulnerabilities, should we wait for the main branch to upgrade features?

The security patch and feature upgrade follow two timelines. Taking the recent WordPress 7.1.3 as an example, the official has patched the security fixes back to the old branches that still qualify, while reminding that only the latest version is actively supported. This article explains the difference between active support and security support levels, why feature improvements have to wait for the main branch, and what order to judge when arranging the upgrade timeline for the site.

2026-10-12

After the crawling behavior is divided into several categories, how should the site's release rules be adjusted accordingly.

Divide the automated capture into three layers according to behavior - for subsequent answer collection and indexing, for model training capture, and for replacing users to fetch pages in real time, the benefits and costs of the three types are completely different. This article explains why domain-based access is not enough, how the access rules should be layered, and why the robots only expressing intention determines that it must be used in conjunction with content-side protection.

2026-10-12

Where do the differences in costs lie between self-built content systems and pay-as-you-go cloud services?

Self-built content system and pay-as-you-go Headless cloud services, the main cost difference lies in the four items of servers, request volume, integration expansion, and operation and maintenance personnel. Self-building on a small scale is usually more cost-effective, while maintenance and personnel become the main expenses as the scale increases; Headless deploys the front-end to the edge, retrieves content by interface, eliminates server-side rendering for each request, but introduces interface call billing. This article compares the four items and provides a comparison with self-hosting.

2026-10-12

The content management system released several security versions in a month, indicating what operation and maintenance should change.

The content management system released security maintenance versions consecutively within a month, indicating that the operational judgment criteria should shift from version numbers to the content of repairs. This article takes recent public information as an example: WordPress released three security maintenance versions consecutively in September and October, Joomla released security fixes for both 5.x and 6.x at the same time, from which three operational adjustments can be extracted - decide based on the content of repairs, leave a rollback point for upgrades, and rotate keys and passwords after upgrades.

2026-10-12

Why does the wildcard or regular expression for crawling exclusion files not work according to path prefix matching?

This protocol only recognizes User-agent and Disallow, and explicitly does not support wildcards and regular expressions. This article explains why rules are only followed by prefix, what happens when wildcard and regular expression writing occurs, and the order in which directory paths and slashes should be written within the site to match real needs.

2026-10-12

Should crawling be allowed on list pages with filtering parameters, and how to write the exclusion path?

Should the list page with filtering parameters allow crawling, and it needs to be judged separately according to the page type. This article first distinguishes three types: in-site search, custom field filtering, and pseudo-static surface address, and then according to the crawling exclusion protocol, only recognizing the path prefix as the restriction, it explains which should be blocked and which blocked would hurt the collection, as well as how to divide the work of excluding paths at the in-site robots configuration and pseudo-static rules.

2026-10-12