vendor:
QuickLook
by:
Anonymous
8.8
CVSS
HIGH
Arbitrary JavaScript Injection
79
CWE
Product Name: QuickLook
Affected Version From: macOS/iOS
Affected Version To: macOS/iOS
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: macOS/iOS
2020
QuickLook Arbitrary JavaScript Injection
QuickLook is a widely used feature in macOS/iOS which allows you to preview various formats such as pdf, docx, pptx, etc. The way it uses to show office files is quite interesting. First it parses the office file and converts it to HTML code using OfficeImport and renders it using WebKit. The problem is, it doesn't filter the names of fonts when generating HTML code from them. We can abuse it to inject arbitrary JavaScript code. Namely, we can execute arbitrary JavaScript code via an office file.
Mitigation:
Ensure that the QuickLook feature is not enabled on the system and that OfficeImport is not accessible from the internet.