Skip to content
RCE Disclosed report Beginner

cgi scripts wordlist entry for windmail.exe has payload that sends arbitrary file read result to third-party

The CGI scripts wordlist entry for windmail.exe contains a payload that, when sent to a vulnerable server, causes windmail.exe to email the server's boot.ini file to an attacker-controlled address.

floyd Follow

Originally disclosed on HackerOne

Bounty$200 Low View original
  • Triaged in 39 hours
  • Fixed in 6 months
  • Paid in 6 months
  • Disclosed after 6 months
  1. Get to your basement, look for that floppy disc copy of windmail.exe
  2. Install windmail.exe on a Windows 98 server (good luck with that)
  3. Run Burp's Intruder payload list CGI scripts against the folder /cgi-bin/ where you installed that nifty windmail.exe
  4. Burp will send the following payload from the wordlist: WINDMAIL.EXE?%20-n%20c:\boot.ini%[email protected]%20|%20dir%20c:\\
  5. Due to the payload, windmail.exe will send the C:\boot.ini file to the email address [email protected] according to https://seclists.org/bugtraq/2000/Mar/322
  6. hax0r.com is currently up for sale: http://hax0r.com

If you are going to argue that nobody is running windmail.exe in 2024, why is that entry still in the wordlist? :D

Although that's really what happens, don't take this report too serious ;) . Am I the only person in the last 20 years who really went through the wordlist manually? But I would still change that one entry.

Impact

Burp sends the not-very-confidential file C:\boot.ini of an exploited server to the e-mail address [email protected]

The original report as published on HackerOne, by floyd. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

Burp Suite ships with a set of built-in Intruder payload lists, and one of them is the CGI scripts wordlist. That list is meant to help testers enumerate common CGI programs under a directory such as /cgi-bin/. One of its entries targets windmail.exe, a CGI mail program, and the entry is not a plain filename: it carries a query string that the program interprets as command-line arguments.

The report is about that single wordlist entry. The claim is that the payload it contains makes windmail.exe send the file C:\boot.ini from the server to the email address [redacted]. The researcher credits the behaviour to a public Bugtraq post from March 2000.

Setup

The setup is deliberately impractical, and the researcher says so:

  1. Find an old floppy disc copy of windmail.exe.
  2. Install windmail.exe on a Windows 98 server.
  3. Run Burp's Intruder payload list CGI scripts against the folder /cgi-bin/ where windmail.exe was installed.

No Burp version, Windows build or windmail.exe build is given. The precondition is simply that a server is running windmail.exe in a CGI directory reachable by the tester.

Finding it

The researcher asks whether he is the only person in the last 20 years who really went through the wordlist manually. Most entries in such a list are filenames to probe for existence. This one is different: it contains a query string with what look like command-line switches, an email address and a shell pipe. That is a payload, not a path, and it looked wrong enough to investigate.

Exploitation

Step 1: send the wordlist entry

When Intruder runs the CGI scripts list against /cgi-bin/, Burp sends the following payload from the wordlist:

Text
WINDMAIL.EXE?%20-n%20c:\boot.ini%[redacted]%20|%20dir%20c:\\

The important parts, decoded:

  • WINDMAIL.EXE is the CGI program being requested.
  • %20 is an encoded space, so the query string becomes a sequence of arguments.
  • -n is a switch passed to windmail.exe.
  • c:\boot.ini is the file the program is told to use.
  • [redacted] is the recipient address.
  • | dir c:\\ is a pipe into a directory listing of C:\.

Step 2: what the server does

According to the Bugtraq post the researcher links (March 2000), windmail.exe takes these arguments and sends the file C:\boot.ini to the address [redacted]. In other words, the CGI program turns attacker-supplied query-string arguments into a mail-sending operation with an attacker-chosen file and recipient.

Step 3: the recipient domain

The researcher notes that hax0r.com is currently up for sale, linking to http://hax0r.com.

Root cause

The mistake is in the wordlist, not in Burp's request engine. A list intended for discovering CGI scripts contains an entry that is an active exploit payload for one specific program. Anyone who runs the list unmodified against a host that happens to run windmail.exe will send that payload, and the program will act on it.

The entry has simply been carried along, and the researcher's rhetorical question is why it is still there in 2024 if nobody runs windmail.exe any more.

Impact

The impact is stated narrowly: Burp sends the not-very-confidential file C:\boot.ini of an exploited server to the email address [redacted]. The conditions are that the target runs windmail.exe as a CGI program and that the tester uses the CGI scripts wordlist against it. The file named in the payload is low value, and the recipient domain is for sale, so the practical harm is limited. The researcher also asks readers not to take the report too seriously.

Fix

The researcher's recommendation is to change that one entry in the wordlist. The report does not say whether the change was made.

Variants to test

  • Run the CGI scripts wordlist against a lab host with windmail.exe installed under /cgi-bin/ and watch for an outbound mail attempt or a file read. A positive result is the program acting on the arguments in the query string.
  • Review other built-in Intruder wordlists for entries that contain query strings, pipes, redirections or email addresses rather than plain paths. A positive result is any entry that is a payload rather than a filename.
  • Check other CGI mail programs for the same pattern of passing query-string arguments to a command line. A positive result is a program that reads a file or sends mail based on request parameters.

Hunting notes

This kind of issue hides in default tooling: shipped wordlists, scanner templates and fuzzing dictionaries that were written years ago and never revisited. The signal during recon is an entry that looks like an exploit rather than a path, for example encoded spaces, shell metacharacters, absolute file paths or email addresses inside a list of filenames. The researcher traced the entry to a public Bugtraq post from March 2000 describing what the program does with those arguments. The report was accepted as a low severity information disclosure with a 200 USD bounty and disclosed on 13 March 2025.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

What happened, in plain words

Burp Suite is a popular tool that security testers use to look at and tamper with the traffic between a browser and a website. It ships with ready-made lists of words, called wordlists, that it can fire at a server one after another. One of those lists is called CGI scripts, and it is meant to help a tester discover common CGI programs sitting in a folder such as /cgi-bin/.

One line in that list is not a plain filename. It is a small attack recipe aimed at a program called windmail.exe, an old CGI mail program. If a server happens to be running that program, the line tells it to send the file C:\boot.ini to the address [redacted]. The researcher traced the behaviour to a public Bugtraq post from March 2000 and said he would still change that one entry.

The report is written with a wink: the setup is deliberately absurd, and the author says not to take it too seriously. The underlying point is still real. A tool that many people trust ships a line that is an active exploit, and anyone who runs the list unmodified against the wrong server will send it.

The background you need

A few ideas come up again and again below, so here they are from zero.

CGI and /cgi-bin/. CGI stands for Common Gateway Interface. It is an old, simple way for a web server to run a separate program when a browser asks for a particular URL, and to send that program's output back to the browser. Programs of this kind usually live in a folder called /cgi-bin/. Think of a restaurant: the web server is the waiter, and a CGI program is a kitchen that the waiter can call on to prepare a specific dish. The URL is the order.

Query string. When a URL contains a question mark, everything after it is the query string, for example page?name=value. It is a way of passing extra information to the program on the other side. In a normal web page it carries things like a search term. In this report it carries something much more dangerous, as you will see.

URL encoding. Some characters cannot appear literally in a URL, so they are written as a percent sign followed by two characters. %20 means a space. When the server decodes the URL, %20 turns back into a space. This matters here because spaces are what separate arguments on a command line.

Command line and arguments. Many programs are started with extra words after their name, called arguments or switches, which tell the program what to do. For example, a switch might say which file to use. Normally a person types these. The danger in this report is that a web request can supply them instead.

A pipe (|). On Windows and Unix command lines, the vertical bar character | means "take the output of the command on the left and feed it into the command on the right". It is a way of chaining programs together.

Burp Suite and Intruder. Burp Suite is a testing tool that sits between your browser and a website so you can see and change requests. Intruder is one of its features: you mark a spot in a request, give it a list of words (the payload list), and Burp sends the request once for every word in the list, substituting each one in turn. It is like a machine that tries every key on a keyring in a lock, one after another, automatically.

Wordlist. A wordlist is simply a text file with one entry per line. In security testing it usually holds common file and folder names to try. Most entries are harmless names such as admin or login.cgi.

Payload. In this context, a payload is the piece of text that gets inserted into the request. Usually it is just a filename. Here it is something else: a string designed to make a program do something it should not.

Information disclosure. This is the security term for a system revealing information it should have kept private. Reading a file off a server and sending it to a stranger is a classic example. The file involved is described as not very confidential, and the recipient domain is up for sale.

Arbitrary file read. "Arbitrary" here means "any file the attacker names". An arbitrary file read is a flaw where an attacker can ask a program to open a file of their choosing on the server and hand back its contents.

The setup

The researcher describes the setup as impractical on purpose, and says so:

  1. Find an old floppy disc copy of windmail.exe.
  2. Install windmail.exe on a Windows 98 server.
  3. Run Burp's Intruder payload list CGI scripts against the folder /cgi-bin/ where windmail.exe was installed.

Why these steps? Because the whole claim depends on a server actually running windmail.exe in a CGI folder that a tester can reach. Windows 98 and floppy discs are a joke about how old the software is, but the technical precondition is serious: without that program on the target, the payload does nothing. The report gives no Burp version, no Windows build and no windmail.exe build.

Finding it

The researcher went through the CGI scripts wordlist by hand, line by line, and stopped at the windmail.exe entry. Most lines in a list like this are filenames to probe for existence, nothing more. This line is different: it contains a query string with what look like command-line switches, an email address and a shell pipe. That is a payload, not a path. It looked wrong enough to investigate.

The researcher asks whether he is the only person in the last 20 years who really went through the wordlist manually.

Exploitation

Step 1: send the wordlist entry

When Intruder runs the CGI scripts list against /cgi-bin/, Burp sends the following payload from the wordlist:

Text
WINDMAIL.EXE?%20-n%20c:\boot.ini%[redacted]%20|%20dir%20c:\\

Line by line, in plain words:

  • WINDMAIL.EXE is the name of the CGI program being requested. Burp is asking the server to run this program.
  • ? starts the query string. Everything after it is passed to the program as extra information.
  • %20 is an encoded space. The server turns it back into a real space, so the query string becomes a sequence of separate arguments, exactly as if someone had typed them on a command line.
  • -n is a switch handed to windmail.exe. The report does not explain what the switch means on its own; what matters is that it is one of the arguments the program accepts.
  • c:\boot.ini is the file the program is told to use. boot.ini was a Windows configuration file that held boot settings.
  • [redacted] is the recipient address. This is where the file is meant to be sent.
  • | is the pipe character, chaining what comes before it to what comes after.
  • dir c:\\ is a directory listing of C:\, the root of the Windows drive.

So the single line combines a program name, command-line switches, a file path, an email address and a pipe. None of that belongs in a list of filenames.

Step 2: what the server does

According to the Bugtraq post the researcher links, dated March 2000, windmail.exe takes these arguments and sends the file C:oot.ini to the address [redacted]. In other words, the CGI program turns arguments supplied in the query string into a mail-sending operation, with a file and a recipient chosen by whoever sent the request.

The program reads C:\boot.ini and mails it out. The tester never needs access to the server's filesystem; the server does the reading and the sending on the tester's behalf.

Step 3: the recipient domain

The researcher notes that hax0r.com is currently up for sale, linking to http://hax0r.com. Even if the payload fires, the mail goes to a domain nobody controls for this purpose.

Root cause

The mistake is in the wordlist, not in Burp's request engine. A list meant for discovering CGI scripts contains an entry that is an active exploit payload for one specific program. Anyone who runs the list unmodified against a host that happens to run windmail.exe will send that payload, and the program will act on it.

The researcher's rhetorical question is why it is still there in 2024 if nobody runs windmail.exe any more.

Impact

The impact is stated narrowly: Burp sends the not-very-confidential file C:oot.ini of an exploited server to the email address [redacted]. Two conditions must both hold: the target runs windmail.exe as a CGI program, and the tester uses the CGI scripts wordlist against it. The file named in the payload is low value, and the recipient domain is for sale, so the practical harm is limited. The researcher also asks readers not to take the report too seriously.

Fix

The researcher's recommendation is to change that one entry in the wordlist. The report does not say whether the change was made.

Variants to test

  • Run the CGI scripts wordlist against a lab host with windmail.exe installed under /cgi-bin/ and watch for an outbound mail attempt or a file read. A positive result is the program acting on the arguments in the query string.
  • Review other built-in Intruder wordlists for entries that contain query strings, pipes, redirections or email addresses rather than plain paths. A positive result is any entry that is a payload rather than a filename.
  • Check other CGI mail programs for the same pattern of passing query-string arguments to a command line. A positive result is a program that reads a file or sends mail based on request parameters.

Hunting notes

This kind of issue hides in default tooling: shipped wordlists, scanner templates and fuzzing dictionaries written years ago and never revisited. The signal during recon is an entry that looks like an exploit rather than a path, for example encoded spaces, shell metacharacters, absolute file paths or email addresses inside a list of filenames. The researcher traced the entry to a public Bugtraq post from March 2000 describing what the program does with those arguments. The report was accepted as a low severity information disclosure with a 200 USD bounty and disclosed on 13 March 2025.

Glossary

  • Argument (command-line argument): an extra word given to a program when it starts, telling it what to do.
  • Arbitrary file read: a flaw that lets an attacker make a program open any file they name and reveal its contents.
  • Burp Suite: a tool testers use to intercept, inspect and modify traffic between a browser and a website.
  • CGI (Common Gateway Interface): an old standard for a web server to run a separate program and return its output to the browser.
  • /cgi-bin/: the folder where CGI programs are traditionally kept.
  • Command line: the text interface where a program is started by typing its name followed by arguments.
  • CVSS: a scoring system for the severity of a security flaw. The report gives no score.
  • Directory listing: the output of a command such as dir, showing the files in a folder.
  • Information disclosure: a flaw that reveals information the system should have kept private.
  • Intruder: the Burp Suite feature that sends a request repeatedly, substituting each entry of a list in turn.
  • Payload: the text inserted into a request during testing; here, an attack string rather than a filename.
  • Pipe (|): a command-line character that feeds the output of one command into another.
  • Query string: the part of a URL after the ?, used to pass extra information to the server.
  • Switch: a command-line argument, often starting with a dash, that changes a program's behaviour.
  • URL encoding: writing characters that are not allowed in a URL as a percent sign plus two characters, such as %20 for a space.
  • Vulnerability: a weakness in software that can be used to make it behave in unintended ways.
  • Wordlist: a text file with one entry per line, used by testing tools to try many values automatically.

More by floyd

View all

2 more disclosed reports, best first.

More from PortSwigger Web Security

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.