When the Back Button Becomes Dangerous: My Safari Bug Bounty Journey
Safari incorrectly triggered a file download when the user pressed the Back button after visiting a malicious site that redirected to a legitimate domain, and the download was falsely attributed to the legitimate site. An attacker could use this to deliver malware disguised as an urgent update from a trusted vendor.
Published on medium.com
Safari has a strong reputation for security, but even robust systems can hide subtle logic flaws. In early 2025, I reported a vulnerability that allowed automatic downloads to be triggered simply by pressing the Back button.
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 a logic flaw in how Safari associated a download with the navigation context, causing the download's origin to be misattributed to a previously visited legitimate site.
Impact
Users could be tricked into downloading and running malware because the download appeared to come from a trusted domain, undermining Safari's download trust indicators.
What the attacker needed
Victim uses Safari; victim visits attacker's site; victim clicks a link to a legitimate site; victim presses Back
The fix
Apple fixed the issue by improving validation of navigation context and download origins.
How it was found
- Create a dummy payload file.
- Run the provided server script.
- Visit the attacker's page and click the link to www.apple.com.
- Press the Back button.
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 press the Back button in a browser, it should return you to the previous page. In this bug, Safari instead started downloading a file, and the download notification said the file came from a trusted site like apple.com, even though it actually came from the attacker's server. This could trick people into running malicious software because the download looked safe.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.