Unofficial Hacker News companion — get notified on comment replies, and more.

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

624 points by scanr 6 days ago | www.infohawk.com | 391 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. > Any "real world" policy will have need to require open'ish directives (img-src https:, etc)

    That is not a normal thing to need. A few specific sorts of sites may warrant it (probably only from deliberately allowing user-generated content to embed remote images, and probably only for historical reasons), but loading images from arbitrary sites is a very bad smell.

    Replies (1)
    1. Yeah that's fair, I shouldn't say "_needs_ to require". It'd be more correct to just say it's common.

      There are some fun cases where it is needed, iirc, google maps use to load image data from many unique country code TLDs, so they had to * img-src. (But now they just don't even specify img-src with their Strict CSP, just not worth the effort).