PbootCMS program security configuration recommendations
Published: 2024-06-07
Recently, some customers using the PbootCMS open-source program have reported that their websites were injected with malicious code/compromised, etc. After verification, our company found that the cause is vulnerabilities in this program. Users can follow the suggestions below to perform security settings.
Virtual Hosting
An AI Assistant has been added to the left side of Virtual Hosting Management.
Log in to the Management Center, enter the virtual hosting control panel, find the “AI Assistant” entry in the left navigation bar, and you can use it;
Scan and remove Trojans and viruses, patch vulnerabilities, add new features, redesign the website... Open the hosting control panel and say one sentence, and the AI Assistant will help you get it done online!



I. Program Suggestions:
1. Log in to the admin panel, upgrade the program to the latest version, and reset the password to a complex password.
2. If the website does not need message function, you can disable the message function.
3. Rename the /data directory to another name, for example daj4oy7fd, and then change the database path in the configuration file /config/database.php to the name you just changed

4. Rename the admin panel file admin.php to another name, for example xxx222.php, and then use domain/new-name.php to log in to the admin panel
5. Delete unnecessary files and directories /doc, /rewrite, /api.php (generally not needed for corporate websites and can be deleted)

II. Permission Settings
1. Log in to virtual hosting file management , check the wwwroot directory, click Permissions, and set the directory to read-only.
After clicking Permissions, in the pop-up interface, check Set as read-only protection, and then click Confirm Settings.

2. Then, through file management, sequentially set the directories /data (new name), /runtime, /static, and /uploads to Remove Protection;

3. In the virtual hosting control panel, click Directory Protection, and sequentially set file protection for /static , /skin, /template, /uploads, /apps, and /runtime;
Click Directory Protection, then click Browse on the page and select the corresponding folder.


Cloud Server
1. Cloud servers can also follow the above suggestions, set permissions, disable script execution, etc.
2. Install security software, such as 安全狗, 云锁, etc., and set up tamper protection
3. Back up important data regularly, such as cloud snapshots or manual backups.
The above security setting suggestions cannot 100% solve the problem of PbootCMS being injected with malicious code or infected with Trojans, but they can reduce the frequency of being hacked. Users also need to pay attention to program updates/vulnerability fixes themselves.
In addition, whether it is virtual hosting or cloud servers, websites should be backed up regularly to avoid being unable to recover data after being hacked.
