# OpenCart Security: Checklist for Store Owners

> A step-by-step security checklist for OpenCart 3.0 and 4.1 stores: access, admin panel, modules, updates, backups and monitoring, without the extra theory.

Джерело: https://opencartcode.com/en/wiki/security/opencart-security
Оновлено: 2026-11-28

OpenCart security rests on a few simple habits, not on one "magic" module. You need to remove installation traces, lock down the admin panel and hosting access, install [extensions](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#extensions) only from verified sources, update regularly, and keep backups that actually restore. Below is a checklist for store owners on OpenCart 3.0 and 4.1. Most items can be completed in one working day, together with a developer or on your own.

## Where do OpenCart store break-ins actually come from?

Stores are usually broken into not by "hackers on commission" but by automated scripts. They scan thousands of sites and look for typical weak spots: the default admin address with a weak password, a forgotten `install` folder, an old module with a known vulnerability, a stolen FTP password. Your store is not personally interesting to anyone, which is exactly why you need to act systematically. A bot never gets tired and will sooner or later find the open door.

The second major group of problems comes from "insiders." A former freelancer whose access still works, a manager who saves the password in the browser on a shared laptop, a "free" module downloaded from a forum. That is why half of this checklist concerns access and code sources, not server settings.

| Threat | What it looks like to the owner | What closes the risk |
| --- | --- | --- |
| Brute-forcing the admin password | Other people's orders, changed prices, new users in the admin | Strong passwords, separate accounts, IP restrictions |
| A vulnerable or "pirated" module | Redirects to casino sites, spam pages in Google, virus scripts | Modules from verified sources only, updates |
| Stolen hosting or FTP access | Modified files, webshells (malicious scripts for controlling the site) | SFTP instead of FTP, password rotation, 2FA on hosting |
| Payment data tampering | Money going to the wrong place, "paid" statuses without payment | Verifying callbacks and monitoring file changes |
| Bots, DDoS, spam | The site slows down, fake registrations, junk in forms | Cloudflare, CAPTCHA, rate limits |

Unfamiliar terms are explained in the [e-commerce and OpenCart glossary](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary).

## What should you do right after installing the store?

These steps should be completed before launching any advertising. If the store is already running and nobody has done these steps, do them now. Details of the installation itself are described in the article on [installing OpenCart on hosting](https://opencartcode.com/en/wiki/basics/opencart-installation); here we cover only security.

1. **Delete the `install` folder.** It can be used to re-run the installation wizard. The control panel in both versions shows a warning while this folder exists. Don't ignore it.
2. **Move `storage` outside the public folder.** The storage folder holds cache, logs, and files uploaded by customers, and browsers should have no access to them. OpenCart's control panel offers to make the move automatically. After doing so, check that the path in `config.php` and `admin/config.php` has been updated. What exactly is stored in this directory is explained in the article [about the storage directory](https://opencartcode.com/en/wiki/dev-architecture/opencart-storage).
3. **Rename the admin folder.** Bots check the `/admin` address first. In 4.1, the renaming is offered directly in the warning on the control panel. In 3.0 it is done manually: rename the folder and correct the paths in `admin/config.php`.
4. **Turn off error display for visitors.** PHP error messages reveal file paths and software versions.
5. **Set file permissions.** Usually 644 for files and 755 for folders. After configuration, config files can be made read-only.

Error display is turned off in "System → Settings" on the "Server" tab. "Display Errors" should be disabled, "Log Errors" should be enabled.

Server tab: error display disabled, error logging enabled · OpenCart 4.1.0.4

Also make sure the store works over HTTPS. Without it, passwords and customer data are transmitted in plain text. In 3.0, enable "Use SSL" on the "Server" tab. In 4.1 there is no such switch in the admin. Check that the addresses in `config.php` and `admin/config.php` start with `https://`, and that the certificate is configured on the hosting. The remaining settings to configure before launch are collected in the checklist [OpenCart configuration after installation](https://opencartcode.com/en/wiki/basics/opencart-settings).

```bash
# Виставити типові права (виконувати в корені сайту)
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod 444 config.php admin/config.php
```

## How do you get order in hosting, database, and admin access?

Access management is the cheapest and at the same time the most effective item. Make a list of everyone who has login access anywhere: hosting panel, FTP/SFTP, phpMyAdmin, OpenCart admin, payment provider account, Cloudflare, domain email. Quite often, the developer you parted ways with two years ago is on this list.

- **Hosting and domain email.** Enable two-factor authentication (2FA, a second code from an app on your phone) everywhere it is available. Whoever has access to the email can reset any password.
- **Replace FTP with SFTP.** Regular FTP transmits passwords without encryption. Give an external contractor a separate account and delete it after the work is done.
- **Database user.** The store needs one user with rights only to its own database, not root and not a shared account for several sites.
- **Admin.** Each employee works under their own login. A shared "admin/admin123" for the whole team means you won't know who changed a price or deleted an order.

Admin users are visible in "System → Users → Users". Remove the unnecessary ones and change the passwords of those who remain.

List of admin users: check whether every account is still needed · OpenCart 4.1.0.4

Next, open "User Groups". Order managers don't need rights to "Extensions" and "System". Through them, someone can install a module with arbitrary code. Create a separate group with access only to the sections that are needed. How OpenCart checks these rights is described in the article on [user_group access rights](https://opencartcode.com/en/wiki/dev-mvc/opencart-module-access-permissions).

Group permissions: for managers, remove access to extensions and system sections · OpenCart 4.1.0.4

Restricting admin access by IP, two-factor login, and protection against password guessing are covered separately in the material [on protecting the OpenCart panel from compromise](https://opencartcode.com/en/blog/bezpeka-adminki-opencart-zaxist-paneli-vid-zlamu). In short, the simplest option for Apache is to allow only office IPs into the admin folder:

```bash
# .htaccess у папці адмінки (Apache 2.4)
<RequireAny>
    Require ip 203.0.113.10
    Require ip 198.51.100.0/24
</RequireAny>
```

> Before restricting by IP, find out whether your address is static. If your provider issues a dynamic IP, or managers work from mobile internet during power outages, you will lock yourself out. In that case, it is better to use a VPN with a static address.

## Modules, themes, and updates: how do you avoid installing a backdoor yourself?

Most infected OpenCart stores that need to be cleaned up share a common trait: someone once installed a "cracked" paid module or a theme from a dubious site. Such archives often contain a backdoor, meaning a hidden entry point through which an attacker returns even after all passwords have been changed. Saving a few dozen dollars on a license later turns into weeks of cleanup and lost search positions.

- Install extensions only from official marketplaces or directly from the developer, with the ability to receive updates.
- Before installing a new module, make a backup and, if possible, test it on a staging copy of the site.
- Delete modules you don't use rather than just disabling them. A disabled module with vulnerable files still sits on the server.
- Record what was installed, when, and why. A year from now, this will save hours of searching.

OCMOD modifications are visible in "Extensions → Modifications". An unfamiliar modification with no author or clear name is a reason to ask the developer.

List of modifications: check whether you recognize each one · OpenCart 4.1.0.4

Now about updates. Keep the store on the current release of your branch. For the 3.0 branch, the current release is 3.0.5.1 (requires PHP 8.1+). 3.0.4.1 works with PHP from 7.3, but it is older. For 4.1, the current release is 4.1.0.4 (PHP 8.1+). The [PHP version](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#php-version) on your hosting is just as important. Outdated PHP without security updates is a separate risk, but the upgrade should be tested on a staging copy, because old modules may "crash" with a white screen. If you order customizations, ask the developer to follow the rules from the article on [module security: XSS, SQL injections, and CSRF](https://opencartcode.com/en/wiki/dev-practice/opencart-module-security). You should require this from everyone who writes code for your store.

## How do you notice a problem before your customers do?

Protection without monitoring is like an alarm without a siren. A compromised store often looks "normal" for years: a virus script is shown only to mobile visitors coming from Google, while spam pages are visible only to search bots. The owner usually learns about the problem from customers or from a drop in traffic.

### Backups that actually restore

In "System → Maintenance → Backup / Restore" you can export database tables. However, this tool does not store store files, and on a large database it may time out due to hosting limits. Configure the main backup at the hosting level: files and database daily, with a copy kept off the server. Once a quarter, test-deploy a copy on a staging domain. The full procedure is described in a separate article in the backups section.

Backup in the admin: database only, store files separately · OpenCart 4.1.0.4

### What to check regularly

- **Error log** ("System → Maintenance → Error Logs"). Sudden errors in unfamiliar files are a warning sign. How to read the log is explained in the article [about the error log in OpenCart](https://opencartcode.com/en/wiki/dev-practice/error-log-opencart).
- **New or modified PHP files** that you did not upload.
- **Google [Search Console](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#search-console):** messages about security issues and strange pages in the index.
- **New admin users** and unfamiliar events in "Extensions → Events".

```bash
# PHP-файли, змінені за останні 7 днів (крім кешу)
find . -name "*.php" -mtime -7 -not -path "*/cache/*" -ls
```

If this list shows files in `image/` or other folders where PHP should not exist, or if something changed without your work, act immediately. The procedure is described in a separate article in the section "The site was hacked: first steps."

## What about scammers, spam, and DDoS?

These are no longer hacking in the classic sense, but they take away money and nerves just the same. Each topic has its own article in the section, so here is only the minimum without which the store should not be launched.

- **Payments.** A "paid" status should be set only by a confirmed callback from the payment service (a server-side payment notification) with signature verification, not by the customer returning to the "thank you" page. If statuses behave strangely, go through the [payment callback diagnostics](https://opencartcode.com/en/wiki/dev-flows/opencart-callback-not-updating-order-status). Check orders for large amounts from a new account, with a different name, and delivery "to a post office branch in another city" by phone call.
- **Spam registrations and forms.** Enable CAPTCHA for registration, reviews, and the contact form. Keep an eye on the customer list: hundreds of accounts with strange names overnight means bots have arrived.
- **Bots and DDoS.** The free Cloudflare plan (a service that sits between the visitor and your server) is usually enough to filter out most junk traffic and hide the server's real IP address.
- **Personal data.** Don't keep exports of the customer database on desktops or in messengers. A database leak is more dangerous than a [storefront](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#storefront) hack.

Also plan ahead for working during power outages. A generator in the office won't help if admin access is available from only one computer and one IP.

## Security checklist: what to check every month

A one-time setup is not enough: teams change, modules get updated, and new vulnerabilities appear. Set a monthly reminder and go through the list. It takes roughly 30–60 minutes, depending on the number of modules and employees.

- The list of admin and hosting users is current, and former employees have been removed.
- The `install` folder does not exist, the admin is not at `/admin`, and storage is outside the public folder.
- Error display is off, and HTTPS works on all pages.
- A fresh backup of files and database exists, and the last test restore was no more than three months ago.
- Modules and theme are updated, and unused ones are deleted.
- There are no surprises in the error log or among modified files.
- Search Console is not reporting security issues.
- A test payment goes through and correctly changes the [order status](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#order-status).

Other materials on security, backups, and recovery are collected on the section page [Security, backups, and protection](https://opencartcode.com/en/wiki/security).

## Summary

OpenCart security is built on discipline, not on expensive solutions. Start with the items that close the most risks in the least time: delete the `install` folder, rename the admin, turn off error display, put order in users and hosting access, and enable 2FA on hosting and email. Then stop using unlicensed modules, set up daily backups with a copy off the server, and perform the first test restore. After that, your working tool becomes the monthly checklist. If something already looks suspicious, don't clean the site at random: first make a copy of the current state, and then follow the post-breach recovery plan.

## FAQ

**Is installing a security module enough to protect the store?**

No. A module can add a CAPTCHA or login restrictions, but it won't fix weak passwords, unnecessary access, abandoned extensions or missing backups. First go through the basic checklist, and use the module as an addition.

**Is OpenCart 4.1 safer than 3.0?**

4.1 has a better-designed installation process, for example, the admin folder can be renamed directly from the control panel. But an up-to-date and well-maintained 3.0 with vetted modules is quite secure. What matters is the state of the specific store, not the version branch number.

**My hosting says it makes backups. Can I rely on that?**

Only partly. Check how long copies are kept, whether they include the database and files, and whether you can restore a specific day. Also keep your own copy outside this hosting, because if the account is compromised or the provider has problems, its backups may be unavailable.

**How often should I change the admin password?**

Changing it regularly just for the sake of it doesn't help much if the password is long, unique and stored in a password manager. Be sure to change it when an employee or contractor leaves, and whenever you suspect a leak.

**Is it safe to give a developer access to a live store?**

Yes, if you create a separate admin account and separate SFTP access for them, make a backup before the work, and remove this access once it's done. Major changes are better made on a test copy, with only the verified result transferred to the live store.
