Re:Harvesting credit card numbers and passwords from websites
by tlrobinson on Sunday January 07, 2018 @07:09AM
(#16090553)
Clearly what we need is cryptographically-signed JavaScript and CSP pinning.
(I’m only half joking)
EDIT: oh, CSP pinning is actually a thing that’s been proposed https://www.w3.org/TR/csp-pinning/
This applies to almost any backend web framework and package manager, but the culture of micro packages in npm suits itself well to this attack.