The Classics Return: Vulnerable E-Mail Scripts - SANS ISC
Our summary
SANS Internet Storm Center reports renewed honeypot scanning for old-style e-mail test scripts, recalling the decades-old CGI mail vulnerability CVE-2000-0411, where appending extra URL parameters could leak server environment variables or let attackers inject an arbitrary recipient address for spam abuse. The current probes target file names such as sendmail.php, test-mail.php, testemail.php, mail_config.php, email-test.php and mailtest.php, which are typically debugging artifacts developers forget to remove from live sites. A sample mailtest.php script found via Google search shows exactly this pattern: it accepts a recipient address through the "email" GET parameter and dumps a chunk of server configuration variables into the message body, despite an explicit comment warning to delete it after use. The takeaway for defenders is to treat this as a code-hygiene problem — scan your own infrastructure for these file names and ensure test/debug scripts never reach production, since no single CVE id applies to the current wave of abuse.
Below is the opening; the full story is at SANS Internet Storm Center.
From SANS Internet Storm Center
One of the early web application vulnerabilities I remember was CVE-2000-0411 [CVE]. This was a simple vulnerability in a CGI-bin script used to send e-mail. The vulnerability was pretty straightforward: Adding additional parameters to the URL leaked environment variables. Other vulnerabilities allowed setting the "To" address and were heavily abused by spammers. And if parameters were passed directly to the sendmail binary, similar vulnerabilities could allow arbitrary code execution.…
Worried this affects your company?
Discuss a security assessment of your internet-facing systems. Scope agreed before testing.