Credit card skimming scripts using WebRTC found on popular shopping sites (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Replies (3)
Like yes designing a generalized shopping experience is possible. It is also going to limit the long tail of features OR become such a huge and bloated spec that it will make things way worse. Imagine Temu but for all the shops.
Besides, doesn’t your browser and OS come from some third party? How much do you trust them to be bug and backdoor free? Or do you have your own browser and OS that you know for sure can do all this and you have verified?
Replies (3)
You'd still have to trust the hardware, OS, browser, and now an LLM too, but that threat model could be preferable to running arbitrary (especially 3rd party) Javascript.
They weren't saying websites should be completely static, just maybe they shouldn't run attacker-controlled code.
Replies (1)
Replies (1)
Yes, you could do that. Works fine. How often should it need to be?
Or it could resend a diff of the page. We have remotely rendered AAA game platforms, where you just get some video back at 60fps, we can surely send commerce changes too even at 1/1000 the bandwidth.
Or you could have something like Ajax/XHR/messaging, or pub/sub push of plain data, no need to "the browser can be send any arbitrary code to execute".
Replies (1)
Browsers supporting 3D model editing in N formats that constantly change and add features? Quite a bit less likely.
Is this supposed to be a generally applicable example, or that we should base the design of web commerce moving trillions of dollars to the needs of such niche areas?
Let's do "limit the long tail of features" for 80% of things that don't need it, so that my grandma can buy sweaters without needed a degree in cybersecurity.
We can have a special laxer renderer for that that comes up with red blinking alerts when you visit those pages.
Nothing about an example like custom engraving requires the current everything-available web model anyway. As an example we have remotely rendered 3d gaming GeForce NOW, xCloud, etc. We surely can support something like placing an engraving text on a product.
>How to 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?
You know we can have server side logic since the 90s, right?
> 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.
Replies (2)
PDFs are (usually) static pages in a fixed paper format, so they should only display stuff, not do calculations. Same for most web content anyone ever wants to visit (excluding games, demos, actual apps, etc).
Replies (1)
If you want a real-world example, a food processor is clearly way more dangerous than a TI84. The danger lies in the sharp knives, not in the computing power. That's how I feel when people blame JS's status as a programming language, for things that are rather due to its access to network requests, etc.
> PDFs are (usually) static pages in a fixed paper format, so they should only display stuff, not do calculations.
My point is that even for just displaying stuff, it's convenient to have some degree of computation. Look up Kolmogorov complexity. If you've ever used LaTeX, you know how useful it is to have macro expansion in your document format.
Or consider a CAD program. That's "just" used to design 3D models, circuits, etc., all completely static. Would you agree that it's more useful to support computation such as "place this line 5cm from that" or "repeat this shape 3 times", than to just have your file format be a static list of coordinates?
Does that illustrate to you why computation is useful? I'm not saying Turing completeness is required, but it's hard to avoid once you support a quite small level of computational expressivity, and there's no real reason to trying to limit it.
(Unless you want to prove things about your program, but that's another discussion.)
I'd take more clunky over what we have any day of the week.
>A toy example, but HTML+CSS is Turing complete.
And it shouldn't be. Problem fixed.
>Even PDF, a static document format with no real user interaction, has a programming language (PostScript) embedded.
Given the millions of PDF exploits, that's likely the worst example one could give in support of this.
Replies (1)
For example, if you take away all loops and branches from JS, but still allow it to send network requests, you'll no longer have a Turing complete language (well, you'll have to also remove lambda functions and some other stuff; Turing completeness is complicated). But have you reduced its exploitability? Perhaps marginally, but no more than that.
You're barking up the wrong tree.
> And it shouldn't be. Problem fixed.
Why should it not? What changes would you make to ensure it's not? And what problem would that fix?
For the record, it's really quite difficult proving a system is not TC. See [1] for a list of examples. Note that I disagree with the "security implications", though it's worthwhile reading. To me, TC is more of a mathematical curiosity of a complex enough system; without other problems such as bad sandboxing or other exploitable features, it has no relevance for security.
[1] https://gwern.net/turing-complete#surprisingly-turing-comple...
Replies (1)
Who said we should still allow it to send network requests? Just to the parent page would be enough.
And my suggestion was stronger: that we can also drop JS and other functionality from pages handling payment forms altogether.
Replies (1)
> run random code on your computer. It is just not acceptable
> Servers should deliver just data
> Everying else is nuts.
You didn't mention network access as a problem once.
As I've tried to explain here, code execution and network access are entirely orthogonal issues. The latter is a problem (as is downloading data from other servers than the "parent page"), the former is not.
If you're serving a static PDF or even a static SVG, you're "executing random code" on your clients' computers. Why is that not a problem? Or is it, would you disallow payment pages from embedding SVGs as well?
Note also that just using a <img> tag, you're sending network requests, potentially to other servers, so disabling JS isn't enough to prevent that. And I'm fairly certain, that if you'd design a "static" prebuilt library of html entities, complex enough to support even a subset of what we've seen JS used for in shop interfaces for example, that'd be powerful enough to do conditional network requests, et cetera.
Continue this thread (1 replies) →
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.
Replies (1)
Replies (2)
Replies (1)
If you can think of a practical way to display a cool icon if and only if a given business has good security practices, go ahead and build it – it would be worth at least billions.