Online store: attacking checkout as a stranger
Scenario: A mid-sized fashion retailer with a web shop and mobile app, around 40,000 orders a month.
- E-commerce
- 14 days
- Starting point: domain only
Example engagement, illustrative: a composite scenario based on how we test. The organization, domains and findings are fictional.
1
Critical
2
High
4
Medium
2
Low
1
Info
10
Total
7 resolved 2 retesting 1 accepted
Scenario snapshot
- Industry
- E-commerce
- Duration
- 14 days
- Scope
- 1 shop, 9 subdomains
- Findings
- 10
- Starting point
- Domain only
The question: Could someone with no account and no inside knowledge steal money, or customer data, through the shop?
AI-powered, expert-verified
How WhyXpose AI works on this test
Starting from the domain alone, AI agents mapped subdomains and exposed hosts and triaged scanner output. Pentesters tested checkout logic by hand and verified every finding.
- Verified under the Cyber Verification Programs for Anthropic Claude and OpenAI Codex
- Self-hosted open-source AI models
- AI-guided recon
- AI scanning
- AI triage
- Expert verification
- AI-drafted report
The engagement, phase by phase
14 days from kickoff to retest, tracked as one WhyXpose report.
-
PHASE 01 · 1 DAY
Scope
Targets, rules, test accounts only
-
PHASE 02 · 2 DAYS
Recon
Subdomains, tech stack, exposed hosts
-
PHASE 03 · 6 DAYS
Testing
Account, cart, payment, API
-
PHASE 04 · 2 DAYS
Validate
Reproduce, score, evidence
-
PHASE 05 · 1 DAY
Report
Findings and fix guidance
-
PHASE 06 · 2 DAYS
Retest
Verify the fixes
14 days in this scenario, from kickoff to retest.
10 findings, scored with CVSS 3.1
AI triage filtered out false positives, then a pentester reproduced and scored every finding before it was reported. Status shows where each one stood after the retest.
| ID | Severity | CVSS | Finding | After retest |
|---|---|---|---|---|
| SH-01 | Critical | 9.1 | Predictable password-reset token leads to account takeover | Resolved |
| SH-02 | High | 7.5 | Cart price can be changed before payment | Resolved |
| SH-03 | High | 7.1 | Order and invoice details readable by any logged-in user (IDOR) | Resolved |
| SH-04 | Medium | 5.9 | Single-use coupon can be redeemed many times (race condition) | Resolved |
| SH-05 | Medium | 5.3 | Staging subdomain exposes debug information | Resolved |
| SH-06 | Medium | 6.1 | Reflected XSS in product search | Resolved |
| SH-07 | Medium | 5.3 | Login response reveals which emails are registered | Retesting |
| SH-08 | Low | 3.7 | No rate limit on login and OTP requests | Retesting |
| SH-09 | Low | 3.7 | Verbose error messages disclose framework details | Resolved |
| SH-10 | Info | – | HSTS and Content-Security-Policy headers not set | Accepted |
The findings that mattered most
- SH-01 Critical · 9.1
Predictable password-reset token leads to account takeover
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- What we found
- Reset links carried a token built from the user ID and a timestamp. After requesting two resets for our own test accounts, the pattern was clear and any other customer’s token could be calculated.
- Impact
- Any customer account, including saved addresses, order history and stored payment tokens, could be taken over at scale.
- Fix
- Use a long random token from a secure generator, expire it in 15 minutes, and invalidate it after use and on every new request.
- SH-02 High · 7.5
Cart price can be changed before payment
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- What we found
- The checkout request sent the item price from the browser, and the server trusted it. Changing the value in transit lowered the total.
- Impact
- Direct revenue loss, and stock sold below cost with no fraud signal in the logs.
- Fix
- Never accept prices, discounts or totals from the client. Recalculate the cart on the server from the product catalog.
- SH-03 High · 7.1
Order and invoice details readable by any logged-in user (IDOR)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
- What we found
- Order numbers were sequential, and the API checked that a user was logged in, but not that the order belonged to them.
- Impact
- Names, phone numbers, delivery addresses and purchase history of every customer could be harvested in bulk.
- Fix
- Check ownership on every object request, and use unpredictable order references instead of sequential numbers.
How one finding chains into another
The three most serious findings combined into a single path from stranger to stolen data.
-
STEP 01
Find the shop
OSINT and subdomain discovery
-
STEP 02
Enumerate
Email check on the login form
-
STEP 03
Reset token
Predict it and reuse it
-
STEP 04
Account takeover
Any customer account
-
STEP 05
Read orders
IDOR on invoices
How we tested
- OSINT
- Subdomain discovery
- Account and session testing
- Business logic testing
- API authorization
- CVSS 3.1 scoring
New to this approach? Read about black-box penetration testing.
What changed after the retest
All Critical and High findings were fixed and verified in the retest within nine days. Checkout now recalculates every price on the server, password reset uses single-use random tokens, and the retailer asked for a monthly report to keep watching new releases.
Related services
Most attack paths cross more than one target. Test them together under one scope and one report.
Hands-on testing of your web apps for broken access control, injection, session flaws and business-logic abuse.
Every endpoint tested for object and function level authorization, token handling, data exposure and rate limits.
Discover your domains, subdomains and live hosts, then let our pentesters test the assets attackers see first.