Lurker News

Comments (168) 24 threads

Show all comments

Showing thread 19 of 24

orliesaurus2 replies#
Why do you have to activate the extension before entering the password?
guntars#
Probably to add the css file to the page you're on.
okanesen1 reply#
So you can test the "exploit" obviously.
orliesaurus2 replies#
yes obviously, but in a real world scenario how would that work? Malicious extension loads the CSS file in my current tab and sniffs my password on the attacker's server? Can Chrome extensions load CSS without me having to click/activate them?
maxchehab1 reply#
Yes they can. This attack does not have to be carried done through a chrome extension. I simply chose that because it is the easiest to show off. This can be hidden inside of a malicious npm module or injected into a website that has poor input sanitization.

The most important aspect of this attack is that it is carried out through css. It is possible to block remote javascript code from an extension, in fact, if one wanted to inject javascript into https://instagram.com (my example on github), they would fail.

Continue this thread — 1 reply

bfred_it#
The extension is just a way to inject this demo into any site, but extensions that you install can run JavaScript in any site they're allowed to, so this "hack" isn't necessary in that case.