Top
Best
New

Posted by scanr 5 hours ago

Credit card skimming scripts using WebRTC found on popular shopping sites(www.infohawk.com)
307 points | 162 comments
jszymborski 4 hours ago|
People like to get sanctimonious about blocking ads, but this is one of the many good reasons why I'll never feel bad about it.
hibikir 1 hour ago||
This has been a standard cybersecurity stance for decades. I have had corporate laptops where the ad block came included precisely because of this risk.
halJordan 41 minutes ago||
It's just another example of how the powers that be recognize a harm exists and protect themselves and their buddies, but expect you and me to shoulder the harm without complaint
allthetime 30 minutes ago|||
Who does? They are uninformed and not worth taking seriously. Sketchy ad servers are the number one vector for malware on the browser.
godwinson__4-8 1 hour ago|||
Ads are just one particular case of the problem.

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.

hathawsh 1 hour ago|||
You find AI more trustworthy than JS? JS isn't perfect, but at least it's deterministic.
mathplebe 42 minutes ago|||
Banks removed AI too so there you go. I use Claude code a lot but I noticed the remote control kind of cross-device capability by default creeps me out. My Claude on browser can suddenly control Claude code on my Mac, and thereby all its files?
criley2 37 minutes ago||
Your browser Claude can only get access to all of your Mac files if you practice the shockingly bad pattern of giving an agent access to all of your files on your personal computer.

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...

godwinson__4-8 1 hour ago|||
I find JS my AI writes more trustworthy than JS someone else (likely also an AI at this point) writes.

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.

hathawsh 1 hour ago||
We should expect some AI companies to have misaligned incentives also. Your AI might not inject malware, but someone else's might.

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.

godwinson__4-8 32 minutes ago||
Yes. Fundamentally the wars of the future will be about AI alignment. Obviously, if you could have AI aligned to you it is desirable. As such, like any resource, control of it will be contested and will be an object and an agent of conflict.

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.

radlad 1 hour ago||||
Not sure I understand the connection between Javascript, AI and APIs. I've found Javascript SPAs often have the best APIs.
philipallstar 42 minutes ago|||
> We need legislation to enforce API only access to any public website.

This is the most parochial and regulation-brained statement I've ever seen.

godwinson__4-8 9 minutes ago||
Would you care to elaborate as to engender actual discussion or is a drive by rebuke the best you can manage?

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.

jlifjlwiejril 1 hour ago|||
[dead]
techjamie 4 hours ago|||
It amazes me that ad companies are allowed to let anyone with a few dollars shove arbitrary JavaScript/assets down the throats of the wider internet. Not only that, but the operators are financially incentivized to allow malvertising to continue operating because they're amazing repeat customers.
amluto 4 hours ago|||
It amazes me that site operators are willing to include ad networks in a way that gives them code execution.
cowlevel 3 hours ago||
There is no other way. Ad buyers don't trust you, so they run their own invisible captchas to verify the ad is displayed in a real browser.

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.

amluto 2 hours ago|||
> There is no other way.

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.

vladms 50 minutes ago||
Isn't someone liable today? Not sure why shifting liability around solves much.

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?

struant 2 hours ago||||
We could just go the source of the problem and ban advertising completely.
Refreeze5224 1 hour ago||
The fact that the surveillance-based targeting of individuals to influence behavior, enabled by cutting edge psychological persuasion techniques developed intentionally by psychologists, and deployed on a global scale, is considered completely benign and even defended by many on this site, is disgusting.

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.

AlexandrB 3 hours ago|||
The problem is there's no liability for doing so. If the arbitrary JavaScript would make the ad company liable for tens of thousands in damages per user there would be a lot of innovation around making ad delivery safe.
dpkirchner 3 hours ago|||
The advertising company should be ultimately responsible, however the ad network and especially the site showing the ads needs to face repercussions as well. Until we start prosecuting publishers for hosting malware the ad blocker will stay up.
wat10000 2 hours ago||
The side showing the ads should be fully responsible. It’s their site, after all. If they want to pin the blame on someone else then they can sue to recover damages afterwards, but that should be a separate issue. Ford doesn’t get to say “oh, our faulty brakes were made by Bosch, go after them, we have no responsibility.” Why should web sites be any different?
dpkirchner 2 minutes ago|||
As far as making the user whole, I agree that the site should be responsible. However, criminal charges should be spread throughout due to the fraud or damage.
derektank 2 hours ago||||
The website owners are more similar to dealerships in this analogy I think, and (I could be wrong) but I don’t think dealerships are held liable if cars they’ve sold are faulty.
sam1714 59 minutes ago|||
The seller of a good generally is liable in the US. It's due to common law in torts. The traditional reference is the Second Restatement of Torts, section 402A which says

> One who sells any product in a defective condition unreasonably dangerous to the user or consumer or to his property is subject to liability for physical harm thereby caused to the ultimate user or consumer, or to his property, if

> (a) the seller is engaged in the business of selling such a product, and

> (b) it is expected to and does reach the user or consumer without substantial change in the condition in which it is sold.

Some states have laws that exclude the seller if the manufacturer can be sued [1], but note exceptions of manufacturer bankrupt or can't be reached.

[1] https://law.justia.com/codes/tennessee/title-29/chapter-28/s...

consp 2 hours ago||||
Don't know about the US, but here the dealer is liable for the sales price. If it's faulty beyond reasonably fixable you get your original money back from them and they can deal with the manufacturer about damages. Criminal negligence in case of faulty equipment causing damages is on the manufacturer though.
wat10000 2 hours ago|||
If you go to a shopping site and you buy something and it’s defective, that’s like a dealership selling you a faulty car. If you go to a shopping site and the site itself is defective and defrauds you, that’s more like a dealership having a crooked salesperson who rips you off. The dealership would be responsible for that.
staplers 2 hours ago|||
"Privatize profits, socialize losses" will remain modus operandi for business until the justice system enforces sensible consequences.
BobbyTables2 2 hours ago||||
Sure seems like in any other context, there would be liability.

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?

ModernTimes 2 hours ago|||
Google Adsense is completely infested with malware ads, and they refuse to provide tools so website publishers can prevent the scams.

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.

WarmWash 1 hour ago|||
Ironically this is only true for people who use privacy tools (or have a penchant for clicking on scammy ads).

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.

plasticchris 2 hours ago|||
It’s been this way for decades. They used to tell you the ethical or legal way “doesn’t scale” when you would challenge it.
consp 2 hours ago||
Prison sentences also don't scale well, maybe that is a solution. Or an exponential fine increase on repeat offenders. Also doesn't scale well for them.
eddythompson80 3 hours ago|||
I do feel some of the sanctimony is warranted because saying you block ads for security of privacy reasons, to me, is like saying you put a no solicitations sign in your front because you’re worried about potential intruders or robbers . It’s possible that some robbers might pretend to be solicitors to learn more about the place and what not, but ultimately the sign is there to stop annoying people who are trying to sell you some bs from wasting your time.

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.

jszymborski 3 hours ago|||
If door-to-door sales people were disproportionately committing crimes that would be a good analogy, but it's just not the case.

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).

eddythompson80 3 hours ago||
I guarantee you it won't. Actual malware (though I guess the disagreement might be on how we define malware) served through known ad networks that have been included in uBlock Origin's default ad block lists happens, but is rare. It can hardly be described as "disproportionately committing crimes".

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.

pavel_lishin 2 hours ago||
It's not just malware - it's also flagrantly scammy ads, banners that pretend to be download buttons, etc.

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.

eddythompson80 2 hours ago||
I think you're replying to the wrong comment?
hysan 3 hours ago||||
Unrealistic in today’s world. I ran noscript by default and did exactly as you described from 2007(?) to around 2013. I eventually gave up because those js scripts grew faster than you could manage. Sites also caught on and would chunk required js into js that is meant primarily for serving third party ads. Those ads don’t load, those js chunks would fail and content won’t load. Sure I stopped reading some sites because of that but this practice spread to the point where the internet became unusable. What you say sounds doable but isn’t in practice.
eddythompson80 3 hours ago||
I do it. It's not unrealistic or even really that bothersome. You just have to be willing to walk away from a page that asks you to load 40 scrips from 17 different domains to read an article. Worst case scenario, you drop down to "just ad blocking" in a glassbreak type scenairo but at least you're aware that this random page pinged 17 different domains and loaded 40 scripts. It's an extra click or 2 on ublock origin (if you must have it)
hysan 20 minutes ago||
I think you may have missed my point. It’s unrealistic in the sense that if you value your own time, most people are just going to default to adblocking. You’d have to be more technical than the average user and be willing to trade off a lot of time to build up that kind of curated blocklist. Your counterpoint is an unrealistic critique of the parent comment.
trashcan_man 3 hours ago||||
That's two very different tiers of threats. Blocking JS is the equivalent of bricking up all your windows, blocking ads is closing the blinds so somebody is less likely to hit you from the bushes. There are plenty of legitimate threat mitigations by blocking ads beyond the cosmetic improvements.

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.

rsync 1 hour ago||||
There is no sanctimony.

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.

eddythompson80 1 hour ago||
There is something that describes this "No serious person is .." type argument, but it's escaping me.
stavros 29 minutes ago||
It's a well-known fallacy, actually named after this very phrase: It's called "No True Serious Person".
wat10000 2 hours ago||||
Signs get ignored. Ad blockers actually block things without their cooperation. It’s more like a locked gate which keeps out both bad guys (sometimes) and salespeople. Which is something people frequently do.
JoshTriplett 1 hour ago|||
> Signs get ignored.

In many jurisdictions, it is illegal to do so, and companies whose door-to-door salespeople do that can get fined. Report them.

eddythompson80 1 hour ago|||
If it's a gate, it's a gate to keep your dog in the yard with a pull tab to let the UPS guys in.
thaumasiotes 3 hours ago|||
> If you’re actual concern is security or privacy, then block all JS

Fun fact: Google will no longer let you search if you have javascript off.

eddythompson80 3 hours ago|||
Not strictly speaking true. You can search fine blocking all 3P (i.e: non www.google.com) scripts.

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.

cowlevel 3 hours ago|||
Fun fact: a SearX-NG proxy server works around this
jeremyjh 3 hours ago||
[flagged]
elmer2 3 hours ago||
Lol. Ads essentially pay the salaries of most people in the tech industry.
jszymborski 3 hours ago|||
That doesn't mean that it's ethical or in any way OK.
pluralmonad 3 hours ago||||
Only if you perceive little beyond FAANG.
eddythompson80 3 hours ago|||
The downstream effects of the biggest tech businesses being primarily Ad driven are significant for almost everybody in the tech industry though. If Ad revenue was to be removed from the equation, the tech industry would shrink by a significant amount (don't wanna pull a random percentage out of thin air, but ads alone are hundreds of billions of yearly revenue for tech) and the overall income and salaries for everyone involved will have to be readjusted throughout the whole industry.

You can see it on this forum where there is little to non-existent push back on ad blocking or explaining how annoying and awful ads are from a UX prospective or even as a security or privacy concern (those are views as personal preferences/skill issues) vs. the push back when you mention how online ads are a moral or ethical problem. Compare ads to gambling or extortion or racketeering or some other obvious (and similar) moral issue and people here would come out of the woodwork to argue the minor minutia of why the analogy doesn't follow and how some people might find ads desirable actually.

pixl97 2 hours ago||
>the tech industry would shrink by a significant amount

OMG we must feed babies into the orphan crushing machine, there is no other way!

This isn't oppression Olympics, I don't care how bad other industries are, this one fails on its own merits.

eddythompson80 2 hours ago||
What's with the hyperbole? No one is disagreeing with you in this reply chain
elmer2 3 hours ago|||
There are around 5.8 million tech roles in the us. 2 million are faang.

This accounts for a large portion of the tech industry.

I also find it funny that if ads went away, people like you would complain when everything goes up by 3x and it's unaffordable.

Ads are the main reason people without money can still use many of the same services as the people that can afford to pay it.

rescripting 2 hours ago|||
Where did you get the "2 million are faang" number?

Amazon employs 1.5M people, but a fraction of those are tech roles; its mostly operations and fulfillment (warehouse). Lumping all Apple employees in there you get all the retail store employees.

A more realistic estimate is probably about 750k corporate roles across FAANG. Subtract non-tech positions (HR, Finance, etc) and its significantly less.

fg137 1 hour ago||
This.

The kind of ignorance explains why some people here think the FAANG way of doing things is the absolute standard for the entire industry. They cannot imagine companies that don't have ridiculous profit margins coming from ads or those that have real customer service provided by humans.

lostlogin 2 hours ago|||
> Ads are the main reason people without money can still use many of the same services as the people that can afford to pay it.

I thought techbros were libertarian but are they actually socialist?

forgetfreeman 3 hours ago||||
You make a pretty compelling case for dismantling the bulk of the tech industry.
NBJack 2 hours ago||
And accomplish...what? What would you like that outcome to be? An agrarian society perhaps?
forgetfreeman 2 hours ago|||
Desired outcomes in no particular order:

- Dismantlement of the global digital panopticon

- Major economic improvements as local retail and localish manufacturing are possible again

- Revitalization of journalism with all the knock on effects to politics and business that come with that

- Elimination of ~138M tons of CO2 production annually

- Broad improvement to mental health in the general population and especially in children

jonahx 2 hours ago||
I'm with you on a lot of this, but:

> Major economic improvements as local retail and localish manufacturing are possible again

To be fair this just means a lot of goods go up in price. The amazonification of everything worked because it's cheaper and more convenient, and people actually want that. Whereas digital panopticon people don't want, though they also seem not to care enough or understand enough to fight it. I think people do want mental health improvements, though that one is a mixed bag because everyone is also a phone addict.

forgetfreeman 1 hour ago||
"To be fair this just means a lot of goods go up in price"

They're already that expensive, the costs have just been externalized to some combination of foreign workers and future generations. As to what people want, I want to down half a fifth of tequila and go set my neighbor's rose bushes on fire simply for the novelty of the experience. People want all kinds of dumb shit, and can be made to want even more dumb shit so indulgence doesn't seem like a broadly sensible strategy. While we're cramming levers under idols here's another wild notion: consumerism is nothing more than engineered wealth transfer and folks would be broadly better off if they didn't buy a bunch of stuff to begin with.

jonahx 50 minutes ago|||
> while we're cramming levers under idols here's another wild notion: consumerism is nothing more than engineered wealth transfer and folks would be broadly better off if they didn't buy a bunch of stuff to begin with.

no doubt. but i don't see how you stop it without crushing personal freedom. people like things that are bad for them, and in most cases other people can profit off those bad decisions. and then (via advertising or other means) whip up even more bad decisions to profit more. smart regulation has a place. still, i'd prefer to err on the side of being able to do what i want.

godwinson__4-8 52 minutes ago|||
Go ahead and do those things then. The consequences for you would not be so different than if you actually had to live out your "back to the land" style fantasies. I doubt you're cut out for it or would be happier. If you were, you'd have already made the sacrifice. Everyone wants to be rich. You apparently want to be poor. It's an easy trade to make then, why haven't you done it? Perhaps you want to pick and choose what is deemed a luxury?

Labeling consumerism as the ill is simply lazy. There are no paradises in the past. The world has always been brutal and people have always acted accordingly. People had less mental health problems in the past because they had less free time to complain. Life has always been nasty, brutish and short. Human capacity for idols is one of the few domains of respite - one of our own making. To remove our idols is to take away our humanity. Its a marketplace of idols. Take your pick. But don't confuse yourself - you are not immune from this human disease. You quite obviously suffer under your own idols, and frankly, I find your own far less salubrious.

But to each their own. Your path is easily taken if you truly believe in it. Have at it.

3form 2 hours ago||||
Pardon me if I'm too young to remember, but I am fairly certain we didn't run an agrarian society before JS-based internet ads.
doodlebugging 2 hours ago|||
Years ago when I was a kid there was no internet. We did have ads in newspapers, magazines, on television and radio, and no matter which way you to tried to go to avoid them, billboards along the highway. I remember this quick poem from one of our nation's best poets - Song of the Open Road by Ogden Nash. [0]

[0]https://www.poetryverse.com/ogden-nash-poems/song-open-road

Elimination of the advertising industry wouldn't take anyone back to an agrarian society and if it did it would still be a much better situation than the current situation where my football games are punctuated by gambling ads, by ads for pharmaceuticals that few will ever need, repetitious ads from local vendors about "going out of business sales" that never seem to see any end to their business though I'm sure most would agree with me that it is way past time. When I was a kid it was cigarettes, beer, geritol, aspirin or cough syrup and other stuff I also didn't need.

The industry has become so corrupt that they have no issues at all with offering premium services that are ad-free as long as you watch ads before the event begins. I sincerely hope everyone involved in marketing and advertising and lobbying rots here on earth before they have an opportunity to rot in hell. It would be nice to know that they got their just desserts.

whoanoway 31 minutes ago|||
[dead]
afavour 5 hours ago||
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.

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.

sufianrhazi 2 hours ago||
Also, WebRTC is really hard to inspect even with devtools. Chrome DevTools just doesn't surface WebRTC connections or data transfer at all. There's just chrome://webrtc-internals/ and chrome://webrtc-logs/ which are very hard to use.
pimterry 1 hour ago|||
HTTP Toolkit can do it! https://httptoolkit.com/

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

edoceo 4 hours ago|||
Would CSP mitigate this?
deathanatos 4 hours ago||
From TFA:

> 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`.)

TazeTSchnitzel 4 hours ago||
The article says that can only block the part of the WebRTC setup process that requires an HTTP request, though? So I wonder if it is possible for a WebRTC request to be set up with no external HTTP request at all.
K0nserv 3 hours ago||
I think it might. With a cooperating peer on an internet-routable IP address using ICE-lite you can use a static answer and it should still be possible for ICE to establish.

Haven't tried but in theory it should work.

You can apparently block WebRTC with `Content-Security-Policy: webrtc 'block'`

fidotron 4 hours ago||
I do think it's fair to say if you were inventing WebRTC today the entire P2P and STUN/TURN aspect of it would need to go. (mdns also seems like a technology from a more naive time).

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.

cowlevel 3 hours ago||
No, you still need P2P for reasonably efficient video chat. Your options are P2P or millions of dollars and god knows the internet doesn't need more centralisation.
fidotron 3 hours ago||
The moment you have more than two participants in a video chat it makes sense to use a relay node to reduce the bandwidth needed at each node. (See https://github.com/atomirex/umbrella <- shameless pre AI code).

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).

cowlevel 3 hours ago||
Video chat is always more than 2 people is it
mjochim 2 hours ago||
It really isn't. I frequently do 1 on 1 video calls with someone.
snickerer 2 hours ago||
One basic design no-go of the www is to allow strangers to run random code on your computer. It is just not acceptable. Servers should deliver just data and my browser decides what to do with it. A shop should deliver lists of items and prizes and my shop browser decides how to operate with the catalogue in a way I want. Everying else is nuts.
IgorPartola 2 hours ago||
How would you handle items with customization such as custom engravings? This would be both simple customizations as well as things requiring a full graphic or 3d editor? Previews of your items? How avoid discounts based on item combinations that are store-specific? Is your browser smart enough to do complex searches and filters for things like photo gear where some values have ranges? What will your browser do for builders such as putting together kits of equipment or supplies that may or may not all go together?

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?

Groxx 1 hour ago|||
With an exception for thing-editors that are not built into the browser (but could be, e.g. text is built in), all of those are rather easily covered by "the server sends that information". E.g. add something to your cart -> that loads the next page which has updated discount availability.

They weren't saying websites should be completely static, just maybe they shouldn't run attacker-controlled code.

ebertucc 1 hour ago|||
An optimistic path I see is LLMs making browsers smart enough to whip up personalized, ad hoc UIs for everything you suggest while every server becomes a glorified data provider as per the GP comment.

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.

streetfighter64 41 minutes ago||
> allow strangers to run random code on your computer

> 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.

__MatrixMan__ 4 hours ago||
It's crazy that we have had asymmetric cryptography since the 70s and we're still using symmetric secrets for payment.

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.

pcthrowaway 1 hour ago||
> It's crazy that we have had asymmetric cryptography since the 70s and we're still using symmetric secrets for payments

This is one of the actual things cryptocurrency payments get right (ignoring other problems)

TheRealPomax 4 hours ago|||
I don't know about your banks, but if I use my credit card to pay for something online, I have to entire an MFA code before that payment goes through.
vladms 38 minutes ago|||
I do to (Europe based) and would have hoped it's the only possibility, but it seems that some transactions can still go through without that. I found out when I noticed some ~5 euro suspect transactions, called the bank, they said "oh, yeah, this was without MFA (me: what?! can we you do that) will send you another card". So watch-out, just because you get asked a code for some transactions it doesn't mean it would appear for all.
geetee 4 hours ago||||
I can count on one hand the times I've had to do any extra step like this
xnorswap 4 hours ago|||
It seems completely standard in the UK, at least with the banks I've used, anything that looks expensive or out of the ordinary flags it for an MFA check. That can be of different forms, some use "Confirm in <app>", some use TOTP codes.
michaelt 3 hours ago||
All UK banks implement the mechanism, but the confirm-in-app signals and risk thresholds seem to be at each bank's discretion.
TazeTSchnitzel 4 hours ago||||
It's a legal requirement in the EU specifically (PSD2 Strong Customer Authentication). Alas, it is not in the US.
bonzini 3 hours ago||||
Even ignoring bank-issued credit cards, PayPal does it in the EU even for small payments.
brewdad 3 hours ago|||
I have only ever had to do it while making an online purchase from overseas with my US card, like museum tickets while on vacation.

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.

SoftTalker 2 hours ago||||
Not common or really done at all in the USA from what I've seen.
SkiFire13 57 minutes ago|||
Merchants don't even bother enabling it for USA issued cards because it's more risky.

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.

Groxx 1 hour ago|||
As a USAian: I would much prefer to have this, but I've literally never seen it. Purchases either work with just a CVV or they fail for invisible reasons and basically nothing works around it when that happens so you just use PayPal instead.
ranger_danger 4 hours ago||||
Credit cards in the US are stuck in the past. NFC/MFA/PIN are not required (in a legal sense) at all, and every bank handles things slightly differently. Chip+PIN is rare compared to other countries. Traditional bank apps here also do not support direct NFC payments like they do in Europe, and many banks still rely on insecure SMS-based 2FA.
zeroonetwothree 4 hours ago||
We have zero liability for customers for fraud so no one cares that much.
techjamie 4 hours ago|||
That's part of why I don't typically use a debit card. A bad transaction on a debit card can still be your problem and take some doing to fight. If I get defrauded on my credit card, a chargeback is a click away, and Mastercard will make the money the vendor's problem to work out.

Fortunately I've never been defrauded, but my dad was once via his debit and it was a pain.

CookieCrisp 3 hours ago||
They make it look one click away, but, the one time I had to use it with a Discover card I had to do a lot of legwork to get it refunded and it took nearly three months. If I hadn't been so annoyed at the fraud I would have just eaten it
__MatrixMan__ 3 hours ago|||
We pay for this with higher prices, which the merchant uses to pay the various payment gatekeepers, which is why those gatekeepers don't care to prevent the fraud. They also recoup the cost of fraud by aggregating data on our spending habits into various data products (inevitably used by scammers), and by making deals with people who want to shut payments off for people they don't like (e.g. this happened to wikileaks).

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.

thaumasiotes 3 hours ago|||
I have had that happen (two relevant banks: Bank of America / Capital One), but it's very rare. The normal case is that you put in your card information and you're done.

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.

SoftTalker 2 hours ago|||
THe ideal amount of fraud is not zero. The rates of fraud are evidently managable/acceptable by the major payment processors, or else they would change their methods.
__MatrixMan__ 59 minutes ago|||
Sure, ideal for the payment processors. What's the ideal amount of fraud for the consumer?
SoftTalker 41 minutes ago|||
Whatever amount is worth dealing with to have a smooth and easy online purchasing experience, since a fraud-free one would have more friction.

That varies by individual of course but we're talking about consumers as a group here.

mrguyorama 26 minutes ago||||
Not zero.

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.

Hackbraten 38 minutes ago|||
Fraud prevention, like most things, becomes subject to diminishing returns at a point.

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.

eli 1 hour ago|||
Of course they are. They mostly make the merchants eat it.
tialaramex 4 hours ago|||
One important thing to understand about payment cards in particular is the distinction between "Settlement" and "Authorisation"

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.

cowlevel 3 hours ago|||
We have asymmetric-key payment systems. Google Pay, Apple Pay, physical credit cards... notice one thing in common. They're hard to use and not available in all scenarios.
kenferry 2 hours ago||
Do you mean hard to use for the merchant? I use Apple Pay whenever possible, and it’s easier than entering credit card details.
forgetfreeman 3 hours ago||
Is that the crazy part here? Global annual losses from online fraud and cybercrime is north of a trillion USD, or if you prefer the GDP of Saudi Arabia. What seems in need of justification is the broad availability of electronic funds transfers.
__MatrixMan__ 1 hour ago|||
Yeah I think there's quite a lot of craziness to go around. It's dumb on so many levels. To zoom out a bit further, It's also crazy that I can get a business loan for some endeavor that would hurt somebody, and then take the money from that loan, and expect that person to value that money--fungibility obfuscates moral hazards and makes us work against our own interests, and I'd love to do away with it also.

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)

thaumasiotes 3 hours ago|||
> What seems in need of justification is the broad availability of electronic funds transfers.

Well, that's trivial. They make it easier to transact.

forgetfreeman 2 hours ago||
It's trivial only and solely if you are so hopelessly inured to that level of weaponized convenience that you're literally incapable of conceiving of an alternative. For those of us that still remember how to balance a checkbook the juice has not proven worth the squeeze.
kevsamuel 57 minutes ago||
I don't see what this has anything to do with Web RTC, a normal ajax requests would have worked if the server define CORS, and even without, you can push a POST form button cross domains anyway.

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.

miniwark 4 hours ago||
I did not understand all: How did this land on the affected websites in the first place ?
thinkling 4 hours ago||
It appears to vary. The table early in the article lists a few paths used on different e-commerce sites:

- “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.

moi2388 4 hours ago|||
Ad tracking pixel provider. Their solution was compromised
dboreham 3 hours ago||
To make more money, the site owner allowed mystery-meat code to be loaded onto their payment page. Normally that code is effectively sandboxed, but the attacker figured out how to evade the sandboxing. The attacker only had to pay (via an intermediary) to get their payload onto the page.
robin_reala 4 hours ago||
If you work on / run an e-com site and you don’t have an enthusiastically locked down CSP in place, this is your very next project.
theturtletalks 3 hours ago||
I’m building an e-commerce SaaS and was originally going to have an App Store model like Shopify. But with agents, I don’t think SaaS need this anymore. You are trusting your store and business to these 3rd party apps that can switch hands and add malware.

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.

kragen 2 hours ago||
I was surprised to learn recently that browsers support iframe attributes to prevent almost all of the possible ways an iframe can exfiltrate information—navigating the iframe, navigating the top frame, loading images, loading scripts, using Fetch or XHR, etc.—but not WebRTC. In this case, though, it looks like the ads had lots of exfiltration avenues available, so I wonder why they went to the extra trouble of using WebRTC?
ebertucc 1 hour ago|
From afavour's comment[0]:

> 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

nout 3 hours ago|
This is where architecturally credit cards are bad for online (and even meatlife) purchases. If the same "numbers" can be used again for another purchase, then skimming is just bound to happen. There are ways to mitigate with one time use cards, but generally this just works better with Bitcoin. E.g. when I'm paying at the Square terminals and use bitcoin, they can't "store" my information to pay again. Or when I'm buying stuff online, it's also only generating code/invoice for that specific purchase.
adellsworth 3 hours ago||
Where does "meatlife" come from? is it the replacement of "IRL"? IRL was benign (yet a bit of a misnomer — the web is real), whereas meatlife categorizes things more cleanly though more crudely. I've never heard it before and was wondering: are there other trends of denigrating "oldspeak" web terms to raw, visceral descriptors?
grandfunction 3 hours ago||
I don't recognise "meat-life" myself, but we were definitely using "meat space" in the late 1990s. Same meaning as IRL, but used more often IRL :-)
Terr_ 1 hour ago|||
My vague sense of when to use one or the other:

* "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."

nout 1 hour ago|||
I think I meant to use meat space, but I was too sleep deprived from children to remember the right lingo.
francescovv 2 hours ago||
My bank forces a yes/no confirmation in the app (with merchant name and euro amount) for each transaction.

Not the greatest UX (can't pay with a card on a plane for example), but this does entirely solve skimming problem.

More comments...