惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
G
Google Developers Blog
小众软件
小众软件
V
V2EX
月光博客
月光博客
腾讯CDC
aimingoo的专栏
aimingoo的专栏
J
Java Code Geeks
Y
Y Combinator Blog
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 【当耐特】
D
Docker
M
MIT News - Artificial intelligence
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
I
InfoQ
MongoDB | Blog
MongoDB | Blog
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I wanted to understand Payments better ... and learned ab...
Dayana Mick · 2026-05-11 · via DEV Community

I started following up on my challenge of learning more about how payments in Web2 work: I set up my account, my sandbox, and a simple checkout flow. I went through the flow once, and it
worked. What pulled me to this project was a desire to learn more about payments, since they are everywhere — but I also wanted to know which data was transmitted where and what implications
this had for privacy.

I started looking at the requests in this flow: 521 requests visible in the network tab of the developer tools, and 129 hCaptcha requests. I didn't know what hCaptcha requests were, so I asked Claude, and that is how I found out. hCaptcha is a mechanism that Stripe uses to detect fraud. It sends events like when you move the mouse or interact with a field, to analyze whether your patterns are human or potentially fraudulent.

I started looking at each request individually, but pretty soon I got bored. I couldn't imagine sitting for hour, that I don't have, examining each request at a time, So I asked Claude again whether something could be done to get information on the request patterns themselves and the data flowing between them. That is how I learned about HAR files. I am guilty of not knowing what they were until today, even having spent considerable time in engineering.

I downloaded myHAR file, and one of the first things I saw was the plain-text credit card number with CVC and expiration date. Of course, this was only a sandbox environment with Stripe's test credit card number, but I wondered how it could make me vulnerable in a real-life scenario. I felt uneasy when I saw this and also a bit scared: was this for real?

The file is local and would only cause issues if shared. As I learned, HAR files are often used to debug performance and other issues, such as authentication. You can even use them to set up
end-to-end tests with Playwright, to record the flow and requests that should be tested. Very useful — but also unsettling to see credentials in plain text: I started imagining catastrophic scenarios, just to come back to earth and think that I was probably exaggerating. I wondered if there had already
been an incident involving these files. And it turns out that in fact, yes, there was one, and a pretty serious one. In 2023, there was an Okta incident in which an employee signed into their personal Google account and stored HAR files for
debugging there. The account was compromised, and the attacker could access the HAR files and impersonate users from affected customer companies through the captured session data. So my catastrophic thinking was not that far away from reality.

Back to payments: Following Stripe's architecture, which is optimized for security, my server does not see the payment information. TLS encrypts the card data in transit, so no one intercepting the network can
read it — but the HAR file captures what the browser saw before encryption happens. Afterwards, these values get tokenized, making them useless if compromised. The real number only ever lives
in Stripe's vault. What surprised me is that the HAR file exists precisely in the window between typing the card values and Stripe tokenizing them, and can capture those values in plain text.
Tokenization doesn't eliminate the attack surface — it reduces it to a single call over TLS (Transport Layer Security).

Another interesting aspect of this architecture is that my server does not see the payment details at all: it creates a session, hands the user to Stripe's hosted page, and waits. That's why
it never sees the card. This makes it more secure, but it also means I have no visibility. If your payment success rate drops from 95% to 87% overnight, your server logs show nothing. All you
see is fewer users reaching your success page. You don't know if users are abandoning at the card form, if cards are being declined, if Stripe's fraud detection is blocking legitimate users,
or if there's a performance issue on Stripe's hosted page. All of that happens inside the session, on Stripe's infrastructure, invisible to you. To get that visibility back, you need Stripe's
dashboard, Stripe's analytics, and Stripe's support. You are dependent on their tooling to understand your own checkout.

I came to this project wanting to look at what PII data was being sent along with requests, and in doing so stumbled upon the HAR file: a debugging file that many developers don't think twice
about, but that can become a liability. Throughout this process, I used AI, not to write the text or define the angle, but to help me see patterns across 521 requests, which also helped me find context on how HAR files can be accessed and misused. I also found more about Stripe's architecture and one of the tradeoffs it makes.

What shifted for me during this finding was: First, the realization that I didn't know anything about these HAR files, then I wondered for how long they have existed, and how people were probably sharing them through Slack, JIRA tickets, handling them without so much care until this incident happened. And now I am also wondering what other small files, processes, or artifacts are sitting there without much consideration that could also be a surface for an attack?

Sources & Resources