How should the announcement that bypasses the input filter be arranged from the version a few years ago to the present?
Joomla Security Center two input filtering bypass announcements, the affected versions are written from many years ago to the current branch, and the fixed versions are on two lines. How should old sites be arranged in the disposal order? The answer is to arrange according to whether they can be upgraded, not according to the rating level. The signals given by this kind of range are very direct: the problem is not introduced by a single change, but by the long-existing understanding differences between the filtering layer and the decoding layer. Any site still in this range is within scope.
What does it mean for the range to start from many years ago?
The announcement splits the range into two parts: one covering a long history of branches, and one covering the current main version. The rating is only medium, and the repair date is different from the date listed in the announcement, indicating that the patch has been confirmed internally for some time.
For old sites, there are three practical issues in this range: whether the corresponding fix version is available in the branch; whether the upgrade will cross a large version difference; and whether the custom code in the site that depends on the old filtering behavior will break even if there is a fix version. The first issue determines the action, and the latter two determine the time.
First, judge whether it can be upgraded, and then judge whether it needs to be turned off.
The **step in the disposal sequence is to read the current accurate version and compare it with the fix version. Those that can be upgraded to the corresponding fix version are handled as safe versions, follow the normal upgrade process, and leave a backup; these types of issues do not require downtime, and the upgrade itself is a complete disposal.
The situation where it cannot be upgraded is more common, usually stuck between version跨度and custom code. At this time, it should be sorted according to the exposure surface: rich text input, external submit forms, and places where user content will be output unchanged to the page. Those that can be triggered externally should be narrowed down first. A common mistake on old sites is to first do transformations like 'add a layer of filtering', putting the truly controllable actions - reducing the paths that can be written externally - at the end.
Filtering layer and escaping layer are not the same thing.
The announcement bypassing the type is the most illustrative of this. Two of them involve the inconsistent blank characters and entity decoding in data URIs, both occurring at the layer of 'determining whether the content is safe', the determination and rendering have different understandings of the same content, and the bypass appears in the differences.
The protection of the self-owned system is also divided into two layers: the filtering of SQL injection and XSS, sensitive word filtering and keyword replacement processing is the input and content rules, which belong to the judgment layer; the output context-based escaping belongs to the rendering layer. Pressing all the responsibility on the ** layer is equivalent to requiring the filtering logic to accurately predict the parsing methods of all renderers. Whether the old rich text content needs to go through the output escaping again after the upgrade is a point worth self-checking in this kind of announcement.
A rule to be added in content review
In addition to the upgrade, the old site can immediately move the review process forward: the external write path of the rich text field should be restricted, and content with script risks should be reviewed manually or by rules before being stored in the database. Systems like AnQiCMS provide content review and sensitive word filtering capabilities, using them to explicitly define the rules of who can write rich text and whether a review is needed before publishing, which is more stable than adding another blacklist.
It should be emphasized that this layer does not replace the upgrade. It reduces the probability and impact of being written, and the bypassing of filtering should be resolved by the fixed version.
Common questions
Ask: The rating is just moderate, can it be scheduled for the next quarter?Answer: The rating measures the scope of impact, not the exposure. For sites that can write rich text externally, the disposal time should be determined by the entrance rather than the rating.
Ask: What should be done if the old site is within the affected range but no repair version is available?Answer: First, disconnect the external write path, change the rich text of the site to only accept submissions from trusted accounts, and at the same time, treat the migration schedule as part of the disposal process, because branches written for such a long period of time usually no longer receive long-term maintenance.
Ask: Do we need to handle the old rich text content after the upgrade?Answer: To inspect. There may already be some writing judged safe at that time in the historical content, the change in parsing behavior after the upgrade will cause them to display abnormally, this part should be solved by outputting escape characters and a content review.