Skip to content
RCE Disclosed report Beginner

Arbitrary command execution in MS-DOS

MS-DOS versions 1.1 and 2.0 allow a user at the main command interface to run arbitrary system commands and programs. An attacker with access to the keyboard could execute any program on the system.

badca7 Follow

Originally disclosed on HackerOne

  • Fixed in 1 hour
  • Disclosed after 1 hour

Versions 1.1 and 2.0 of MS-DOS allow a malicious actor to execute arbitrary system commands via the main application interface.

Prerequisites:

  • MS-DOS 1.1 or MS-DOS 2.0 installation
  • Input device (e.g. keyboard)

Steps to reproduce:

  • Enter the command mode
  • Type VER to make sure that the system is on of the affected versions
  • Pass a known system command like HELP to see that the system responds correctly
  • Use EXEC PROGRAM_NAME.BAT to execute arbitrary programs

See PoC below.

Attachments

PoC_msdos.png
PoC_msdos.png From the original on HackerOne

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the report treats the intended command-line interface, which by design runs any command the user types, as a vulnerability.

Impact

Anyone with physical access to the keyboard could run any program, but this is the normal behaviour of the operating system rather than a security bypass.

What the attacker needed

MS-DOS 1.1 or 2.0 installed; Access to an input device such as a keyboard

How it was found

  1. Enter command mode
  2. Type VER to check the version
  3. Run a known command such as HELP to confirm the system responds
  4. Use EXEC PROGRAM_NAME.BAT to run an arbitrary program

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

MS-DOS is an old operating system where you type commands to run programs. This report says that anyone who can type at the keyboard can run any command or program, which is how the system is designed to work. It is not a hidden flaw that lets someone break in remotely.

What is RCE?

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

More by badca7

View all

1 more disclosed report, best first.

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.