Skip to content
Race condition Advisory Advanced CVE-2018-4373

Apple Safari WebCrypto Race Condition Remote Code Execution Vulnerability

A race condition in Safari's WebCrypto implementation, caused by missing locking before executing operations in a separate thread, could allow remote code execution. An attacker could exploit this by having a victim visit a malicious page or open a malicious file, potentially executing arbitrary code in the context of the current process.

ngg alippai DirtYiCE KT Follow

Originally disclosed on Zero Day Initiative

Medium 6.8 View original

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Apple Safari. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

ngg alippai DirtYiCE KT of Tresorit, 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 a race condition due to missing locking when WebCrypto operations are executed in a separate thread.

Impact

An attacker could execute arbitrary code in the context of the current process, but user interaction (visiting a malicious page or opening a malicious file) is required.

What the attacker needed

Victim visits a malicious page; or opens a malicious file

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 report describes a bug in how Safari handles a security feature called WebCrypto, which is used for encryption in web pages. Because the browser did not properly coordinate access to shared data when multiple things happened at once, an attacker could potentially run their own code on the victim's computer. The victim would need to visit a malicious website or open a malicious file for this to happen.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

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.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.