1. Executive summary
SANS ISC reports a resurgence in scanning against e-mail sending scripts on its honeypots, with requests concentrated on filenames such as /mailtest.php, /testemail.php and /email-test.php. The author's main suspicion is spammers looking for web forms that let them set an arbitrary "To" header, though he states it is hard to link a specific vulnerability to these scans. The historical reference is CVE-2000-0411, a CGI-bin mail script flaw that leaked environment variables and, in related variants, allowed the "To" address to be set; NVD scores it CVSS 5.0 (medium), EPSS 8%, and it is not in CISA KEV. For EMEA financial services the exposure is low severity and indirect: the risk is outbound abuse of an orphaned test mail script on an internet-facing host, not compromise of the host, and no victim, actor or campaign is named.
2. Regulatory framing
No specific DORA/NIS2 article is directly engaged by this item.
3. Technical analysis & attack chain
The source describes scanning activity, not a confirmed intrusion. The confirmed steps are:
- The scanner requests known or guessed mail script paths on internet-facing web servers. The URLs observed on the SANS honeypots are /sendmail.php, /test-mail.php, /testemail.php, /config/mail_config.php, /mail_config.php, /email-test.php and /mailtest.php.
- Where such a script exists and accepts a recipient from a request parameter, the scanner can supply its own address. The author's main suspect is spammers seeking web forms that allow setting an arbitrary "To" header. This is stated as a suspicion, not an observed exploitation.
The source does not state the request method, parameters, source addresses, user agents or volume of the scans. It does not confirm that any scanned host ran a vulnerable script or that mail was sent.
The historical vulnerability cited is CVE-2000-0411, a flaw in a CGI-bin script used to send e-mail. Adding additional parameters to the URL leaked environment variables. Other vulnerabilities in the same class allowed setting the "To" address and were heavily abused by spammers, and where parameters were passed directly to the sendmail binary, similar flaws could allow arbitrary code execution. NVD scores CVE-2000-0411 at CVSS 5.0 (medium), EPSS 8%, and it is not listed in CISA KEV. The source does not claim CVE-2000-0411 is being exploited in these scans; it presents it as the historical precedent.
The source reproduces excerpts from a publicly indexed "mailtest.php" script to show the pattern. The script carries the comment "DONT FORGET TO DELETE THIS SCRIPT WHEN FINISHED!", reads a recipient from the "email" GET parameter ($to = ( isset( $_GET['email'] ) ? $_GET['email'] : FALSE );), and builds a message from server variables including HTTP_HOST, SERVER_NAME, SERVER_ADDR, SERVER_PORT, SERVER_ADMIN, SERVER_SIGNATURE, SERVER_SOFTWARE, REMOTE_ADDR, DOCUMENT_ROOT, REQUEST_URI, SCRIPT_NAME, SCRIPT_FILENAME. It then calls mail( $to, $subject, $message, $headers ). The script therefore both sends mail to an attacker-chosen address and discloses part of the server configuration in the message body. The source presents this as an illustrative example found via a Google search, not as a script observed in the scanning.
The author links the mail-script scans to requests for credential and secret files that top the honeypot "Leaderboard", and frames both as a code hygiene problem: development artifacts left on live websites. No malware, payload, persistence, command-and-control, lateral movement or data exfiltration is described. The source names no threat actor and makes no attribution.
4. Mitigation & containment
P1 (within 24h)
- Search web roots and any internet-facing host for the filenames observed in the scans: sendmail.php, test-mail.php, testemail.php, mail_config.php, email-test.php, mailtest.php, including under a /config/ path. Remove any that are not required in production.
- Review web access logs for requests to those paths and for requests to mail scripts carrying an "email" query parameter. Treat a hit as possible outbound mail abuse and check the mail server's sent-mail logs for the corresponding recipient.
P2 (within 72h)
- Block requests to the listed paths at the reverse proxy or WAF where the application does not legitimately use them, and alert on matches.
- Where a mail test script must remain, require a fixed recipient rather than one taken from a request parameter, and remove server-variable disclosure from the message body.
P3 (within 7 days)
- Add a deployment check that fails a release if files matching mail test or debug naming patterns are present in the web root, so the artifact is caught at deployment rather than by scanning.
- Run the same path scan against internal and staging hosts, since the source's concern is development artifacts reaching any live site.
No fixed release or vendor patch is named in public reporting, because the issue is the presence of the scripts rather than a patchable product flaw.
5. Indicators of compromise
The source gives requested URL paths only. These are request paths an attacker probes for, not confirmed malicious infrastructure, and they are listed for log matching.
| type | value | confidence | source |
|---|---|---|---|
| uri path | /sendmail.php | medium | SANS ISC |
| uri path | /test-mail.php | medium | SANS ISC |
| uri path | /testemail.php | medium | SANS ISC |
| uri path | /config/mail_config.php | medium | SANS ISC |
| uri path | /mail_config.php | medium | SANS ISC |
| uri path | /email-test.php | medium | SANS ISC |
| uri path | /mailtest.php | medium | SANS ISC |
uri /sendmail.php
uri /test-mail.php
uri /testemail.php
uri /config/mail_config.php
uri /mail_config.php
uri /email-test.php
uri /mailtest.php
Behavioural indicators
| behaviour | where to observe | confidence |
|---|---|---|
| HTTP requests to mail test script paths on internet-facing hosts | web server access logs, reverse proxy logs, WAF logs | medium |
| Requests to a mail script carrying an "email" query parameter | web server access logs | medium |
| Outbound mail sent to an address supplied in a request parameter | mail server sent-mail logs | medium |
6. Detection
The source gives no file hashes, command lines, mutexes or registry keys. The usable artefacts are the requested paths and the distinctive strings of the example mail test script. The YARA rule below targets the script pattern shown in the source; the Sigma rule targets the request paths in web logs.
rule PHP_Mail_Test_Script_Leftover
{
meta:
author = "Adverse Trace"
date = "2026-11-04"
reference = "https://isc.sans.edu/diary/rss/33488"
description = "Detects PHP mail test scripts of the pattern shown in SANS ISC reporting, which take a recipient from a request parameter and disclose server variables"
strings:
$c1 = "DONT FORGET TO DELETE THIS SCRIPT WHEN FINISHED!"
$s1 = "$_GET['email']"
$s2 = "Mail Test Successful for "
$s3 = "'SERVER_SIGNATURE'"
$s4 = "'SCRIPT_FILENAME'"
$m1 = "mail( $to, $subject, $message, $headers )"
condition:
uint32(0) == 0x3C3F7068 and 3 of them
}
title: Requests for PHP mail test script paths
id: 7c1e4a52-3b8f-4d61-9a0e-2f5b6c7d8e91
status: experimental
description: Detects HTTP requests to mail test and mail configuration script paths observed in SANS ISC honeypot scanning
author: Adverse Trace
date: 2026/11/04
references:
- https://isc.sans.edu/diary/rss/33488
logsource:
category: webserver
detection:
selection_path:
cs-uri-stem:
- '/sendmail.php'
- '/test-mail.php'
- '/testemail.php'
- '/config/mail_config.php'
- '/mail_config.php'
- '/email-test.php'
- '/mailtest.php'
condition: selection_path
fields:
- c-ip
- cs-uri-stem
- cs-uri-query
- cs-user-agent
falsepositives:
- Legitimate mail test scripts used by developers on non-production hosts
level: low
CVE assessment
1 referenced CVE
| CVE | CVSS | Exploited | EPSS | Summary |
|---|---|---|---|---|
| CVE-2000-0411 | 5.0 | — | 8% | Matt Wright's FormMail CGI script allows remote attackers to obtain environmental variables via the env_report parameter. |
7. Sources
- Johannes B. Ullrich, SANS Internet Storm Center, "The Classics Return: Vulnerable E-Mail Scripts", https://isc.sans.edu/diary/rss/33488, 2026-11-04
- NVD, CVE-2000-0411, https://nvd.nist.gov/vuln/detail/cve-2000-0411
- Gist referenced by the source as the example mailtest.php, https://gist.github.com/Porrapat/60ed7411d933122fc481
8. Adverse Trace position
Adverse Trace assesses this as a low-severity, opportunistic scanning item. CVE-2000-0411 is CVSS 5.0 (medium), EPSS 8%, and not in CISA KEV, and the source does not claim it is being exploited in these scans; the activity is a hunt for leftover test scripts, and the author's spam motive is stated as a suspicion. No actor is named and no attribution is possible. The client impact is limited to outbound mail abuse or configuration disclosure if an orphaned mail test script is reachable, so the action is a path scan of internet-facing web roots and log review for the listed paths. The path list and script pattern are single-sourced to SANS ISC; verify against your own logs before enforcing blocks. We will monitor for further reporting that links these scans to a specific vulnerability or campaign and update this note if that emerges.
Published via PulseTrace — Adverse Trace threat intelligence.