Crash
Entering a long string of repeated characters into the 'Left part' field of the Header block in Print preferences crashes Notepad++.
- Triaged in 47 hours
- Fixed in 20 days
- Paid in 14 days
- Disclosed after 3 months
-
Settings -> Preferences -> Print
-
insert to "Left part" field of "Header" block A*500 (Full string for paste consist in poc.txt)
-
Click "Add"
-
Crash
Crash info:
(1c8.2dd8): Unknown exception - code c000041d (!!! second chance !!!)
*** ERROR: Module load completed but symbols could not be loaded for npp.exe
rax=0000006872865ac8 rbx=0000006872865cf0 rcx=00007ff6bbf0c780
rdx=0000000000000000 rsi=0000006872865800 rdi=0000006872865800
rip=00007ffc38c0a388 rsp=0000006872865fb0 rbp=00000068728660f0
r8=00007ffc3c2f6e2e r9=0000000000000000 r10=00007ffc3c20c48a
r11=0000000000000000 r12=00000000000001f3 r13=0000000000030c70
r14=0000006872866130 r15=00000068728fe388
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000200
KERNELBASE!RaiseException+0x68:
00007ffc38c0a388 488b8c24c0000000 mov rcx,qword ptr [rsp+0C0h] ss:0000006872866070=0000dbf840d0cbfd
Notepad++ v7.6.3 (64-bit) Build time : Jan 27 2019 - 17:16:47 Path : C:\Program Files\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : OFF OS : Windows 10 (64-bit) Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll
full gebug info and poc.txt in attach
Impact
Crash
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a buffer overflow or insufficient input validation when handling the header string.
What the attacker needed
Notepad++ installed; User can access Print preferences
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report describes a way to make the Notepad++ text editor crash. By typing a very long string of the letter 'A' into a settings field for print headers, the program stops working. This is called a denial of service because it prevents normal use.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.