Apple macOS SCPT File Parsing Out-Of-Bounds Read Information Disclosure Vulnerability
A crafted SCPT file could make the AppleScript framework read past the end of an allocated data structure, leaking sensitive information. The attacker could combine this with other flaws to run arbitrary code in the context of the current process.
This vulnerability allows remote attackers to disclose sensitive information on affected installations of Apple macOS. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 the AppleScript framework did not properly validate the size or structure of data inside a SCPT file before reading it, allowing a read beyond the allocated buffer.
Impact
An attacker could disclose sensitive information and, in conjunction with other vulnerabilities, execute arbitrary code in the context of the current process; the target must visit a malicious page or open a malicious file.
What the attacker needed
Victim opens a malicious SCPT file; macOS with the vulnerable AppleScript framework
The fix
Apple issued an update to correct the vulnerability.
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.
Some programs store data in memory and read it back later. If a program trusts a file to say how much data to read, a malicious file can make it read past the end of that memory, which can reveal other data sitting nearby. Here a specially made AppleScript file does this on macOS.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.