How does bypassing XSS filters occur, and why is a blacklist of tags not enough?

📅 October 9, 2026 👁️ 20

How did the bypass of the 'XSS Filter' in the security announcement occur? In one sentence: The filter and the browser have inconsistent understanding of the same string of text.The filter judges whether this content is safe according to its own rules, and the browser decides whether to execute it according to a different set of rules. The bypass method is to construct input that has different answers in these two sets of rules - in the eyes of the filter, it is ordinary text, and in the eyes of the browser, it becomes executable code.Joomla's recent two InputFilter announcements correspond to these two types of differences: one involving the handling of whitespace characters in HTML data URIs, and one involving HTML5 entity decoding.

Understanding this, you can answer the second question: why only doing tag blacklist filtering is still bypassed - blacklist checks 'how does this text look', and the browser executes 'how this text is parsed', there is always an interpretation gap between the two

Where does the bypass occur

Content enters the system generally through two processes. At the time of entry, filtering is performed: tags, attributes, and protocols that are not allowed are removed or rewritten; at rendering time, escaping is performed: the content is recoded according to the syntax rules of the target location.

The issue with blacklist filtering is that it must simulate the browser's parsing rules to judge accurately, while the parsing rules themselves are different in different contexts. The same text placed in element content, attribute values, JavaScript strings, or URL parameters has completely different safe writing styles. The filter has only one set of rules, but there are many rendering contexts, and this asymmetry is the location where bypassing occurs.

These two differences between data URI and entity decoding are typical examples: whether whitespace characters are considered valid separators, and what characters entity notation is decoded into, the answers of filters and browsers are different, and the check is as if it were a mere formality.

Three failure scenarios of blacklist filtering

The first is encoding and notation variants. The same character can have multiple writing styles, the filter recognizes several common ones, but the browser accepts all of them. The second is context switching. When content is reused between attributes, scripts, and URLs, the originally safe writing becomes executable in the new context. The third is parsing differences. The parts of the specification that allow browsers to make compatibility handling are exactly the parts that the filter is hardest to cover.

These scenarios have a common point: none of them can be covered by simply adding a few black list rules. The longer the rules become, the higher the cost of judgment, but the probability of missing judgments will not decrease significantly, because the problem lies in the difference between the rules and the parser, not the number of rules.

The division of labor between input filtering and rendering escaping

Duties need to be clarified: input filtering is a content governance method, the purpose of which is to make the stored things basically clean, convenient for display and reuse; rendering escaping is the execution point of preventing injection, because it encodes the content according to the syntax requirements of the output location, so that the data is no longer interpreted as code.

The correct approach is to treat them as two separate processes, not to let the former replace the latter. Any content from user input - comments, messages, custom fields, imported text - must be escaped according to the context in which it is rendered, regardless of whether it has been filtered when stored.

Another boundary is equally important: the protection measures against cross-site scripting and SQL injection are not the same. SQL injection is blocked by parameterized queries, not keyword tables; mixing them into a category of 'sensitive content checking' usually means neither line of defense is established.

Several things should be configured for content security.

Within AnQiCMS's built-in protection, the sensitive word filtering and keyword replacement address how to handle the content of matched rules, content review determines whether this record can be exposed externally, these two belong to content governance and cannot be understood as injection protection. Anti-crawling interference codes are aimed at bulk copying and are unrelated to execution security.

It is necessary to confirm these items one by one: whether there is validation at the entry of forms and messages; whether the submitted content is also escaped in the background list - although the content to be reviewed is not displayed on the front page, it will still be rendered by the browser during the background review, which is the most likely to be overlooked; whether the output of the rich text editor is processed according to the context when rendered; whether the encoding of the output of static pages is unified.

Three-tier responsibility comparison

Level Means Purpose What cannot be blocked
Entry filtering Blacklist of tags and attributes, sensitive word filtering, keyword replacement Keep the stored content relatively clean Parsing difference bypass
Rendering escape Re-encode according to the output context Prevent the data from being executed Defects in the logic itself
Parameterization Query separation from parameters Block SQL injection Irrelevant to script execution

Common questions

Is it necessary to retain the filter? Yes. It can reduce the amount of dirty content entering storage and reduce the processing pressure on the display layer, but the positioning must be clear: content governance, not a security boundary.

How to verify if there is such a risk? Submit a batch of test content containing unconventional notations, encoding variants, and different contextual usage. Check whether it is executed as is during the rendering of the front and back ends. The scope of inspection should include the pending review list, as attackers can deliberately submit and wait to be viewed.

Can the patch upgrade replace the escape? No. The patch fixes specific parsing differences, while the escape covers all output positions.

A criterion for judgment

By looking at how a system treats user-submitted content, you can judge its injection protection level: does it rely on 'the incoming things have been filtered', or does it rely on 'regardless of what comes in, re-encode according to the context when outputting'? The former is probability, and the latter is a mechanism.

Related articles

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

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

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

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

MFA bypass announcement focuses on login state, should secondary verification be checked as well

Authentication bypass公告反复关注'记住登录状态'的cookie,because this type of long-term ticket saves the result of authentication: the risk is not in the password, but in the issuance and verification process of the ticket. Joomla's rememberme bypass公告中给出的受影响范围是4.0.0至5.4.8和6.0.0至6.1.3,修复日期2026-09-25。即使开启了二次验证,仍需检查有效期、撤销路径和凭证轮换,本文说明了登录侧应配置的三项控制。

2026-10-09

Why does writing the backend address in Disallow instead expose the entry?

The purpose of the crawling exclusion rule is to prevent a crawler from indexing a certain address; it is not an access authorization, as any visitor can read the paths listed in this file. Adding background addresses to the rule file is equivalent to publicly giving the crawler a list of entry points. This article explains the difference between blocking indexing and blocking access, as well as what controls should be relied on for the actual background entry.

2026-10-09

How should the crawling and maintenance of multilingual sites be divided between subdirectories and subdomains?

Should a multilingual site use subdirectories or subdomains, it should be considered in two lines: The crawling side is concerned with whether each language version can be independently discovered and correctly pointed to, and the maintenance side is concerned with the configuration cost and content reuse cost. This article gives the differences in the attribution of the two structures, the two things to be handled in language switching, and how the whole-page translation capability affects the long-term maintenance volume.

2026-10-09

Putting content collection and automatic writing together, will it produce low-value pages?

Collecting only transfers information without generating new content; automatic writing can organize expression, but it needs topic selection and factual source support. Both directly form a production line for mass page production, which indeed will amplify the proportion of repetitive and shallow pages. The judgment basis is the information increment rather than the output. This article gives the differences between the three sources of productivity, the inspection criteria before going online, and where the audit configuration should be placed.

2026-10-09