An unofficial, read-only Hacker News reader.

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

609 points by scanr 1 day ago | www.infohawk.com | 362 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. How exactly is computation a security risk? My entire point is that it's not the computation that's the risk, but what that computation can trigger.

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