Description
suidperl (aka sperl) does not properly cleanse the escape sequence "~!" before calling /bin/mail to send an error report, which allows local users to gain privileges by setting the "interactive" environmental variable and calling suidperl with a filename that contains the escape sequence.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 2
- SUIDPerl 5.00503 - Mail Shell Escape (1) EDB-20141 · local · Aug 7, 2000 · verified
- SUIDPerl 5.00503 - Mail Shell Escape (2) EDB-20142 · local · Aug 7, 2000 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- TLSA2000018-1 vendor-advisory
- 1547 vdb-entry
- RHSA-2000:048 vendor-advisory
- CSSA-2000-026.0 vendor-advisory
- 20000808 MDKSA-2000:031 perl update mailing-list
- 20000814 Trustix Security Advisory - perl and mailx mailing-list
- 20000805 sperl 5.00503 (and newer ;) exploit mailing-list
- 20000810 Security Hole in perl, all versions vendor-advisory
- 20000810 Conectiva Linux security announcemente - PERL mailing-list