Skip to content
Info disclosure Advisory Advanced CVE-2018-4126

Apple macOS nsurlstoraged Out-Of-Bounds Read Information Disclosure Vulnerability

An out-of-bounds read in the handling of cookie data in Apple macOS's nsurlstoraged allows a local attacker with low-privileged code execution to disclose sensitive information. The attacker could combine this with other vulnerabilities to execute code as the current user.

Bruno Keith Follow

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.

Bruno Keith (@bkth_), on the Zero Day Initiative

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 of user-supplied cookie data before reading it, leading to 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 the target macOS system; ability to execute 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 memory safety bug in a background service on macOS that manages cookies. Because the program does not check the size of data it reads, it can read past the end of a memory buffer, leaking information that should not be accessible. An attacker who can already run low-privileged code on the machine could use this leak to help escalate to running code as the logged-in user.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Bruno Keith

View all

5 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.