NewOffensive AI & LLM penetration testing is now available —Learn more →
xtreme.infosec
Book a call30 min · free · Google Meet
BlogE-commerce security

Ecommerce Website Security Testing: What to Check

What to test in an online store: checkout and pricing logic, coupons, payment gateway callbacks, customer accounts, admin panels, APIs and third-party scripts.

By Xtreme InfoSec Security Team·23 Nov 2026·9 min read

Ecommerce website security testing means checking your online store the way an attacker would: the login and account pages, the cart and checkout, coupons and pricing logic, the payment hand-off, the admin panel, the APIs behind the mobile app and every third-party script that runs on your pages. The goal is to find the ways someone could steal customer data, change prices, skip payment or take over accounts, and fix them before they cost you money or trust.

A generic scanner run will not do this. Most serious e-commerce issues are business logic flaws, such as a coupon that can be applied twice or an order total that can be edited in the request, and only a manual tester who understands how your store works will find them. This guide lists what to check, what PCI DSS and Indian card rules mean for your store, and how to plan a test.

Key takeaways

  • The biggest risks in an online store are in checkout, pricing, coupons, accounts and the admin panel, not just in classic injection bugs.
  • Even if a payment gateway handles card entry, the scripts on your pages and your order logic are still your responsibility.
  • PCI DSS v4.0.1 put a spotlight on payment page scripts; check with your acquirer or gateway which SAQ applies to you.
  • Test the web store, the APIs behind it and the mobile app together, because attackers move between them.
  • Plugins, themes and third-party integrations need the same attention as your own code.
  • Ask for a report with reproducible steps and a retest, so you can prove the fixes work.

Why online stores are attacked

An online store holds exactly what attackers want: customer names, phone numbers, addresses, order history, saved payment references, loyalty points, gift card balances and admin access that can change prices or redirect payouts. It is open to the whole internet and runs promotions that add new logic every few weeks.

Attacks are also easy to monetise. A tampered script on the checkout page can quietly copy card details as customers type them, an attack often called web skimming or formjacking.

Ecommerce website security: what to test, area by area

A sound e-commerce test follows the OWASP Web Security Testing Guide (WSTG) and maps findings to the OWASP Top 10, applied to the way a store actually works.

1. Accounts, login and password reset

Customer accounts are a prime target because they often hold saved addresses, wallet balance and order history. Test for:

  • Brute force and credential stuffing protection on login and OTP screens (rate limits, lockout, bot controls).
  • OTP flaws: OTPs that do not expire, can be reused, are returned in the API response or can be guessed without limit.
  • Password reset links that are predictable, do not expire or can be sent to an attacker-controlled email.
  • Session handling: logout that does not end the session, missing secure cookie flags.

2. Cart, pricing and checkout logic

This is where e-commerce testing differs most from a normal web app test. A tester intercepts the traffic between the browser or app and the server, then changes values the user should not control.

  • Price, quantity and discount values sent from the browser that the server trusts without recalculating.
  • Negative or fractional quantities that reduce the order total.
  • Shipping charges, taxes or COD fees that can be removed by editing the request.
  • Race conditions, such as placing several orders at once to use the same limited stock, wallet balance or one-time offer more than once.
  • Order status changes, for example marking an unpaid order as paid by replaying or editing a callback.

3. Coupons, gift cards, wallets and loyalty points

Promotions are created quickly by marketing teams, often with rules that were never tested against abuse. Check whether coupons can be stacked, reused, applied after the order total changes, or applied to excluded products. Gift card codes should not be guessable. Wallet and loyalty point transfers need the same care as money, because to an attacker they are money.

4. Payment gateway integration

Most Indian stores use a payment gateway with a hosted page, a redirect or an embedded form, so card numbers never touch the store's server. That is good, but the integration still has to be tested:

  • The server must confirm payment status with the gateway (by verifying the signature or calling the gateway's status API), not trust what the browser says.
  • Callback and webhook endpoints must verify signatures and reject replayed or tampered notifications.
  • The amount and order ID confirmed by the gateway must match the order in your database.
  • Refund and cancellation flows must check that the user owns the order and that the refund cannot exceed what was paid.

If you also run a payment product yourself, our page on VAPT for payment gateways covers the deeper checks.

5. Customer data and access control

Broken access control (A01 in the OWASP Top 10 2021) is the most common serious finding in stores. The classic test is to change an order ID, invoice number, address ID or return request ID in a request and see whether you can view or change another customer's data. Check that exports, order search and customer support tools only show data to the people who should see it.

6. Admin panel and seller or vendor portals

The admin panel controls prices, payouts, refunds and customer data, so it deserves the strictest checks. Is it exposed to the internet on a default path? Does it enforce strong passwords and multi-factor authentication? Can a low-privilege staff role or a marketplace seller reach functions meant only for administrators? Can product descriptions or reviews carry stored cross-site scripting that runs when an admin opens them?

7. APIs and the mobile app

Many stores share one backend between the website, the Android and iOS apps and partner integrations. The mobile app's API is often less protected than the website, with older endpoints still live. Test the APIs against the OWASP API Security Top 10 (2023), especially API1 Broken Object Level Authorization and API6 Unrestricted Access to Sensitive Business Flows, which covers things like bulk buying of limited stock. Our API security checklist goes into these in detail.

8. Third-party scripts, plugins and platform configuration

A typical store loads analytics, chat widgets, review tools, A/B testing and marketing tags from many outside domains. Any of them, if compromised, can read what customers type on your pages. Check which scripts run on checkout and account pages, whether they are needed there, and whether a Content Security Policy and Subresource Integrity limit what can load. On WordPress/WooCommerce, Magento, Shopify apps or custom stacks, review outdated plugins and themes (A06 Vulnerable and Outdated Components), debug pages, exposed backups and default settings.

Running a D2C brand, marketplace or retail chain? See how we approach VAPT for e-commerce and retail, covering the store, apps, APIs and admin tools in one engagement.

Common e-commerce vulnerabilities and their business impact

The table below shows issues that come up often in store testing and why they matter to the business, not only to the security team.

VulnerabilityWhere it shows upBusiness impact
Price or total tamperingCart and checkout requestsProducts sold below cost or for free
Coupon reuse or stackingPromotions engineDiscount losses, especially during sales
Unverified payment callbackGateway integrationOrders marked paid without payment
Insecure direct object referenceOrders, invoices, addresses, returnsExposure of customer personal data
Weak OTP or password resetLogin and account recoveryAccount takeover, wallet misuse
Malicious or compromised scriptCheckout and login pagesCard and credential theft (web skimming)
Exposed or weak admin panelStore back officePrice changes, data export, payout fraud
Outdated plugins or themesCMS-based storesKnown exploits used against the whole site

Payment page security, PCI DSS and Indian card rules

If your store accepts card payments, PCI DSS (the Payment Card Industry Data Security Standard) applies to you in some form, even when the gateway does the heavy lifting. Your acquiring bank or payment gateway decides how you validate compliance, usually through a Self-Assessment Questionnaire (SAQ).

PCI DSS v4.0 introduced two requirements aimed directly at web skimming: 6.4.3, which asks for an inventory, authorisation and integrity check of scripts on payment pages, and 11.6.1, which asks for a mechanism to detect unauthorised changes to payment pages. They became mandatory from 31 March 2025. In the v4.0.1 update to SAQ A (for merchants that fully outsource card entry), the PCI Security Standards Council removed these two requirements from the questionnaire but added an eligibility criterion: the merchant must confirm its site is not susceptible to attacks from scripts that could affect its e-commerce systems. In practice, you still need to know and control what runs on your pages. Confirm the current SAQ and its wording with your gateway or a qualified assessor, because interpretations differ.

In India, RBI rules also mean that merchants and most entities in the payment chain must not store actual card data; card-on-file payments use tokenisation through card networks and issuers. If your logs, databases or analytics still capture full card numbers from an old integration, that is a finding in its own right. Check the latest RBI directions that apply to your setup.

Customer personal data is also covered by the Digital Personal Data Protection Act, 2023. A store that leaks order and address data through an access control flaw has a privacy problem as well as a security one. Our DPDP compliance audit page explains how testing fits into that work.

How to plan an ecommerce VAPT

A good e-commerce VAPT (Vulnerability Assessment and Penetration Testing) starts with a clear scope. Before you ask for quotes, list:

  1. Every entry point: the main site, any sub-domains, the Android and iOS apps, the APIs they use, the admin panel, seller or vendor portals and support tools.
  2. User roles: guest, customer, seller, support agent, store manager and administrator, with a test account for each.
  3. Key flows: sign-up, login, search, cart, checkout, each payment method, COD, returns, refunds, coupons, wallet and loyalty.
  4. Integrations: payment gateways, logistics partners, ERP or inventory systems, marketing tools and webhooks.
  5. Environment: a staging setup that mirrors production, with the payment gateway in test mode, so testers can complete real checkouts without real money.

Our guide to a penetration testing scope document walks through this in more depth. Grey-box testing, where testers get accounts for each role and some knowledge of the architecture, usually gives the best coverage for stores, because so many issues depend on comparing what different roles can do.

When to test

Test before launch, after a re-platform or major checkout change, before peak sale seasons, and at least once a year. Our post on how often you should do VAPT gives a practical schedule.

What a good report should give you

Expect each finding with a severity rating (usually CVSS), the affected URL or endpoint, clear reproduction steps, evidence and a specific fix for your platform. Business logic findings should explain the money or data impact in plain words so product and finance teams understand them. After fixes, a retest should confirm each item is closed. For cost planning, the VAPT cost estimator gives an idea based on your scope.

Frequently asked questions

Do I need security testing if I use Shopify or another hosted platform?

The platform secures its own infrastructure, but your apps, custom code, theme scripts, integrations, staff accounts and business rules are your responsibility. Testing focuses on those parts, plus any custom APIs or mobile apps you have built around the store.

Will penetration testing affect my live store?

Testing is best done on a staging copy with the gateway in test mode. If production must be tested, agree on safe hours, avoid load-heavy tests and exclude actions like bulk orders or real refunds. A careful tester will confirm these rules before starting.

Is a vulnerability scan enough for an online store?

No. Scanners help find outdated software and some misconfigurations, but they cannot understand coupons, pricing, order ownership or payment callbacks. Those business logic flaws are where most e-commerce losses come from, and they need manual testing.

Does the payment gateway make my store PCI compliant?

It reduces your scope a lot, but it does not remove it. You still validate compliance with your acquirer or gateway, usually through an SAQ, and you are responsible for the security of the pages and scripts that lead customers to payment.

Should we test the mobile app separately?

Test it in the same engagement if it shares the backend with the website. The app and its APIs often expose different endpoints and weaker checks, so covering both together gives a truer picture. See our mobile application penetration testing service.

Secure your store before the next big sale

Xtreme InfoSec tests online stores the way attackers do: checkout and pricing logic, payment integrations, customer accounts, admin panels, APIs and mobile apps. Every finding is manually verified, every report is OWASP-mapped with step-by-step fixes, and a free retest confirms the fixes. Email contact@xtremeinfosec.com or call +91 98183 63944 for a free quote.

Get an e-commerce VAPT quote

Keep reading

Get started

Get a free quote for your VAPT.

Share your app, scope and deadline. You’ll get a clear plan, a timeline and a fixed quote — we reply within 1 hour.

+91 98183 63944

    Message Us

    Tell us what you need — we’ll reply with clear next steps and a fixed quote.

    Your details stay confidential and are used only to respond to your enquiry.

    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

    Chat on WhatsApp