Skip to content
Open redirect Write-up Intermediate

URL Bar Spoofing Flaw in Safari for iOS 12.3 and iOS 13 Beta | CVE-2019-8727

Safari on iOS failed to update the address bar correctly while a page was still loading, so a malicious page could keep showing a genuine domain while displaying attacker-controlled content. An attacker could use this to phish users, for example by showing a fake bank login form under a real bank's URL.

medium.com

Published on medium.com

While working for browser-based attacks on the URL bar, I learned a way where it was still possible to spoof address bar in safari. None of the previous exploits was working but while trying something similar, the browser was behaving differently.

Divyanshu, on medium.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely Safari did not properly reset or update the displayed URL while a navigation to a non-existent port was still pending, letting the old address remain visible over attacker content.

Impact

An attacker could phish users by showing a fake login form under a trusted domain, and could also use it for spear-phishing by sending similar links to a group and observing who visits which kind of site.

What the attacker needed

Victim uses Safari on iOS 12.3 or iOS 13 beta; victim opens an attacker-hosted page; victim is tricked into entering credentials

The fix

Apple addressed a logic issue with improved state management, and users were advised to install the iOS 13 update.

How it was found

  1. Create an HTML page designed to spoof the address bar.
  2. Host the malicious page on a website.
  3. Open it in Safari on iOS; it shows a fake login page with a virtual keyboard and autofocus while the address bar shows a genuine domain.

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 write-up has not been written yet. The Original tab links to the source.

When you visit a website, the address bar is supposed to show the real address so you know where you are. In this bug, a malicious page could make Safari keep showing a trusted address (like a bank's) while actually showing the attacker's fake page. That makes it much easier to trick someone into typing their password into the wrong site.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.