r/programming • • Feb 20 '18

A CSS Keylogger

https://github.com/maxchehab/CSS-Keylogging
2.0k Upvotes

276 comments sorted by

View all comments

105

u/kersurk Feb 20 '18

As pointed out in HN, this works only if value attribute is updated via JS, which some JS frameworks do.

3

u/PM_ME_UR_OBSIDIAN Feb 21 '18

So disabling JavaScript protects you against this attack?

5

u/fullkornslimpa Feb 21 '18

It does unless the site renders your password into the value field on the server side. If any site actually does this, that is by far much worse than this though.

→ More replies (2)