Credit card skimming scripts using WebRTC found on popular shopping sites (opens external site)
Comments (161)
21 comments are not loaded here. Read them on Hacker News ↗.
On iPhone or iPad, use Share → Add to Home Screen.
21 comments are not loaded here. Read them on Hacker News ↗.
Replies (1)
Replies (1)
No reason this approach couldn’t be taken with simple HTTP requests. If you’re embedding third party scripts on your site you’re always vulnerable.
Replies (3)
Replies (1)
> On every page that takes payment, set a connect-src rule that lists only the hosts you use.
(Though you should really be setting a default-src that only lists `self`.)
Replies (1)
Replies (1)
Haven't tried but in theory it should work.
You can apparently block WebRTC with `Content-Security-Policy: webrtc 'block'`
The MoQ people are annoying, but in one respect they are right, and that is that having browsers have channels of communication outside of the usually expected HTTP is a recipe for trouble.
Replies (1)
Replies (1)
P2P does things like exposes both participants IP straight to the other which are not desirable in the modern world. (Also the amount of networking metadata generated during connection negotiation is terrifying).
Once you're over those then the entire P2P side of the API looks like an anti feature. (But I am strongly in the camp of believing we need better unreliable network protocol support within HTTP channels).
Replies (1)
Replies (1)
Replies (1)
Some background and screenshots here: https://httptoolkit.com/blog/decentralized-web-webrtc-debugg.... I'm the author.
When you launch an intercepted Chromium there, it injects a browser extension which hooks webrtc and redirects all connections through a MITM for debugging & rewriting. Only works with bare chromium not chrome nowadays, as Chrome looks down extension setup far more tightly unfortunately (for quite good reasons, but mildly inconvenient for dev).
All open source, backend is also usable standalone: https://github.com/httptoolkit/mockrtc
Finally, the millennial habit of making certain purchase from a desktop computer only pays off.
I am actually curious why this specifically targets small screens though. Are mobile browsers more likely to allow the WebRTC connection? Or is this just to bypass vendor testing.
Replies (3)
Replies (1)
Every time I have to do it, it's under protest, and it gets increasingly irritating with time. My partner is tired of hearing me complain about it but I can't help myself.
I'm guessing conversion is higher when there is no redirect flow, so the sales team won the battle with the security teams?
Replies (1)
For months (years?) now when I buy something on a web site the payment process tickles the bank's app on my phone and I have to confirm the purchase in that app, so you can't meaningfully "steal" or "skim" that step. The app was designed by somebody who has apparently at least skim read a book about UX, and I rarely scream and want to throw my phone at a wall while using it unlike those old web sites.
If I'm buying a $10 Christmas bauble on MyFunXmasGifts.present or whatever stupid URL and then my phone wants a confirmation for a $50 UberEats transaction, that's a "No" and you just got yourself flagged for attempted fraud.
I wonder how many people this works for though.
Replies (1)
Totally agree! I love me some 'www4.argot4.pci-barclays.com' .. not !
But it was more feeling it was still better than the alternative overall.
(While we're ranting: my bank's OTP page has tiny, crap fonts and badly sized inputs. It's inexplicable and I shake my head every time. Probably the same idiots who did the payment pages! They're an amazing bank in every other regard, so I don't think they have much control over it - probably it's VISA or something.)
Replies (3)
- “Altered Quorum* marketing pixel”
- “Edited Seers† cookie-banner setting”
- “Altered file on Revolve's own CDN”
The former two might be blocked by an ad blocker or JS blocker; the latter sounds trickier when the script comes from the vendor’s own compromised site.
Replies (6)
Replies (2)
Replies (1)
You can declare that your own site is only going to run static image ads but then you lock yourself out of all ad marketplaces, which require arbitrary JavaScript, so how are you going to actually get ads.
Replies (2)
Of course there is. It’s called sandboxing.
This would be solved by an extremely straightforward regulation. I would propose:
If a website operator grants another company the ability to modify their website, they are liable for any effects of such a grant of control as though they had done it themselves. Additionally, to the extent that any law, regulation or contract requires a website operator to maintain confidentiality or privacy of user data, granting a third party the ability to violate the requirement is deemed violated even if the third party did not exercise that ability.
So, for example, a healthcare company that includes an ad script violates HIPPA if the provider is not itself HIPPA compliant regardless of whether the ad script read any data. If your chatbot said they would not train on your data but they included an unprotected ad script, then they presumptively sold your data and trained on it.
Grant some small defense if the side operator credibly attempted to ensure security.
Replies (1)
And how about fixing the actual credit card system directly? There are some banking systems (ex: IDEAL - now I think rebranded as Wero - in the Netherlands) that just ask for authentication with a trusted device when you want to do a transaction, so there is no problem from people knowing your card number. The idea that in 2026 there is a "security code" written on a card is mind-boggling. Would you recommend writing your password on the monitor?
Replies (1)
I don't care if your business model is untenable if you don't use ads. You can join the rest of the economy and charge money for your product or service, instead of relying on exploitation to peddle likely worthless junk, if it has so little value that no one will pay for it otherwise.
"But I like targeted ads, how else would people find stuff?" This is where ad defenders usually act like their manipulative surveillance is somehow similar to a print ad in a newspaper. If your product actually has value to people, then they will find you, the same way they have throughout the history of markets.
Replies (2)
Replies (1)
Replies (3)
Continue this thread (3 replies) →
We just never moved past the 1980s mindset of computers being mysterious black boxes.
Imagine if pharmaceutical companies knowingly purchased ingredients from suppliers that were known to randomly include toxic materials in their product.
Would we hold everyone in the chain completely blameless?
If you’re actual concern is security or privacy, then block all JS, especially 3P JS but even 1P too, and allow it only as needed. If you use ublock origin, it’s very straight forward to do and manager per domain.
Replies (6)
They each have a place, but to compare blocking ads to a "no solicitations sign" is inaccurate. We'll reserve that for the DNT header field.
Replies (1)
Replies (1)
Fun fact: Google will no longer let you search if you have javascript off.
Replies (2)
However, even if, sure. You might allow (or need or want) google.com domain to run JS, but that doesn't mean all the world wide web gets the same escalation of privileges. That sounds insane to me.
We all have our threat models, but I can guarantee you that simply installing uBlock Origin on a non-technical persons' PC will go much, much further than install an anti-virus towards securing their PC.
And FWIW I do use NoScript to block all third party scripts (and I used to block first party scripts).
Replies (1)
Again, if you don't do some create redefining of "committing crimes" as "well, they noted down the profile of the person who answered the door, a quick survey of everything they could see and hear in the house, conducted a quick psychological assessment on the personality of the person answering and determined that they are more likely to buy a toilet plunger in the next 2 months" and that's a crime.
Replies (1)
I don't particularly care what people think of me blocking ads. To me, it's morally equivalent to putting on my headphones and not making eye contact with the Salvation Army Santa ring-a-dinging his bell.
Replies (1)
Continue this thread (1 replies) →
Replies (2)
In many jurisdictions, it is illegal to do so, and companies whose door-to-door salespeople do that can get fined. Report them.
No serious person is sanctimonious about ad blockers.
In your analogy, I put the sign in front of my house because fuck you, that’s why.
Same with my web browser.
Replies (1)
Replies (1)
Therefore Google Adsense is indistinguishable from a malware company, even if they didn't set out to be.
I don't understand why these people are not in prison.
Replies (2)
Replies (1)
At auction it's only the sleeziest bidders who bid on blank profiles.
This is why when you turn off ad-block to "see what it's like" it's all the worst stuff. Nobody wants to pay to show you their ad, they already know you don't look at ads.
Google doesn't care much either because they too know you don't do ads. So they'll take the $0.00001 and not worry much about how the internet looks for people using ad block anyway.
Replies (1)
Sites everywhere are fat with JavaScript doing all sorts of unnecessary things. Why trust anyone's JavaScript at all?
Everything should be API first and ship with a JavaScript less default. Your local AI agent who you engineer your trust model around builds any desired runtime scripting for you at runtime, dynamically the first time and iteratively tuned to you thereafter. For many sites you won't care and will accept defaults or a buddy's template.
We need legislation to enforce API only access to any public website. Any public frontend must be rebuildable with data from a public API.
The problem with AI is the incentives of people shoving JavaScript in your face (or useless exposition when trying to divine a Thanksgiving recipe vs the ease of AI mode, for instance) undermine the promise of the entire AI technology - every frontend for every person can be entirely unique and yet entirely coherent. No gatekeepers. Instead of ads send a microtransaction if need be to every API, or the government can subsidize.
Focusing on ads is missing the point. The real issue is your client running scripts you did not explicitly ask or delegate it to. The entire Internet is adversarial in this way, not because of ads but because people expect access and no one wants to pay for anything. People who block ads simply contribute to this problem, they don't offer a solution.
AI offers a way out. AI belongs to all of us given its broad corpus. Let it be the client and leave government or some regulated utility as little more than the clearing house.
Replies (3)
Replies (2)
Why this would be controversial I don't know. It would iterate on results. AI is fairly reliable for simple tasks at this point. Most front ends fall well within this category. The problem with software is the misaligned incentives, not AI hallucinations. When it comes to prompt injection attacks, that will have to be engineered around, just as the browser already engineers around a whole suite of dangers before any JavaScript ever runs.
But we have to get to the point first where the adversarial incentives are eliminated. The fundamental tension is not technical at all, but political - no one wants to pay for anything, rent seeking behaviors are encouraged. Everyone wants ease and expects someone else to pay the cost. Meanwhile a handful of people whose behavior resembles that of sociopaths horde wealth derived from the commons.
Instead of a 2028 backlash that seeks to demonize AI the correct answer would be changing the economic model so that rather than becoming an even more insidious ad delivery mechanism it ends the prevailing model entirely, which is not desirable to begin with anyway.
Replies (1)
I can see what you're saying. I think you're saying that not only is it ridiculous that companies allow ad providers to modify their page in arbitrary ways, it's wrong that we ever got into this situation by making JS so powerful. Yeah, I'm with you there. I just don't think that asking everyone to figure out how to solve this on their own (using AI) is a viable solution.
Replies (1)
As they say, war is politics by other means.
As to your last point, I disagree. I see more and more layman programming by another name with how they interact with AI. So much of the difficulty of software is artificial. So many apps are simply contrived and difficult for no good reason than obvious cost mitigation and other anti/dark patterns and bad incentives. I think if the average consumer could essentially craft their own internet merely by developing a felicity with their own personal AI agent they would be a lot happier. But corporations would be a lot poorer. Society would be on the whole more egalitarian. So yes, this is sort of predicated on the expectation these agents must eventually be ripped from private hands and owned by humanity writ large. That's where the politics (and the wars over who gets to decide who "humanity" is) comes back in.
It's always been this way. The coming conflict is inevitable. Man is a political animal. Everything old is new again. To get to Nirvana you must first suffer the Earth.
Thanks for the back and forth. Have a good day.
Replies (1)
Agents in the cloud only, coordinated from anywhere.
It's not dangerous to have agents with full access to an ondemand VM. Well, it's much less dangerous...
This is the most parochial and regulation-brained statement I've ever seen.
Replies (1)
Not even a very convincing insult. "Most parochial" seems an odd word choice for such a sweeping proposal. Perhaps you mean to imply I really am so small minded. There is some great obvious consequence looming which I have not foreseen?
Seems ungenerous of you to not elaborate. The contents of your mind are so vast, mine so small? Care to make a point then? Or is expressing comfort in your own voluminousness your only purpose here? Perhaps you will even find we have cause to agree, if you could but manage to lower yourself to what must be the great indignity of having to actually explain the great intricacies of your mind to such a counterpart as I. Give it a try though? Let's see if you can manage it.
Replies (2)
Replies (1)
I suspect that the people who could change this are more interested in continued treatment than cure. They like being the arbiters of which transactions get reversed. It let's them justify their otherwise parasitic position.
Replies (7)
Replies (6)
Replies (1)
Replies (3)
Fortunately I've never been defrauded, but my dad was once via his debit and it was a pain.
Replies (2)
I'd prefer to have good tools for preventing fraud, and then take on the liability. This whole subscription-model economy isn't exactly working out. We just end up with consequences that are hard to see.
Replies (1)
[1] https://www.kansascityfed.org/research/payments-system-resea...
However, they care even more about not losing your business to their competitors not implementing any safety measures, so they also don't. It's a classic race to the bottom.
Replies (4)
Replies (1)
One time, I couldn’t receive the 2FA code, so had to try a different card until I didn’t need such a code. Two of the other three times I can recall, the entire transaction was declined before I received the code. One I was able to try again after submitting the code. The other time I simply abandoned the transaction.
Long ago, I had payment denied for an in-person transaction, after which my card was locked for any purpose, and I had to make a phone call to Bank of America to (1) process the original transaction and (2) unlock my card. The in-person transaction was in China, which I guess freaked out their system.
But having done that once, I never had a problem in China again. I opened the Capital One account mainly so that I could use it in China ("no foreign transaction fee", though in fact the foreign transaction fee is a very reliable 1%), and it didn't even raise an objection the first time like BofA did.
Replies (2)
Replies (1)
This is a typical problem that can probably only be solved by regulator intervention, since the game theory really might make not supporting 3DS challenges the optimal move. The stick of the 3DS liability shift was apparently not painful enough.
https://stripe.com/blog/surprising-findings-from-our-analysi...
> Our analysis suggests that issuers in the US perceived transactions requesting 3DS to be particularly high-risk, often declining these transactions more aggressively rather than putting US users through an unfamiliar 3DS challenge flow.
Replies (1)
Settlement is the process by which Bank A with your money, or possibly your debt if it's a credit card, gives money to Bank B representing a merchant where ostensibly you paid with the payment card.
Settlement is basically still the same "Honour System" process as it was last century, it's probably no longer literally magnetic tapes or punched cards, but cryptography has no real role here. Because this relies on that Honour System, mere accidents can result in transactions which should not exist. At a societal level e.g. a big bank mistakenly runs MAIN1 MAIN2 MAIN2 MAIN4 files through their settlement process one night, and the next morning people whose transactions were in MAIN2 realise they've been charged twice! Meanwhile retailers relying on MAIN3 being processed are distraught to find that magically they got nothing. Oops, fat finger. e.g.
https://www.bbc.co.uk/news/uk-england-45400234 https://www.bbc.co.uk/news/business-41061781
Authorization is the step where there's something resembling modern security. This step is there to protect Banks and Merchants from Customers, who they don't trust as far as they could throw you. Although Banks and Merchants are so often involved in fraud, they both love blaming Customers and so hence they require Authorization. The EMV technology (most familiar as "Chip and PIN" but the same technology makes Contactless including paying with your iPhone work in most countries) is the most "high tech" this ever got.
EMV could be fairly good. It's not really well designed, crypto people have found some serious holes in it, but they're at the scale of "Skilled people could break this" or "This is needlessly worse than it should be" not at the "A bored teenager can steal your money" level where the magnetic stripes were. However, the bank cares a lot about price, a best-in-class EMV card might cost $1 more, if it reduces the bank's fraud costs by 50 cents they are losing money on that, so the crap EMV card they gave you is the right choice for their bottom line even if you also lose on average $2.50 from the fraud, the bank doesn't care about you, your benefit does not appear on their bottom line.
Understanding, as so often, Cui Bono (who benefits) from Authorization clarifies where the incentives are.
Replies (1)
Also, the idea that "better EMV cards yield better security" is outdated by at least a decade and was only really relevant before ubiquitous online transaction authorization (at which point both "cheap" and "expensive" EMV cards can be verified for being clones). These days, essentially all cards support asymmetric cryptography, i.e. are the "expensive type of card", and are secure against clones even when the terminal is offline (assuming the issuer even wants to support that type of transaction, since it involves some risk to them).
The main difference is whether they support a PIN or whether a signature is sufficient, but that's mainly driven by market considerations, not individual issuers' fraud tradeoffs.
Replies (2)
Well, that's trivial. They make it easier to transact.
Replies (1)
But whether or not we agree about how we might restructure the bigger picture, at some point somebody has to say yes or no to a candidate transaction, somebody whose answer makes it a real transaction. It seems very obvious to me that:
1. that person should be a party to the transaction, not a middle man
2. The secret they use to do so should not leave their device. (A modern credit card is a device, complete with an OS and a secure enclave for keys)
Replies (1)
Replies (1)
Replies (3)
Replies (4)
That varies by individual of course but we're talking about consumers as a group here.
The consumer is who pays the price no matter what, so the sweet spot that is ideal for the provider is likely ideal for the consumer too.
The only possible way to get zero fraud is to have zero transactions. Anything else requires you accept some probability of fraud, and then it's just luck of the draw whether you allow a fraudulent transaction or not.
I think it's rather a collective action problem: If all issuers were to make card payments just a little bit more secure (and in the process less convenient too), consumers would have no choice but adapt. But since it's in each issuer's individual interest to keep that dial just a liiitle bit more to the "convenient but insecure" position than their competitors, the only equilibrium ends up being everybody approving as much fraud as they can accept. A very similar consideration applies on the merchant side.
Unregulated markets do often produce optimal solutions, but that doesn't mean that literally every solution they produce is also optimal.
This is one of the actual things cryptocurrency payments get right (ignoring other problems)
> I suspect that the people who could change this are more interested in continued treatment than cure.
There is no cabal. It's game theory all the way down: Whoever unilaterally trades off some convenience for a little bit of security will lose out to their competitors.
Regulators could fix it by mandating security (and thereby keeping the playing field level), in the way that e.g. the EU largely solved this problem (at least for intra-EU payments; unfortunately compromised EU cards can still be readily used at US online merchants), but I have a feeling that in the US, there isn't really appetite for that.
I really want to redesign their landing page.
Replies (1)
Replies (1)
Why would those features need to be enabled in an e-commerce checkout cart?
Replies (1)
Replies (2)
Replies (1)
Replies (2)
* "IRL" is to describe a separate process, like an "IRL purchase at the store", distinct from an online purchase.
* "Meat-space" when it's a combined process and you need to distinguish between phases which occur in different contexts, like "this API call causes X to happen in meat-space."
Not the greatest UX (can't pay with a card on a plane for example), but this does entirely solve skimming problem.
Shopify tightened its App Store and even made it harder to install custom apps because of this very issue. My solution is to just ship an agent with each SaaS and it can ask it to add any feature. Maybe my App Store will just be skill files you feed to your agent.
I nominally put a lot of trust in KVM to isolate guests, but if we can’t isolate web contexts from one another, what hope can we have for whole simulated CPUs?
I kid because I loathe.
Replies (3)
Like yes designing a generalized shopping experience is possible. It is also going to limit the long tail of features OR become such a huge and bloated spec that it will make things way worse. Imagine Temu but for all the shops.
Besides, doesn’t your browser and OS come from some third party? How much do you trust them to be bug and backdoor free? Or do you have your own browser and OS that you know for sure can do all this and you have verified?
Replies (2)
You'd still have to trust the hardware, OS, browser, and now an LLM too, but that threat model could be preferable to running arbitrary (especially 3rd party) Javascript.
They weren't saying websites should be completely static, just maybe they shouldn't run attacker-controlled code.
> deliver just data and my browser decides what to do with it
Code is data and your browser decides to execute it. A toy example, but HTML+CSS is Turing complete. The problem thus isn't that it's "code", but rather that it's not properly sandboxed.
> my shop browser decides how to operate with the catalogue in a way I want
Are you making a case for built-in components for e.g. sorting and filtering and what have you? To me that's just way more clunky than having an actual programming language. Even PDF, a static document format with no real user interaction, has a programming language (PostScript) embedded.
So in my view, the problem with JS isn't the features of the language itself, rather that the standard library has too much power, to make requests and access your microphone and stuff like that.
But even then, people want to use their computer to do video calls, and whatnot. And I for one much prefer using Zoom or Teams or such in the web app, instead of downloading the app version. Precisely because the web app is more tightly sandboxed.
In both worlds, the problem is who a site owner decides to grant access to your shopping session, not the fact that access can be granted at all. Or how would you ban them from e.g. insecurely transmitting your card data to their payment service processor on their backend? You just wouldn't see it.
20 years ago everyone knew not to open and execute any program sent to you by someone you don't know. Or even someone you do. Now this wisdom has been lost and even flipped on it's head.
Replies (1)
> Worth noting that this isn’t really anything to do with the technical capabilities of WebRTC, it’s just that it’s less frequently monitored for nefarious behavior. Same reason they’re only targeting mobile devices: harder to detect.
[0]:https://news.ycombinator.com/item?id=50668592
Unless the site just forgot to add Web RTC in their connect-src CSP?
In which case it's not about WebRTC, it's about the site owner not securing their website.