Online store security: five attacks and a pre-launch checklist
Most attacks on online stores need no genius. They need an outdated plugin, a password without a second factor, or a checkout page where nobody watches the scripts. The five most common scenarios and what stops each one.
An online store is secure when card data never reaches it in the first place, the admin panel requires a second login factor, the software is up to date and someone has actually restored a backup. Those four things close most real attack scenarios against a small or mid-sized store. Below are the five attacks we see repeated most often, what stops each of them, and a list to check before launch.
Key takeaways
- The most common attacks on stores are a skimming script on the checkout page, logins with stolen passwords, testing stolen cards, a hijacked admin panel and holes in outdated plugins.
- The cheapest way to protect card data is never to hold it: the payment provider renders the card field and your store never sees the number.
- A second login factor on the admin panel, regular updates and a backup that has actually been restored close most of the remaining scenarios.
- Security is planned before the build. Bolted on after launch, it costs more and leaves gaps where nobody looks anymore.
Attackers look for the weakest link, not your brand
Owners of small stores often assume they are too small to be anyone’s target. Most attacks on stores are automated, though. A bot does not pick its victim by name. It picks it by whether the site runs a vulnerable plugin version, or whether the login form allows a thousand attempts a minute.
Size does not protect you from penalties either. The UK data protection authority, the ICO, fined British Airways £20 million over a 2018 breach that exposed data of 429,612 customers, including card numbers with CVV codes. According to the decision, the attacker got in using a contractor employee’s login through a remote access system that did not require a second factor.
A big company, a simple mistake.
1. A skimming script on the checkout page
The attacker adds a few lines of JavaScript to the checkout page that copy the card details as they are typed and send them to a server under the attacker’s control. The order goes through normally. Neither the customer nor the store notices anything. The script gets in through a compromised admin account, a vulnerable plugin, or a third-party library that was modified at its source.
The PCI Security Standards Council, which sets the card security standard, clarified the rules in January 2025 for merchants that use embedded payment forms from a provider. Since 31 March 2025 such a merchant has to confirm that its site is not susceptible to script attacks that could affect its eCommerce systems.
What stops it: a card field rendered by the payment provider in its own frame or a redirect to its hosted page, an inventory of every script loaded on the checkout page, and security headers that block scripts from unknown origins.
2. Logins with passwords from other people’s breaches
People reuse passwords. When some forum’s user database leaks, bots try the same username and password pairs across thousands of stores. OWASP describes this as credential stuffing: mass login attempts to check whether stolen credentials work elsewhere. A successful login hands over a customer account, saved addresses and order history.
What stops it: a cap on login attempts per address, detection of automated traffic, and a notice to the customer when someone logs in from a new device.
3. Testing stolen cards
A fraudster holds a list of thousands of card numbers and does not know which ones still work. They find out by placing small orders in stores with a simple checkout. OWASP calls this carding: repeated payment authorisation attempts to verify stolen card data in bulk.
For the store it ends in a wave of declined transactions, chargebacks and questions from the payment provider. At worst the provider freezes the account, and the store stops taking payments in the middle of peak season.
What stops it: 3-D Secure on the provider’s side, limits on payment attempts per session and per card, and bot protection on the checkout form.
4. A hijacked admin panel
The admin panel is the key to everything: orders, customer data, prices and page content. The most common way in is plain phishing, an email posing as the payment provider or a courier that asks an employee to log in on a fake page.
A second login factor shuts this scenario down almost entirely.
What else stops it: a separate account for every person instead of one shared login, permissions that match the role (customer service does not need payment settings), and removing accounts of people who have left.
5. A hole in an outdated plugin
Stores on popular plugin-based platforms usually run dozens of add-ons from different authors. Each one is code nobody in the company has read. When a vulnerability in a popular plugin goes public, bots start scanning for stores running that version within days, sometimes hours.
What stops it: as little third-party code as possible, updates shipped on a regular schedule rather than once a year during a rebuild, and a test after every update so a security patch does not break the checkout. When add-ons start dragging a store down, it is time to read about the signs you have outgrown your platform.
Pre-launch checklist
We run through this list before every launch. You can do it yourself, or hand it to your developer and ask for evidence next to every item.
- Payments: the card number goes into the provider’s field or onto its page, never into a store form.
- Admin panel: a second factor on every account, one account per person, permissions by role.
- Scripts: an inventory of every script on the checkout page, and headers that block unknown sources.
- Customer logins: attempt limits and bot protection on forms.
- Updates: a named owner and a schedule, with a checkout test after each one.
- Backups: automatic, stored off the store’s server, and restored as a test at least once.
- Keys and service passwords: kept in environment variables or a vault, never in the code.
- Monitoring: an alert when the store goes down or starts returning errors.
Rule of thumb: if the honest answer to any item is “probably”, treat it as not done.
If a breach happens anyway
No store can guarantee nothing will happen. It does have duties when something does. Article 33 of the GDPR requires you to report a personal data breach to your supervisory authority within 72 hours of becoming aware of it, unless it is unlikely to put people at risk. Seventy-two hours goes fast if that is when you start finding out who has access to the logs. Decide the response plan before launch: who decides, who reports, where the information comes from.
Security starts in the plan, not after launch
On our projects the security plan is part of the delivery plan, written before the first line of code: who can access what, where personal data lives, how it is encrypted, how long it is kept and who sees the logs. Card data stays with the payment provider. After launch we update, monitor and back up the store as part of ongoing care. We do not promise an unbreakable store, because there is no such thing. We promise that the list above is ticked off before the store takes its first order. For what else we check before launch, read how to build an online store in 30 days.
FAQ
Does a small store have to comply with PCI DSS?
Anyone who accepts card payments falls under PCI DSS, but how much work that means depends on how you take payments. A store where the card number goes into the provider’s field or onto its hosted page fills in the shortest self-assessment questionnaire. Your payment provider tells you which one applies.
Is an SSL certificate enough to make a store secure?
No. A certificate encrypts the connection between the browser and the server. It does nothing against a skimming script on the checkout page, a stolen admin password or a hole in a plugin.
How often should a store be updated?
Ship security patches as soon as possible after they are released, and everything else on a steady rhythm, for example monthly. What matters more than frequency is that one named person owns it and tests the checkout after every change.
Journal
Co-founder of Seedlight · eCommerce platforms, AI, SEO and GEO
Newsletter
The Journal, straight to your inbox
New articles and lessons from real builds, every now and then. No spam, unsubscribe with one click.