News for hackers. Stuff that matters.
Re:Ask HN: Google Doc email virus? by jakob223 on Wednesday May 03, 2017 @03:26PM (#14259175)
EDIT: According to a Google representative on the reddit thread, this application is now blocked. If your account was affected, you no longer need to do anything.

If you fell for this, changing your password is not the right solution - you want to log into your google account and remove permissions from the application.

https://myaccount.google.com/permissions?pli=1 should show a list of apps connected to your account.

Also, if you fell for this, you sent a bunch of emails to people like the one you received, so maybe tell them not to click.

Re:Ask HN: Google Doc email virus? by sudom82 on Wednesday May 03, 2017 @03:53PM (#14259395)
Source code of the worm: https://hastebin.com/gubegaqusi.xml

Pretty much what you'd expect.

Edit: This isn't the full source code. There was another PHP file visible on their website that unfortunately isn't visible anymore.

Re:Ask HN: Google Doc email virus? by mintplant on Wednesday May 03, 2017 @03:58PM (#14259443)
Heh, they're using Google Analytics to track its spread. That's a nice touch.
Re:Ask HN: Google Doc email virus? by taf2 on Wednesday May 03, 2017 @04:12PM (#14259584)
It's possible to send any data we want to their Analytics tracker... perhaps we send them some spam?
Re:Ask HN: Google Doc email virus? by soared on Thursday May 04, 2017 @02:17PM (#14267291)
Where is ilovevitaly when you need him?!
Re:Ask HN: Google Doc email virus? by smacktoward on Wednesday May 03, 2017 @05:11PM (#14260134)
"No fair! You got your privacy invasion in my privacy invasion!"
Re:Ask HN: Google Doc email virus? by emersonrsantos on Wednesday May 03, 2017 @05:18PM (#14260209)
That made my day.
Re:Ask HN: Google Doc email virus? by andrewflnr on Wednesday May 03, 2017 @04:20PM (#14259666)
On a brief skim, it doesn't seem to do much besides spread itself. Am I missing something, or was it just for lulz? Or maybe a grey hat trying to prove a point?
Re:Ask HN: Google Doc email virus? by smudgymcscmudge on Wednesday May 03, 2017 @04:25PM (#14259710)
That's all this code does, but The author then has a backdoor to all the victim's email through the oauth app.
Re:Ask HN: Google Doc email virus? by kardos on Wednesday May 03, 2017 @06:30PM (#14260802)
Except that Google can kill those auths.
Re:Ask HN: Google Doc email virus? by evan_ on Wednesday May 03, 2017 @06:41PM (#14260869)
It's really a question of how malicious the author was- if they set it up to download everything attached to the account as soon as it connected, it could still cause a lot of damage.
Re:Ask HN: Google Doc email virus? by shmed on Wednesday May 03, 2017 @07:31PM (#14261184)
Even worst: The hacker could have taken a list of lets say the top 1000 banking (or any type of online service) websites accross the globe. The moment the hacker get access to your gmail account, he initiatite a password recovery request on each of those 1000 websites, get the password reset link from the email, reset the password, delete the email. he could now have access to any other online account you have that had its recovery email set to your gmail account.
Re:Ask HN: Google Doc email virus? by nol13 on Wednesday May 03, 2017 @10:43PM (#14262025)
Safe to assume that google could track such activity for affected accounts and notify if that was widespread?

(or is that somehow against the 'only our anonymized ad display program can scan your email' privacy policy?)

Re:Ask HN: Google Doc email virus? by evan_ on Thursday May 04, 2017 @12:10AM (#14262393)
The most recent statement from google said that "no other data was accessed" so interpret that as you will
Re:Ask HN: Google Doc email virus? by bholzer on Wednesday May 03, 2017 @04:56PM (#14259997)
It redirects to a couple different PHP pages as well, so there could have been more malicious code there
Re:Ask HN: Google Doc email virus? by ben174 on Wednesday May 03, 2017 @03:59PM (#14259449)
Sending everything to this mailinator address which oddly seems to be empty:

https://www.mailinator.com/inbox2.jsp?public_to=hhhhhhhhhhhh....

Maybe Mailinator has purged the box and is rejecting mail from it. Good on them.

Re:Ask HN: Google Doc email virus? by sudom82 on Wednesday May 03, 2017 @04:00PM (#14259459)
Mailinator purged it early on yeah.
Re:Ask HN: Google Doc email virus? by eli on Wednesday May 03, 2017 @04:00PM (#14259464)
Man, I wonder how wider this would have spread if they spent a teensy bit more time to make e.g. the To address less suspicious.
Re:Ask HN: Google Doc email virus? by BadassFractal on Wednesday May 03, 2017 @07:48PM (#14261273)
What context was that code expected to be executed in?
Re:Ask HN: Google Doc email virus? by ghostly_s on Wednesday May 03, 2017 @05:19PM (#14260212)
> If your account was affected, you no longer need to do anything.

How do you figure? An unknown actor presumably had full access to your email inbox for a non-zero amount of time and the proper remediation is "nothing"? If I was concerned this had affected me I would right now be changing my passwords to ____everything____.

Re:Ask HN: Google Doc email virus? by Buge on Wednesday May 03, 2017 @10:27PM (#14261961)
Well change the passwords to everything except the google account that was compromised. I don't think you can recover the password of a google account through its own gmail inbox.

Although I guess if you had a circular recovery chain of this google account depending on a different email that depended on this google account, the attacker could use your email to recover the other email then use the other email to recover this google account. So it might be wise to change the passwords to everything.

Re:Ask HN: Google Doc email virus? by bitskits on Wednesday May 03, 2017 @05:48PM (#14260474)
What attack vector does changing your password help with? Are you concerned they could have recovered the account password via the Oauth scope?
Re:Ask HN: Google Doc email virus? by askvictor on Wednesday May 03, 2017 @06:08PM (#14260644)
The greater issue is the passwords of other accounts, which could now be 'recovered' as the attacker has your access to your email
Re:Ask HN: Google Doc email virus? by bitskits on Wednesday May 03, 2017 @09:02PM (#14261621)
Yes, I agree, although revoking the scope should remove the access (and I assume Google did that for everyone already).
Re:Ask HN: Google Doc email virus? by motti on Wednesday May 03, 2017 @05:57PM (#14260555)
Changing your password is the fastest way to ensure all authed sessions on any device is logged out. Google offers a "log out of any sessions" button somewhere in account settings, but most other services don't.

If your email account is compromised, any service that do password resets via email confirmation, are potentially compromised by whoever has access to your email via OAuth.

Re:Ask HN: Google Doc email virus? by bitskits on Wednesday May 03, 2017 @09:17PM (#14261692)
I'm pretty sure that changing your password does NOT revoke your oauth scopes, which was the attack vector here.
Re:Ask HN: Google Doc email virus? by _pergosausage on Wednesday May 03, 2017 @06:20PM (#14260748)
After looking at the source code, it looks like all it does is send a copy of itself to somebody in your inbox, and nothing else.
Re:Ask HN: Google Doc email virus? by shmed on Wednesday May 03, 2017 @07:36PM (#14261205)
We dont really have any proof that this is the only code that got executed. Whoever owned the OAuth account had direct access to your information from google's servers, he wouldnt need to go through you as a client to get it.
Re:Ask HN: Google Doc email virus? by jrs235 on Wednesday May 03, 2017 @04:31PM (#14259768)
Here's a video I made on what you or they need to do: http://youtu.be/fjEenkk9Ntk?hd=1
Re:Ask HN: Google Doc email virus? by sebbean on Wednesday May 03, 2017 @03:31PM (#14259213)
what application? i tried this and dont see anything in there that looks like it could be it
Re:Ask HN: Google Doc email virus? by EdwardMSmith on Wednesday May 03, 2017 @03:32PM (#14259221)
"Google Docs" with the real icon and everything.
Re:Ask HN: Google Doc email virus? by sebbean on Wednesday May 03, 2017 @03:33PM (#14259232)
Not seeing that weirdly. Could it be "google chrome"?
Re:Ask HN: Google Doc email virus? by cdubzzz on Wednesday May 03, 2017 @03:43PM (#14259318)
Apparently Google has already shut this down. Likely they revoked the access from all accounts as well.
Re:Ask HN: Google Doc email virus? by bice on Wednesday May 03, 2017 @04:15PM (#14259609)
Link?
Re:Ask HN: Google Doc email virus? by el_duderino on Wednesday May 03, 2017 @04:32PM (#14259777)
Re:Ask HN: Google Doc email virus? by jrs235 on Wednesday May 03, 2017 @04:33PM (#14259785)
I've seen 2 client ids used and yes Google Docs and Google Chrome, not sure if google closed them both/all down. Here's a video on what to do/look for:

http://youtu.be/fjEenkk9Ntk?hd=1

Re:Ask HN: Google Doc email virus? by jakob223 on Wednesday May 03, 2017 @03:34PM (#14259237)
It will be called "google docs" because for some reason that's allowed.
Re:Ask HN: Google Doc email virus? by sebbean on Wednesday May 03, 2017 @03:32PM (#14259222)
Removed picasa, im guessin that's just Google Photos tho. so idk