跳到正文
DEV Community· Eric Culus·· 1 小時前AI 評分63

黑色星期五 2026:遭竊工作階段與信用卡測試攻擊波及小型網店

Black Friday 2026: stolen sessions and card testing hit small storefronts

AI 導讀

FortiGuard Labs 的假日威脅報告所述攻擊手法,也適用於有登入及收款功能的小型應用程式,包括遭竊工作階段、憑證填充和信用卡測試。報告記錄逾 24,000 個新註冊假日購物網域,當中逾 4,400 個被列為惡意;另在 2026 年 8 至 10 月收集約 172 萬筆與七個主要電商平台相關的 infostealer 紀錄。

正文

On 24 November 2026, Fortinet's FortiGuard Labs published its holiday season threat report. It counted more than 24,000 newly registered holiday shopping domains and classified more than 4,400 of them as malicious. It collected about 1.72 million infostealer log entries tied to seven major e-commerce platforms between August and October 2026, about 1.49 million of them for Amazon. And it found one seller advertising access to more than 1,000 OpenCart storefronts, claiming buyers could inject JavaScript into them. Fortinet notes that if the access were genuine, a buyer could use it to install payment-skimming code.

None of that is about Supabase, Next.js or the app you built in Lovable last month. The OpenCart access is a PHP shop problem and the domain numbers are a shopper problem. What does carry over is the playbook, because it doesn't care what the storefront is built with.

Does this reach your app?

If your app has a login and takes money, yes, in three ways.

Stolen sessions. Infostealer logs hold saved passwords and session cookies. A valid session cookie skips your login form, your password rules and often your 2FA. Fortinet's advice to retailers is to "ensure response teams can quickly revoke compromised sessions." Ask yourself honestly: if a customer tells you someone else is in their account, can you force every one of their sessions out right now, without a deploy? With Supabase Auth or Clerk the primitive exists. In a lot of generated apps nobody has wired it to a button or written down how to do it.

Credential stuffing. Fortinet also tells retailers to monitor for failed-login bursts. Leaked passwords get replayed against every login form attackers can find, and a fresh app with no rate limit on its sign-in route is an easy target. Hosted auth providers throttle their own endpoints, but a custom /api/login route or a server action that wraps sign-in often has no limit at all.

Card testing. The same report flags card-testing patterns. Stolen card numbers get checked with small charges against any checkout that will create a payment without friction. The classic vibe-coded version is a public route that creates a Stripe PaymentIntent or Checkout Session for whoever calls it, as often as they like. You find out when your dashboard fills with declined charges and your payment provider starts asking questions.

What to check today

The one thing: put a rate limit on the routes that sign users in and create payments. Find them first by searching the repo for paymentIntents.create, checkout.sessions.create and signInWithPassword, including supabase/functions.

For each hit, check three things. The amount comes from your database, never from the request body. The route requires a signed-in user, or a bot check if guests can pay. And there is a limit per IP and per account, in middleware, at your edge (Vercel or Cloudflare firewall rules both work), or in the function itself. Our page on apps with no rate limits walks through the options.

If you have more time, two more from Fortinet's list translate cleanly. "Restrict internet-facing administrative access": an /admin page that hides itself in React but calls an API anyone can reach is not restricted. Check that the server checks the role. And "alert on unexpected changes to checkout scripts": if you load payment or analytics scripts on your checkout page, know which ones. A Content-Security-Policy with an explicit script-src on that page is the cheapest way to make an injected script fail loudly instead of quietly copying cards.

If you use hosted Stripe Checkout or a payment link, the card form isn't on your page, which removes the skimming risk for that form. It doesn't remove card testing against the route that creates the session.

Sources

First published on RescueMySites.

來源:DEV Community · dev.to