Back to front pageView on Hacker News (opens in a new tab)Show HN: A CSS Keylogger (opens in a new tab)github.com576 pointsby maxchehab (on Hacker News)8 years agogithub.com (opens in a new tab)GitHub - maxchehab/CSS-Keylogging: Chrome extension and Express server that exploits keylogging abilities of CSS.Chrome extension and Express server that exploits keylogging abilities of CSS. - maxchehab/CSS-KeyloggingComments (168) 24 threadsShow all commentsShowing thread 16 of 24[-]wuyishan8 years ago1 reply#Couldn't Content Security Policy (CSP) [1] be used to mitigate this attack?[1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP[-]maxchehab8 years ago2 replies#It actually can't. Instagram does use this protect java-script injection from extensions, but clearly injecting CSS is allowed.sbarre8 years ago#But could you use CSP to block the image loading that happens in the CSS with 'img-src' definitions?Someone else in this thread suggested that as well.151558 years ago#The requested resource, however, could be blocked by a CSP.
Show HN: A CSS Keylogger (opens in a new tab)github.com576 pointsby maxchehab (on Hacker News)8 years ago
wuyishan8 years ago1 reply#Couldn't Content Security Policy (CSP) [1] be used to mitigate this attack?[1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
maxchehab8 years ago2 replies#It actually can't. Instagram does use this protect java-script injection from extensions, but clearly injecting CSS is allowed.
sbarre8 years ago#But could you use CSP to block the image loading that happens in the CSS with 'img-src' definitions?Someone else in this thread suggested that as well.
Comments (168) 24 threads
Show all comments
Showing thread 16 of 24
[1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
Someone else in this thread suggested that as well.