Open Source · · 1 day

tcp-wrappers tarball granted remote root

The official source code distribution tarball for tcp-wrappers version 7.6 (tcp_wrappers_7.6.tar.gz) was replaced with a trojaned version on several FTP distribution sites, including the primary site at the time (Eindhoven University).

In January 1999, the trusted tcp-wrappers source archive became the attack path. CERT confirmed that copies of tcp_wrappers_7.6.tar.gz had been modified by an intruder and made available through FTP distribution sites, including the Eindhoven University site that served as the primary upstream location at the time.

The delivery was ordinary FTP retrieval of version 7.6. The file name, project, and expected installation flow all looked normal. The difference was in the archive content and in the checksum, which became the reliable way to split clean source from trojaned source.

The backdoor was small. It could grant root access when an attacker connected from source port 421, and the Makefile's help target, which is what runs when you type make with no arguments, mailed the output of whoami and uname -a to an external address. CERT reissued the advisory on January 22 to correct the port direction, note Wietse Venema's move to a new official distribution site, and publish checksums that let administrators separate authentic source from poisoned source.

The source-port detail mattered operationally. tcp-wrappers existed to mediate network access to services, so a hidden exception in that layer inverted the product's purpose: the access-control wrapper itself became the remote root path for anyone who knew the trigger.

Notes

  • ftp://ftp.porcupine.org/pub/security/ was the clean replacement archive, not a trojan source. CERT's revised advisory recorded that Wietse Venema moved the primary TCP Wrapper FTP archive there as a result of this incident. The locations list has no role for a post-incident official archive, so it is recorded here.

Appendix · Affected releases

7.6 sha256 7351d23a…a1b73ecf download unavailable
  • Venema reported the trojaned tarball was reachable between 07:16 MET and 16:29 MET on 1999-01-21, about nine hours, and was downloaded 52 times.

References

  1. Bugtraq: backdoored tcp wrapper source codeseclists.org
  2. CERT Advisory CA-99.01: Trojan TCP Wrappersweb.archive.org
  3. Bugtraq: CERT Advisory CA-99.01 - TCP Wrappers Trojan Horseseclists.org
  4. Sun Managers: Break-in? / tcp-wrapperscs.toronto.edu
  5. FedCIRC Advisory FA-99-01: Trojan Horse Version of TCP Wrappersattrition.org
  6. Wikipedia: TCP Wrappers security incidenten.wikipedia.org

Source record: oss/attacks/tcp-wrappers/meta.yaml