cbcvebase.
CVE-2018-9958
published 2018-05-17

CVE-2018-9958: This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Foxit Reader 9.0.1.1049. User interaction is required to…

PriorityP274high8.8CVSS 3.0
AVNACLPRNUIRSUCHIHAH
EXPLOIT
EPSS
63.31%
99.1th percentile
This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Foxit Reader 9.0.1.1049. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the handling of Text Annotations. When setting the point attribute, the process does not properly validate the existence of an object prior to performing operations on the object. An attacker can leverage this vulnerability to execute code under the context of the current process. Was ZDI-CAN-5620.

Affected

3 ranges
VendorProductVersion rangeFixed in
foxitfoxit_reader
foxitsoftwarefoxit_reader<= 9.0.1.1049
foxitsoftwarephantompdf<= 9.0.1.1049

Detection & IOCsextracted from sources · hover to see the quote

versionFoxit Reader 9.0.1.1049
commandthis.addAnnot({type:"Text", page: 0, name:"uaf"})
commandthat.getAnnot(0, "uaf").destroy();
commanda.point = arr;
urlhttps://srcincite.io/pocs/cve-2018-99{48,58}.pdf.txt
  • Exploit checks app.platform == 'WIN', app.isFoxit == 'Foxit Reader', and app.appFoxitVersion == '9.0.1.1049' before executing — these JavaScript property checks in a PDF can be used as a detection signature.
  • Metasploit module uses a UNC/SMB share path (up to 44 bytes) embedded in the PDF ROP chain to download and execute a payload EXE — detect PDF files containing UNC paths (\\<host>\<share>\<file>.exe) within JavaScript or stream content.
  • The exploit combines a UAF in Text Annotations with uninitialized TypedArray pointers to leak a vtable address and construct a ROP chain — look for Foxit Reader processes crashing or spawning child processes after opening a PDF with JavaScript.
  • Default Metasploit payload for this module is windows/meterpreter/reverse_tcp — correlate Foxit Reader spawning network connections after PDF open.
  • ·Windows 10 Enterprise targets require insecure logons to be enabled for the exploit to work as expected.
  • ·The SMB share path embedded in the ROP chain must not exceed 44 bytes or the exploit will fail.
  • ·User interaction is required — the target must visit a malicious page or open a malicious file for exploitation.
  • ·The exploit was tested on Windows 7 x64, Windows 10 Pro x64 Build 17134, and Windows 10 Enterprise x64 only.

CVSS provenance

nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.