I found this morning that I was hacked, and realized a huge security issue in PIAF. Here's the story...
I happened to lock myself out while trying to use Putty, as I had set the fail2ban.conf entry to ban for life (-1) after 1 login attempt. As I save the password in WinSCP that wasn't a problem.
This morning I used a new PC to access the PIAF and typo'd the password and fail2ban locked me out forever. When I looked at the fail2ban.conf at the PIAF console I found that it had been changed to allow a foreign address to completely bypass password logout restrictions via the ignoreip= line item. I removed it and restarted the fail2ban service.
When I started to think about how this hacker had got in with very these heavy restrictions and a complex root password, I wondered what he could have done. And I had a epiphany!
Here's the major bug. Assuming the hacker had a knowledge of PIAF he would know that the disk-backup.conf file had PLAIN TEXT a network user name and password to allow SMB connections via Samba to copy the ISOs to the server. And with those login names and passwords it would give the hacker access to the Windows network to just copy interesting files to the PIAF box and then out the door.
So I suggest not automatically using mondoarchive, but just run it manually on the console once in a while and then copying the ISOs to your Windows network.
I have no idea how his hacker slipped past the defenses. The logs do no show ANY attempt on the filewall from his IP (he could have removed entries), but his IP is all over the other logs.
Ideas?
I happened to lock myself out while trying to use Putty, as I had set the fail2ban.conf entry to ban for life (-1) after 1 login attempt. As I save the password in WinSCP that wasn't a problem.
This morning I used a new PC to access the PIAF and typo'd the password and fail2ban locked me out forever. When I looked at the fail2ban.conf at the PIAF console I found that it had been changed to allow a foreign address to completely bypass password logout restrictions via the ignoreip= line item. I removed it and restarted the fail2ban service.
When I started to think about how this hacker had got in with very these heavy restrictions and a complex root password, I wondered what he could have done. And I had a epiphany!
Here's the major bug. Assuming the hacker had a knowledge of PIAF he would know that the disk-backup.conf file had PLAIN TEXT a network user name and password to allow SMB connections via Samba to copy the ISOs to the server. And with those login names and passwords it would give the hacker access to the Windows network to just copy interesting files to the PIAF box and then out the door.
So I suggest not automatically using mondoarchive, but just run it manually on the console once in a while and then copying the ISOs to your Windows network.
I have no idea how his hacker slipped past the defenses. The logs do no show ANY attempt on the filewall from his IP (he could have removed entries), but his IP is all over the other logs.
Ideas?