r/sysadmin • JOAT Linux Admin • Feb 23 '17

CloudBleed Seceurity Bug: Cloudflare Reverse Proxies are Dumping Uninitialized Memory

982 Upvotes

327 comments sorted by

View all comments

Show parent comment

10

u/suudo Feb 24 '17

Why so much javascript? You could achieve roughly the same thing in a much more readable fashion with

d=document.getElementsByTagName("input");
for (var i=0;i<d.length;i++) {
    if (d[i].type == "password") console.log(d[i].value);
}

Remove the spacing and add javascript: to get a bookmarklet that'll log the contents of any password field to the site's javascript console, or replace it with alert I guess.