Exploit Title: Sublime Text 4 - OS Command Injection
Discovered by: Ahmet Ümit BAYRAM
Discovered Date: 17.09.2023
Vendor Homepage: https://www.sublimetext.com
Software Link: https://www.sublimetext.com/download_thanks?target=win-x64
Tested Version: 4 (latest)
Tested on: Windows 2019 Server 64bit
Steps to Reproduce
- Open Sublime Text.
- Navigate to Tools > Build System > New Build System…
-
In the newly opened configuration window, paste the following code:
{ "shell_cmd": "your reverse shell code goes here", "shell": true }
- Use the File > Save option to save this configuration. (For example, save it as
ReverseShell.sublime-build
). - From the Tools > Build System menu, select the
ReverseShell
option that you just saved. - Press
Ctrl + B
to run the build system. - Your reverse shell should now be active.
Replace "your reverse shell code goes here"
with your actual reverse shell command to establish a connection.