Browser Cache Smuggling Attack
The article describes a technique where a malicious server manipulates the MIME type of a hosted DLL so that a victim's browser caches it locally without user interaction. An attacker who can then run a command on the victim machine can locate the cached DLL by a custom HTTP header tag and execute it with rundll32, achieving code execution while bypassing initial AV detection.
Published on infosecwriteups.com
In the red team assessment initial access is always challenging task , as a red teamer we have to find our ways to get our first foothold to the network. Generally we use phishing attacks for that matter , try to trick user, implement our social engineering skills and some how we try to make our victim download and…
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
Impact
An attacker could achieve code execution on the victim machine and obtain a reverse connection, and the article claims the technique was not flagged by AV engines.
What the attacker needed
Nginx installation; BrowserCacheSmuggling tool; Havoc or other C2; Linux machine
How it was found
- Generate a malicious DLL using a C2 framework such as Havoc.
- Host the DLL using the BrowserCacheSmuggling tool, which sets a custom MIME type and HTTP header tag.
- Wait for the victim to visit the malicious website so the DLL is cached by the browser.
- Run a PowerShell command on the victim machine to search the Firefox cache for the custom tag and execute the DLL with rundll32.
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, your browser often saves copies of files (like images or scripts) on your computer to load pages faster next time. This article shows that a malicious website can trick the browser into saving a harmful program (a DLL) by lying about what type of file it is. If an attacker can later run a command on your computer, they can find that saved file and run it, which can give them control of your machine.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.