Apple macOS nsurlstoraged Out-Of-Bounds Read Information Disclosure Vulnerability
A local attacker who can already run low-privileged code could trigger an out-of-bounds read in the nsurlstoraged component when it handles cookie data, because user-supplied data is not properly validated. This could disclose sensitive information and, when combined with other vulnerabilities, lead to code execution as the current user.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to disclose sensitive information on vulnerable installations of Apple macOS. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.
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 nsurlstoraged service fails to validate the length or structure of user-supplied cookie data before reading it, causing an out-of-bounds read.
Impact
A local attacker with low-privileged code execution could disclose sensitive information and, in conjunction with other vulnerabilities, execute code in the context of the current user.
What the attacker needed
Local access to run low-privileged code
The fix
Apple issued an update to correct this 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.
This is a bug in a background service on macOS that manages cookies. The service reads cookie data without checking its length, so it can read past the end of a memory buffer. That can leak information from memory, and if combined with another bug, it might let an attacker run code as the logged-in user.
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.