The update record of the peer program writes switching to HTTPS and blocking cache poisoning, does it count as a security fix?
The update record of peer programs mentions switching to HTTPS and blocking cache poisoning. Are these two considered security fixes? The answer is layered: The blocking cache poisoning item explicitly states that 'cache files are treated as PHP execution', which belongs to security fixes; the item changing the template external link from http to https is about avoiding mixed content blocking, which belongs to page correctness repair. Not all changes in the same version record are at the same level. When reading the release notes, you should classify according to 'which level is fixed', rather than looking at which version it appears in.
Which three types of changes in the release record are easy to confuse.
With this weekly progress release record as an example, the frequently mentioned changes can be divided into three categories.
| Category | The style of writing in the record | What is solved is | Is it a security fix? |
|---|---|---|---|
| Encryption in transmission | The template page footer external link changed from http to https to avoid mixed content blocking | The source of resources when the browser loads the page | Only correctiveness repair is counted |
| Cache correctness | Fixed the HTML cache poisoning caused by bypassing the page parameter encoding and query separator, and the cache file was treated as PHP execution. | The attribution of cache key and cache content | Yes, with execution risk |
| Access Control | Fixed unconditional trust forwarding header caused IP list and login lock to be bypassed, added trusted proxy configuration | Who is identified as the customer source | Is |
The criteria for the three categories are very simple: whether the change closes an exploitable entry. Closing the entry is a security fix, and just making the page display as expected is a correctness fix.
Transmission encryption solves the link, not the site
Change the external link in the template to https, which affects whether the browser will block non-encrypted resources when loading the page. It solves the display problem of the page under encrypted access, without changing the entry point of the site itself exposed to the outside.
This point is often misunderstood: when 'https' appears in the release notes, it is thought that the entire site's transmission link has been strengthened. In fact, it needs to be distinguished into three segments - whether the link from the visitor to the site is encrypted, whether the resources internally referenced by the site are encrypted, and whether the link between the site and the backend service is encrypted. This template only falls on the second segment.
Check if your site is affected, the method is to check each resource reference in the page source code: as long as there are non-encrypted external resource references, the browser may intercept; this is two different things from whether the site is attacked.
The boundary between cache poisoning and cache correctness
It may not be a security issue if the cache itself has a problem, the boundary lies in what can be done with the wrong things cached.
This record specifies the fix very specifically: Bypassing the encoding of front-end parameters and query delimiters will poison the HTML content into the cache, and the cached files will be executed as scripts. The first half is correctness - visitors read other people's pages; the second half is security - files in the cache directory enter the execution path. Therefore, it should be treated as a security fix and given priority over pure display changes.
Similar issues can also be self-checked in two places: whether the cache key includes parameters that should not be involved in caching, and whether the directory where the cache files are located allows direct requests to execute. Only when both are turned off on the site, cache poisoning is just dirty data rather than an entry point for execution.
Why are trusted proxies placed together with security fixes
The other fix writes about unconditional trust in forwarding request headers, which leads to IP whitelist and blacklist bypassing and login locking. The solution is to add a trusted proxy configuration.
The essence of this kind of problem is that the program treats the address in the request header as the visitor's source, and this header can be arbitrarily forged, so all restrictions based on the source address will fail. It belongs to the access control layer, is unrelated to encryption, and indeed belongs to a security fix.
The deployment structure determines whether this change affects yourself: when there is a reverse proxy in front of the site, you need to explicitly declare which proxy addresses are可信; when there is no proxy in front, it is more secure to leave the list of trusted proxies empty, otherwise anyone can construct a forwarding header to affect the program's judgment of the source address.
Backup and rollback list before upgrade
A weekly release rhythm means that upgrade opportunities are frequent, but before each round of upgrades, two things must be done first: backup and rollback confirmation. AnQiCMS supports the backup and recovery of data and static files, which is particularly critical for cache class repairs - repairs often accompany changes in cache keys, and the old static products need to be able to roll back in bulk.
| Steps | What to do | Purpose |
|---|---|---|
| Read records | Divide the changes according to the table above into encryption, caching, and access control categories | Determine the priority |
| Backup | Backup data and static files together | Maintain rollback capability |
| Check the deployment | Confirm whether there is an agent in front and whether the cache directory can be directly requested | Determine whether the trusted proxy and cache items affect yourself |
| Try on a small scale | First upgrade in non-primary columns | Observe the page and cache performance |
| Follow up in full | Follow up across the entire site after confirming no anomalies | Close up |
| Retest | Randomly check the cache products and related restrictions on source addresses | Confirm that the repair is really effective |
The deployment method also affects the scope of re-validation. AnQiCMS supports one-click deployment via Baota panel, aaPanel, LNMP command deployment, and Docker image deployment, with the default listening port 8001; in any case, the reverse proxy and caching rules are configured in the outer layer of the site, and the program upgrade itself will not change the outer layer rules for you.
Common questions
Does the appearance of https in the version history mean that the site is secure?
Do not push it like this. It usually only indicates that the resource references in the template have been changed to encrypted form, solving the browser blocking problem; whether the site itself is encrypted depends on the actual link visited by the visitor.
What is the difference between cache poisoning repair and ordinary cache cleaning?
The difference lies in the consequences. Cleaning only affects performance and freshness, while the repair record involves the cache file being executed as a script, which is a problem of the execution path and should be prioritized according to the security repair schedule.
If no reverse proxy is used, do you need to configure a trusted proxy?
Not needed, and it is recommended to leave it blank. The significance of the trusted proxy list is to limit which addresses forwarding source information can be trusted, and when there is no proxy, any forwarded request headers should not be trusted.
A new version is released every week, should we follow up every time?
Follow by category. Repairs with execution risks and access control should be done as soon as possible; updates for encryption, style, and third-party libraries can be scheduled during maintenance windows. The backup and rollback confirmation should be completed before following up, and the upgrade can only be considered reversible.