Open Source · · 4 days

ProFTPD site served backdoored source

ProFTPD's main FTP and rsync distribution server was compromised on November 28, 2010, and the 1.3.3c source archives were replaced with backdoored copies until December 2.

Around 20:00 UTC on November 28, 2010, attackers compromised ProFTPD's main distribution server, ftp.proftpd.org, which also acted as the project's rsync source for official mirrors. They replaced ProFTPD 1.3.3c source archives with modified copies, so anyone downloading from the official site or mirrors through December 2 could receive poisoned source through the normal project channel.

Delivery happened twice: first through the source archive, then through the build. The modified configure path compiled tests/tests.c and ran it, so a builder could call out before a daemon was installed. The runtime daemon carried a separate patch in src/help.c.

The backdoor had two faces. At build time, the modified configure script compiled and ran tests/tests.c, which attempted an HTTP callback to 212.26.42.47 on port 9090. At runtime, a patch in src/help.c gave unauthenticated users root shell execution when they issued HELP ACIDBITCHEZ. The published diff and hashes turned the incident into a compact lesson in source-release trust: a project server, a mirror network, and a small source patch were enough to turn a widely deployed FTP daemon into a root shell.

ProFTPD's response was to tell users to verify checksums and replace any 1.3.3c source obtained during the exposure window. That is the practical cleanup burden in source-distribution attacks: downstream packagers and administrators have to ask not only which version they built, but which copy of that version they built from.

Appendix · Affected releases

1.3.3c sha256 60e06731…c3784db7 download unavailable
  • The previously listed MD5 values 4f2c554d6273b8145095837913ba9e5d and 8571bd78874b557e98480ed48e2df1d2 identify the clean gzip and bzip2 archives respectively; they are not malicious artifact hashes.
  • SecurityFocus BID 45150 was previously listed as a location. The BID database is retired and the URL now serves a generic SecurityFocus notice with no entry for this incident, so the location was removed.

References

  1. Hackers poison well of open-source FTP apptheregister.com
  2. Open source ProFTPD hacked, backdoor planted in source codezdnet.com
  3. Exploits/proftpd-1.3.3c-backdooraldeid.com
  4. Back door in ProFTPD FTP server (The H)lwn.net
  5. Distribution file rootkit-compromised - ProFTPD user mailing listsourceforge.net

Source record: oss/attacks/proftpd/meta.yaml