An unofficial, read-only Hacker News reader. Join the beta →

Credit card skimming scripts using WebRTC found on popular shopping sites (opens external site)

337 points by scanr 6 hours ago | www.infohawk.com | 182 comments on HN

Comments (161)

  1. WebRTC is wild
    Replies (1)
    1. WebRTC is just the exfiltration mechanism. The attack could have used a JSON/AJAX call, or even an img tag.
      Replies (1)
      1. Or DNS lookups.
  2. And another case of a tracking pixel or a third party ad/tracker injecting malicious code.
  3. 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.

    Replies (3)
    1. Would CSP mitigate this?
      Replies (1)
      1. 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`.)

        Replies (1)
        1. 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.
          Replies (1)
          1. 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'`

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

      Replies (1)
      1. 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.
        Replies (1)
        1. 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).

          Replies (1)
          1. Video chat is always more than 2 people is it
            Replies (1)
            1. It really isn't. I frequently do 1 on 1 video calls with someone.
    3. 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.
      Replies (1)
      1. 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

  4. > This form of attack appears to target mobile devices, and we only saw the server enable the skimmer on checkout pages, so desktop checks and homepage scans would likely not see it

    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)
    1. IMO likely simply that automated testing runs on desktop browsers far more often. Plus dev tools is way more accessible on desktop. If you hide it there the devs working on the site are much less likely to notice.
    2. Less likely to have ad-blockers would be my guess.
    3. Ironically the same reason businesses keep pushing you to go mobile and download the app, please: Far harder for users to audit, far less likely for users to have content blockers in place.
      Replies (1)
      1. This has never felt right to me. Being required to use a new opaque app for every little thing, and take my time to enter a bunch of (often the same set of) data by hand on an awful keyboard, so they can harvest it and try to find a way to monetize it... always seemed utterly absurd.

        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.

  5. 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.
  6. I've never liked those in-page credit card forms, and always preferred redirects to payment-provider hosted pages.

    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)
    1. I never loved those pages (typically from some middle men not my actual provider) because they usually looked like crap web sites bad guys would knock together, suspicious DNS names, poor site design, vague wording - it was like somebody attended a conference talk which said "High quality does not mean it's legitimate" and their take away was "Do a terrible job and that will seem authentic somehow".

      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)
      1. > because they usually looked like crap web sites bad guys would knock together, suspicious DNS names, poor site design, vague wording - it was like somebody attended a conference talk which said "High quality does not mean it's legitimate" and their take away was "Do a terrible job and that will seem authentic somehow".

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

  7. I did not understand all: How did this land on the affected websites in the first place ?
    Replies (3)
    1. Ad tracking pixel provider. Their solution was compromised
    2. 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.

    3. 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.
  8. 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.
    Replies (6)
    1. 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.
      Replies (2)
      1. It amazes me that site operators are willing to include ad networks in a way that gives them code execution.
        Replies (1)
        1. 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.

          Replies (2)
          1. > 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.

            Replies (1)
            1. 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?

          2. We could just go the source of the problem and ban advertising completely.
            Replies (1)
            1. 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.

      2. 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.
        Replies (2)
        1. 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.
          Replies (1)
          1. 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?
            Replies (3)
            1. 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.

              Continue this thread (3 replies) →

            2. "Privatize profits, socialize losses" will remain modus operandi for business until the justice system enforces sensible consequences.
            3. 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.
        2. 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?

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

      Replies (6)
      1. 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.

      2. 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.
        Replies (1)
        1. 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)
          Replies (1)
          1. 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.
      3. > 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.

        Replies (2)
        1. Fun fact: a SearX-NG proxy server works around this
        2. 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.

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

        Replies (1)
        1. 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.

          Replies (1)
          1. 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.

            Replies (1)
            1. I think you're replying to the wrong comment?

              Continue this thread (1 replies) →

      5. 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.
        Replies (2)
        1. > 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.

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

        Replies (1)
        1. There is something that describes this "No serious person is .." type argument, but it's escaping me.
          Replies (1)
          1. It's a well-known fallacy, actually named after this very phrase: It's called "No True Serious Person".
    3. 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.

      Replies (2)
      1. 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.
        Replies (1)
        1. 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.
      2. 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.

    4. 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.
      Replies (1)
      1. 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
    5. 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.

      Replies (3)
      1. Not sure I understand the connection between Javascript, AI and APIs. I've found Javascript SPAs often have the best APIs.
      2. You find AI more trustworthy than JS? JS isn't perfect, but at least it's deterministic.
        Replies (2)
        1. 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.

          Replies (1)
          1. 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.

            Replies (1)
            1. 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.

        2. 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?
          Replies (1)
          1. 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...

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

        Replies (1)
        1. 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.

    6. Who does? They are uninformed and not worth taking seriously. Sketchy ad servers are the number one vector for malware on the browser.
      Replies (2)
      1. “Blocking ads is theft, how else are they going to monetize their content?” is argument I’ve seen a few times. Not sure who’s pushing it but it does seem to be gaining some traction.
        Replies (1)
        1. Note the second half of that argument doesn't need the first half. You can understand that ads are keeping your favorite service afloat without believing that blocking them amounts into theft.
      2. Plenty of folks arguing exactly this on HN all the time, some are even in this thread.
  9. 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.

    Replies (7)
    1. 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.
      Replies (6)
      1. 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.
        Replies (1)
        1. We have zero liability for customers for fraud so no one cares that much.
          Replies (3)
          1. 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.

            Replies (2)
            1. 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
            2. The dispute process is actually exactly the same for both credit and debit cards, and both enjoy very comparable legal protections.
          2. 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.

            Replies (1)
            1. US card not present fraud is around 23 basis points (0.23%) [1]. Compare that to credit card cash-back rewards at 1-2%.

              [1] https://www.kansascityfed.org/research/payments-system-resea...

          3. Your card issuer actually cares a lot, since they end up paying for fraud on 3DS or stolen card transactions (which are vastly more likely without cards having a PIN).

            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.

      2. I can count on one hand the times I've had to do any extra step like this
        Replies (4)
        1. 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.
          Replies (1)
          1. All UK banks implement the mechanism, but the confirm-in-app signals and risk thresholds seem to be at each bank's discretion.
        2. It's a legal requirement in the EU specifically (PSD2 Strong Customer Authentication). Alas, it is not in the US.
        3. Even ignoring bank-issued credit cards, PayPal does it in the EU even for small payments.
        4. 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.

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

      4. Not common or really done at all in the USA from what I've seen.
        Replies (2)
        1. 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.
          Replies (1)
          1. US issuers largely just can't be bothered to do it. They'd apparently rather take the hit on lost transactions or fraud they are liable for than do something as drastic as sending an OTP to their cardholders (and make them reach for a competitor's card next time)... Same reason PINs on credit cards are not a thing in the US.

            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.

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

      5. 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.
        Replies (1)
        1. 3DS admits a frictionless flow if the bank considers the risk to be low. Merchants can also request exemptions for low value transactions, but there's a limit to how often that can skip the MFA.
      6. Not here in Canada, i probably been asked the "3d secure" phone code about 4 times total.
    2. 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.

      Replies (1)
      1. You mean cardholder authentication, not authorization. Authorization in the cards space means checking with the card issuer if the card has sufficient funds, but the cardholder identity is usually not verified here (except if maybe a PIN is entered, but even that can happen at a different stage). Even magnetic stripe cards have been commonly authorized online decades before EMV became a thing.

        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.

    3. 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.
      Replies (2)
      1. > What seems in need of justification is the broad availability of electronic funds transfers.

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

        Replies (1)
        1. 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.
      2. 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)

    4. 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.
      Replies (1)
      1. Do you mean hard to use for the merchant? I use Apple Pay whenever possible, and it’s easier than entering credit card details.
        Replies (1)
        1. From my own experience Apple Pay is hard to use for all transactions that are recurring. I haven’t looked deeply into it to determine whether it’s my bank or Apple Pay itself, but basically all recurring transactions I set up with Apple Pay start to be declined long before the actual expiration of the card. Monthly subscriptions seem to be better, but yearly subscriptions are terrible: I’ve never had a merchant successfully process my subscription renewal during the second year if I’m using Apple Pay.
    5. 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.
      Replies (3)
      1. Of course they are. They mostly make the merchants eat it.
      2. Sure, ideal for the payment processors. What's the ideal amount of fraud for the consumer?
        Replies (4)
        1. Whatever amount is worth dealing with to have a smooth and easy online purchasing experience, since a fraud-free one would have more friction (edit to add: and likely higher fees/costs).

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

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

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

        4. Probably not zero (as that would require strong cardholder authentication for every single payment and probably even more drastic measures), but much less than is occurring in the US today.
      3. A seemingly elegant justification for the status quo, but I don't think it's actually true. (I do think that the ideal amount of fraud is greater than zero, but it's probably much lower than current numbers too.)

        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.

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

    7. We're not even using symmetric secrets, we're using globally scoped bearer tokens of very, very questionable entropy. "Publics", really.

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

  10. Sadly the web is unusable without ad blockers, in terms of usability, accessibility, and clearly security as well. Things that make content blocking harder (iOS locking down the browser engine, manifest v3, cloudflare turnstile, etc) are often just punishing users.
  11. I'm honestly stumped. I checked the homepage of InfoHawk, and see a one-shot prompt to Claude landing page. Then I googled InfoHawk, and see they raised $2.25 million. Impressive.

    I really want to redesign their landing page.

    Replies (1)
    1. I thought it's crazy that the "Build and Backed by People from..." section seems so stacked with lots of top tech companies, or maybe it's just a hallucination from their AI? Idk Lmao.
      Replies (1)
      1. I thought the same, but on their about page, their bios say they've worked for Meta/Google, so maybe it's true.
  12. That's why you redirect to an authorised payment service provider instead.
  13. Google and Mozilla were still busy high-fiving each other after removing the TLS "lock" icon from their browsers to notice that WebRTC could be an attack vector.

    Why would those features need to be enabled in an e-commerce checkout cart?

    Replies (1)
    1. This has nothing to do with WebRTC or TLS lock icons
  14. 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.
    Replies (2)
    1. 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?
      Replies (1)
      1. 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 :-)
        Replies (2)
        1. I think I meant to use meat space, but I was too sleep deprived from children to remember the right lingo.
        2. 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."

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

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

  16. But with 3ds in place, what can they actually do with these skimmed credit cards?
  17. Isn’t iframe isolation supposed to solve this? Oh wait, isolation.

    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?

  18. This is horrifying. The file paths seem to suggest someone is still using ColdFusion.

    I kid because I loathe.

  19. apple pay and similar payment/auth methods should be immune to this, no?
  20. 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.
    Replies (3)
    1. 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?

      Replies (2)
      1. 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.

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

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

    3. This wouldn't change the fact that the site owner gets to decide which code runs on their site, whether in your browser or on their backend. In a counterfactual world in which Javascript never became a thing, I'm sure there'd now be all kinds of horribly sketchy server-side plugins causing very similar types of problems.

      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.

  21. It's amazing to me that we as society have become disdainful of anyone that doesn't automatically execute computer programs sent by unknown arbitrary third parties from random domain names.

    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.

  22. These are all obscure sites, misleading title
  23. 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?
    Replies (1)
    1. 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

  24. LoL
  25. 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.

  26. this is why Chrome & MS Edge wallet (and password manager) worries me. the autofill injects into the UI, where skimmers & malware can steal. And they work without user-interaction

21 comments are not loaded here. Read them on Hacker News ↗.