Bitrix Site Manager hack: a backdoor in the CMS
To protect a Bitrix Site Manager website from hacking and backdoors, follow these recommendations:
- Install all updates and patches released by the 1C-Bitrix developer. They contain fixes for discovered vulnerabilities, including vulnerabilities related to backdoors.
- Use only licensed versions of 1C-Bitrix to avoid the risks that come with a pirated copy.
- Change the default file and folder names to make it harder for attackers to find backdoor files.
- Use strong passwords for the website admin panel, and do not reuse the same password across different websites.
- Configure file and folder permissions on the server. For example, files with confidential information should have restricted access.
- Install antivirus software on the server and scan the website for malware regularly.
- Back up the website data regularly so that you can restore the website after a hack.
By following these recommendations, you can reduce the risk of hacking and backdoors on 1C-Bitrix websites.
Signs that a 1C-Bitrix website has been hacked
If your 1C-Bitrix website has started redirecting to suspicious resources, runs a JavaScript miner or no longer works the way it used to, it has most likely been hacked.
A 1C-Bitrix website is often hacked through a backdoor in the website files. A backdoor makes it possible to gain administrator privileges without a login and password and then cause damage on the website.
What to delete after a hack
If you find signs of a hack, first delete all files that did not come with the Bitrix installation, as well as files that contain dangerous code. In addition, check whether the following files exist:
- bitrix/admin/mobile/new.php
- bitrix/tools/new.php
- bitrix/new.php
- bitrix/settings.php (not to be confused with .settings.php!)
- bitrix/mobile/settings.php
- bitrix/mobile/config.php
- bitrix/tools/settings.php
- bitrix/tools/config.php
If these files exist, delete them immediately, because they may contain a backdoor.
How to check several websites on one server
If you host many 1C-Bitrix websites on one server, you can use a command to search for backdoor files. On ISPmanager servers, the command looks like this:
cd /var/www && find . -maxdepth 5 -type d -name 'bitrix' | cut -d'/' -f2 | sort -u | xargs -I{} find ./{}/data/www -type f \( -name new.php -o -name settings.php \) | xargs -r grep -ilE 'new CUser\(|->Authorize\('
Keep in mind that the search may also pick up websites located at the default ISPmanager path, and there may be false positives.
Additional security measures
To prevent a 1C-Bitrix website from being hacked, we also recommend that you:
- Use only licensed software.
- Install all updates for Bitrix and for the components used on the website.
- Avoid weak passwords and do not let different users share the same password.
- Check the website regularly for vulnerabilities and potential security threats.
- Use additional security tools, such as firewalls and antivirus software.













