The entry file of the peer CMS has been replaced with a tampering script, what can be read from the public issue list?
The entry file of the peer content system has been replaced with a tampering script, what clues can be read from the public issue? This issue (PbootCMS issue #50, titled 'The latest version vulnerability still exists, new script tampering virus') has three time lines and two file names that can be verified: core/start.php was tampered with on June 23, 2026, the home page index.php was tampered with on June 24, and the issue was created on June 25 and closed on July 8.The script does not directly output fixed content, but first reads visitor identification and source reference, determines whether this visit comes from a search engine, and then retrieves the content from the external address.This is the typical 'only for crawler display' tampering form for content stations.
Three time points that can be read from the issue list
| Verifiable fields | Recorded value | Pronunciation |
|---|---|---|
| First tampering | 2026/6/23, entry start file | Starting point is on the start path, not in the content of a single article |
| Second tampering | 2026/6/24, homepage file | Expand to the home directory entry the next day |
| Create an issue ticket | 2026-06-25 | The interval from occurrence to public reporting is about one day |
| turned off | 2026-07-08 | From public to closed about two weeks, with continuous discussion in between |
Two tampered dates are connected, which is the most valuable information in this issue ticket: it shows that the writing action is not one-time, and the attacker has obtained the ability to continuously rewrite files. If only the homepage is cleaned, it will reappear the next day.
Why does the tampering script need to judge the visitor's identity
The script written in the issue form reads the visitor identifier and source reference, using keywords related to the search engine name and regular expression patterns of the crawler name to determine the source of visit. The purpose is quite direct: to make the webmaster and normal visitors not see the anomaly and only return the constructed content when the crawler visits.
This leads to two consequences for investigation. One is that when opening the homepage with a browser, it often displays normally, so you need to use the same access method as the crawler to judge whether it has been tampered with; the other is that the title and description appearing in the search engine index may not correspond to any text in the site - this kind of difference between 'there is no station and there is external' is itself the most direct signal.
Regarding the specific address and code details for retrieving external content, it has already been written in the issue ticket, and this document does not repeat confusing fragments or reference external domains. When following up, you only need to accept a conclusion: the entry file is not the one you wrote.
Check the order of file integrity verification
The order is arranged according to the possibility of being written, not according to the directory hierarchy.
| sequence | Check the location | Judgment method |
|---|---|---|
| 1 | Entry and startup file | Compare each file with the release package, including file modification time |
| 2 | Homepage and column template | Compare the original template text to see if there is any additional logic for reading visitor information |
| 3 | Script files within the upload directory | An executable file extension appears in the material directory, which is an exception |
| 4 | Scheduled and queue tasks | Check for tasks added by others |
| 5 | Background account and login records | Check account numbers and recent login sources |
| 6 | Database content | Random check for the main text and configuration table being bulk written |
The comparison benchmark for the first step comes from the release package, not the current directory itself: the files in the current directory have been changed, and taking them as a benchmark will always be consistent. The third step is a common point missed by many sites - the upload directory allows writing and can be parsed, which is a common point of secondary writing.
Deployment method determines the speed of recovery
In the same type of event, the difference in recovery speed is usually not technical, but whether there is a complete copy that can be rolled back.
AnQiCMS supports the backup and recovery of data and static files, rolling back the database and static products together to avoid inconsistencies caused by template rollback and data not being rolled back. Document deletion is moved to the recycle bin instead of being physically deleted, and accidental deletion and tampering at the text level can be restored from the recycle bin first, without depending on the entire backup package.
The deployment method also takes effect here. AnQiCMS supports one-click deployment via Baota panel, aaPanel, LNMP command deployment, and Docker image, defaulting to listen on port 8001. When containerized deployment, you can roll back the entire running environment to the previous image and rebuild it, which is more complete than just replacing files; when deploying via panel or command, comparing and replacing files is the main means, with the prerequisite that there is an original release package to serve as a benchmark.
Several things need to be verified after the modification is done
Cleaning and changing the password is only half done, and the remaining verification determines whether the problem is really under control.
The first is to check in a different way: Use the same access method as the crawler to grab the homepage and several inner pages, and confirm that the returned content is consistent with the on-site text. The second is to check the publicly visible results to see if there are any abnormal titles remaining in the收录. The third is to review the content layer, where AnQiCMS provides sensitive word filtering and keyword replacement with content review, which can intercept abnormalities before they are released to the public when the content is rewritten. The fourth is to review the writing path - conclusions must be reached on account, version, and directory permissions, otherwise, cleaning files is just waiting for the next round.
Common questions
Did not write the source of attack in the issue report, should we guess ourselves?
Do not. The issue report only specifies the modified files and script behavior, without giving the intrusion path. The investigation should be conducted from three verifiable online aspects: account, version, and file permissions. Guessing the source may cause the disposal action to lose focus.
Is it enough to only recover the home page files?
Not enough. The records show two modifications, one in the entry start file and the other in the home page file, one day apart. Only cleaning the one that is seen will cause the other to re-occur the next time it is accessed.
How can you confirm that the site has not been written with similar logic?
Access the homepage and main inner pages in a way consistent with web crawlers, and compare them with the on-site content; at the same time, compare the entry and startup files with the original release package. Both must be consistent to consider the publicly visible content to be consistent with the on-site content.
Do you need to change the credentials after recovery?
Yes. If the file has been rewritten, it means that there is already the ability to write, and the handling should include at least changing the administrator password and credential rotation, followed by a review of the login records. If only the files are rolled back and the credentials are not changed, the site will be cleaned again in the next round.