# My passwords cracked & used to upload viruses to websites. How??

**URL:** <https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881>\
**Category:** Factual Questions\
**Created:** [March 5, 2014, 12:43am UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881 "2014-03-05T00:43:09Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![choie](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/choie/32/7829_2.png) [@choie](https://boards.straightdope.com/u/choie)\
**Post date:** [March 5, 2014, 12:43am UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/1 "2014-03-05T00:43:09Z")

</div>

I feel filthy. Today I went to one of my client’s websites after uploading some updates – this is an html-based site, no Wordpress or other CMS (content management system). When I browsed to make sure the updates looked good, I immediately received an alert from AVG antivirus that three javascript files were infected with the **js/Redirect** virus. These .js files were all regular scripts I’d created myself. I went to the files on my computer and looked via FTP at the scripts on the server. Each of the latter had been altered on Feb 28. My originals were still the same older date when I’d created them (June 2013).

I then went to another site, hosted at the same company but on a different server. Same problem. Compared the “last modified” dates again, and once more, the .js files on the server were updated Feb 28. Mine were much older.

Did the same for a final third site, hosted at a different company. You guessed it: same thing.

Even weirder was that these scripts were both in the main /public\_html directory _and_ subdirectories a few levels below that. However, scripts in my Wordpress directory (I have a couple of installations) on one of the sites were unmodified. This is surprising, to say the least: WP is one of the biggest attack targets on the web, if not _the_ biggest.

Anyway, I immediately ran a virus scan on my system, and meanwhile wrote my host for the first two sites for any ideas on how this could’ve happened, describing the issue. As usual they had a swift answer for me–I do love these hosts!

> [@](#):
>
> Yes. Look at this file:
> 
> _Fri Feb 28 17:46:34 2014 0 (IP deleted) 3535 /home/(domain username deleted)/public\_html/directory/includes/overlib/overlib\_exclusive.js a \_ i r (domain username deleted) ftp 0 \* c_
> 
> Your passwords have been broken, and your credentials were used to directly FTP to the server, download each one, insert a payload, and reupload. First thing: change your passwords, of course. Next up: scan your machine(s) with whatever up to date antivirus/malware scanner you have. The files themselves of course will need to to be reuploaded with clean copies to get rid of the bad payloads in those files.

The above-named file is a PHP directory program. Not sure exactly what the rest of stuff after the .js filename means.

So, okay, clearly it was my fault and I’m sickened by the thing.

What I don’t understand is _how_ they simultaneously cracked my passwords. I don’t keep these passwords in the same place. They’re all non-standard words / characters. And they’re all different domains. How in heaven’s name did this happen? How did someone get access to my system, find the secretly named files (and in at least one case the file wasn’t even the whole password, just a word reminding me of the password phrase), figure out which one went with which site, and then do all of the above?!

I ran AVG and it did find and secure 30 trojans, but they were all in deleted emails I’d never opened or viewed. (My stupidity was in not deleting them from my Deleted Items tray, but if they download and I don’t open the attachments, can they still infect me?)

---

<div class="post-metadata">

**Author:** ![drachillix](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@drachillix](https://boards.straightdope.com/u/drachillix)\
**Post date:** [March 5, 2014, 1:34am UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/2 "2014-03-05T01:34:28Z")

</div>

> [@choie](#):
>
> if they download and I don’t open the attachments, can they still infect me?)

If they were in outlook or another mail client they could have exploited a security issue in the mail program and deployed.

---

<div class="post-metadata">

**Author:** ![choie](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/choie/32/7829_2.png) [@choie](https://boards.straightdope.com/u/choie)\
**Post date:** [March 5, 2014, 1:50am UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/3 "2014-03-05T01:50:46Z")

</div>

Thanks! But oy. It’s Windows Live Mail (desktop version), which is basically Outlook, which means ‘yes.’ Crapples. **drachillix** , your lovely computer that you built for me has been violated!

That bites. I really really prefer to keep a desktop client vs. just using Gmail. I’ve kept it updated… sigh.

Could I have a keylogger somewhere on the system? That’s the only thing I can fathom regarding how they’d have cracked these things as well as linking them to the domains. In which case God only knows what they’ve wrought.

AVG didn’t find anything. I guess I’d better do a MalwareBytes scan as well.

---

<div class="post-metadata">

**Author:** ![tellyworth](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@tellyworth](https://boards.straightdope.com/u/tellyworth)\
**Post date:** [March 5, 2014, 2:01am UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/4 "2014-03-05T02:01:39Z")

</div>

One possibility is that the password files on the server(s) were compromised and brute-forced. Even if they were on different servers the hosting company might use centralized auth.

Another is that your FTP client stored or logged the passwords insecurely on your PC, and that file was compromised.

There probably isn’t enough info here to be sure. I know you believe your passwords to be secure, but the way you describe them doesn’t rule out various insecurities there. If they were unencrypted and your PC has been infected with malware, then there are a bunch of possibilities.

---

<div class="post-metadata">

**Author:** ![ZipperJJ](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/zipperjj/32/211_2.png) [@ZipperJJ](https://boards.straightdope.com/u/ZipperJJ)\
**Post date:** [March 5, 2014, 2:12am UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/5 "2014-03-05T02:12:46Z")

</div>

Yeah your FTP app was probably compromised. What do you use?

Happened to me one time. Was awful and took a long time to clean up.

---

<div class="post-metadata">

**Author:** ![choie](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/choie/32/7829_2.png) [@choie](https://boards.straightdope.com/u/choie)\
**Post date:** [March 5, 2014, 2:20am UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/6 "2014-03-05T02:20:42Z")

</div>

Thanks, **tellyworth**. _Edited to add:_ And **ZipperJJ**! You ninjaed your way in there. 🙂

Yeah, I know there are plenty of ways I could’ve screwed up somewhere, alas. I use CuteFTP Professional 8.0, but I’m not sure if they encrypt passwords (or how).

I did notice that there was another date where a few of the site’s index.php files were accessed/messed with: Jan 17. I know I didn’t do any work on these particular files (it’s the same program listed above), so I wonder if this program has known security issues. It seems as if they accessed the site twice. But I don’t know what that tells me, if anything. Well, MalwareBytes is running and we’ll see if this gives any clues. I’ll probably go to bleepingcomputer or one of the other usual malware-fighting places to see if I’m clear or not.

---

<div class="post-metadata">

**Author:** ![Claverhouse](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@Claverhouse](https://boards.straightdope.com/u/Claverhouse)\
**Post date:** [March 5, 2014, 2:42am UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/7 "2014-03-05T02:42:21Z")

</div>

> [@tellyworth](#):
>
> One possibility is that the password files on the server(s) were compromised and brute-forced. Even if they were on different servers the hosting company might use centralized auth.

There were two different hosts. I would go with your FTP idea more, or, obviously excluding family, see if anyone had access to the machine.

> [@ZipperJJ](#):
>
> Happened to me one time. Was awful and took a long time to clean up.

Personally, I keep a duplicate site in waiting on the server:  
as in www. jjj is on the server at _/home/name/xx/public\_html_

exact duplicate is in \*/home/name/yy/public\_html  
\*

If it goes west, take the site offline, change **/xx** to _/aa_ with FTP, then change _/yy_ to _/xx_

Turn it back on. Erase _/aa_. I’m tending to not waste golden hours hunting down infinitely tedious changed files when I could be watching Ponyo.

Doesn’t work for forums of course, but forum hosters keep hourly back-ups anyway.  
Anyway, this inspired me to quickly check some sites with Securi Sitecheck…

---

<div class="post-metadata">

**Author:** ![choie](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/choie/32/7829_2.png) [@choie](https://boards.straightdope.com/u/choie)\
**Post date:** [March 5, 2014, 3:09am UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/8 "2014-03-05T03:09:15Z")

</div>

Hi **Claverhouse**. Well, if this inspires anyone to check the security of their sites/computer, it’s all worth it. (Okay, not really. I’m nice but I’m not _that_ noble.)

I agree that the CuteFTP client is by far the most likely suggestion, and I’m kind of annoyed I didn’t think of it myself. I was focusing on keylogging, but I’m almost certain I haven’t logged into all those control panels manually since before mid-January (one, yes, but not the others), so something stored on my hard drive makes more sense–and since they focused on the websites, the FTP is an excellent suggestion.

Oh and yep, we can definitely rule out anyone else having access to my system. I know one of my cats is _thisclose_ to developing opposable thumbs–seriously, some of the things he manages to grab and hold w/his paws freak me out–but I’m pretty sure he can’t mash the keyboards with any accuracy. Yet. 🙂

Even if I know it was CuteFTP, the bastards got access to it somehow, which means I was lax in security somewhere, most likely via the email **drachillix** suggested or maybe some website? I do know one forum I’ve visited keeps redirecting me to this URL shortener page, and I have to click the BACK button to get to the original URL. Maybe they’re the ones who infected me.

(Or, OTOH, it’s a sign of my own infection. I mean, my AVG did flag the virus as js.Redirect. But since that’s the only site where this happens, it’d be a pretty specific virus.)

---

<div class="post-metadata">

**Author:** ![Claverhouse](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@Claverhouse](https://boards.straightdope.com/u/Claverhouse)\
**Post date:** [March 5, 2014, 3:30am UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/9 "2014-03-05T03:30:05Z")

</div>

Ah, there is _remote_ access, beloved of both evil hackers and the Sword and Shield of our protection, the NSA, rather than people playing your hardware like a piano …  
Apparently, some can use open ports or LogMeIn ( the latter with your user credentials probably; but who knows how clever they are getting ? ) to get in and look around. I’m not really _interested_ enough in other people to spy on them, but it takes all sorts.  
Don’t have cats at the moment _sniff_. But give yours my regards.

---

<div class="post-metadata">

**Author:** ![ZipperJJ](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/zipperjj/32/211_2.png) [@ZipperJJ](https://boards.straightdope.com/u/ZipperJJ)\
**Post date:** [March 5, 2014, 3:43am UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/10 "2014-03-05T03:43:38Z")

</div>

> [@Claverhouse](#):
>
> Personally, I keep a duplicate site in waiting on the server:
> 
> .

My situation involved having the  
Master FTP account for one of my web servers hacked from my FTP app. Meant it could access and hack over a dozen of my client’s sites that I had done no editing on. I wouldn’t have been able to keep up with copying them all.

I did have to keep up with cleaning them all up, as it was my fault they got hit.

---

<div class="post-metadata">

**Author:** ![si\_blakely](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@si\_blakely](https://boards.straightdope.com/u/si_blakely)\
**Post date:** [March 5, 2014, 11:43pm UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/11 "2014-03-05T23:43:03Z")

</div>

First, fix your passwords.

Then, **stop using FTP**. Get it disabled on the domains you manage and use _SCP_ (I like WinSCP, but there are other options). The attackers could have picked your FTP passwords off the wire with a sniffer, either at your end, via a compromised home router, ISP link or (most likely) at the hosting end. FTP is not encrypted, and passwords are transferred from client to host as plain text.

---

<div class="post-metadata">

**Author:** ![choie](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/choie/32/7829_2.png) [@choie](https://boards.straightdope.com/u/choie)\
**Post date:** [March 6, 2014, 9:49pm UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/13 "2014-03-06T21:49:55Z")

</div>

Thanks, everyone.

The swapping of directories as backups wouldn’t have helped much in this case, since as long as I had a password to the site, they got access to it. So sites on various servers to which I had usernames/passwords were infected throughout almost the whole directory system, including folders several levels down. Which is an incredibly tedious process to clean up, as you can imagine.

Oddly, my host seems to be certain that my having a proper virus scanner and super-hard passwords would make FTP perfectly safe. But since FTP transmits the passwords in clear text, any protecting of my own system doesn’t help if they’ve already got access to it.

I’ve asked a few times if I can use anything from SFTP, FTP/S, to SCP, and I’m not getting an answer. So I’ll ask you guys. How do I use WinSCP? Do I need to do anything on the host server’s end, or is it all client-based?

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [March 6, 2014, 10:09pm UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/14 "2014-03-06T22:09:52Z")

</div>

> [@choie](#):
>
> I’ve asked a few times if I can use anything from SFTP, FTP/S, to SCP, and I’m not getting an answer. So I’ll ask you guys. How do I use WinSCP? Do I need to do anything on the host server’s end, or is it all client-based?

SCP is a completely different protocol from FTP, so, yes, something has to be done on their end. The same goes for your other options.

The only way that those protocols would work is if they are already set up on the server. Though SSH and SFTP often go together, so if you have one you likely have the other.

---

<div class="post-metadata">

**Author:** ![tellyworth](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@tellyworth](https://boards.straightdope.com/u/tellyworth)\
**Post date:** [March 6, 2014, 10:30pm UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/15 "2014-03-06T22:30:03Z")

</div>

> [@si\_blakely](#):
>
> Then, **stop using FTP**.

This. Also, use version control. Subversion, Git, whatever floats your boat.

---

<div class="post-metadata">

**Author:** ![si\_blakely](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@si\_blakely](https://boards.straightdope.com/u/si_blakely)\
**Post date:** [March 6, 2014, 10:48pm UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/16 "2014-03-06T22:48:19Z")

</div>

**SCP** requires SSH (secure shell) access. If you have just a hosting package, you may not have this.

Otherwise, they need to run an SFTP server, or provide one accessed via SSH. To not do so these days is pretty poor hosting. Maybe you should consider migrating to a web host that does.

---

<div class="post-metadata">

**Author:** ![Claverhouse](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@Claverhouse](https://boards.straightdope.com/u/Claverhouse)\
**Post date:** [March 7, 2014, 2:17am UTC](https://boards.straightdope.com/t/my-passwords-cracked-used-to-upload-viruses-to-websites-how/682881/17 "2014-03-07T02:17:59Z")

</div>

I just use FireFTP with the protocol set to SFTP, _SSH over FTP_. Computer nerds loving confusion there was also SFTP meaning _Simple FTP_ once…  
Can’t remember even setting up the SSH, possibly in a trance, but Dreamhost has it in the panel. DH regards SCP as superseded.  
Anyway there is no such thing as a secure website, and separately, no such thing as a secure host.
