HexBrain

MS-DOS · Report #5499

Arbitrary command execution in MS-DOS

Validstatus
5upvotes
1 Apr 2014disclosed

How it was found

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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original