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

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

406 points by scanr 9 hours ago | www.infohawk.com | 209 comments on HN

View full thread · View on Hacker News

Comment thread (4)

  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'`