Cache Cramming: When Saved Code Got Too Much Trust
A file doesn't become trustworthy just because a browser saved it on your computer. Cache cramming describes an older attack that tried to exploit exactly that confusion.
The term refers to tricking a browser into running cached Java code as local content with fewer restrictions than internet content. That's the specific meaning in the SANS Institute's security glossary, rather than a name for every attack involving a browser's saved files.
A cache holds data for reuse, such as images or code downloaded from a website. The problem here was the permissions granted when code ran, not the mere existence of a saved copy.
Why Does Your Computer Keep Copies of Everything?
The old browser rule the attack tried to bend
Older browsers could run small Java programs called applets inside web pages, using an extra software component called a plug-in. Those programs needed limits because a stranger's website shouldn't automatically get the same access as software you deliberately trust.
A sandbox enforced restrictions on what an applet could do, such as accessing local files or making certain network connections. Oracle's historical applet security documentation describes these limits and how permissions differed for particular kinds of applets.
Browsers also used security zones, groups of locations assigned different levels of trust. Internet content and content considered local could therefore face different rules.
Cache cramming sought to get downloaded Java code treated under the more permissive local rules. If that trick succeeded, the code could gain abilities that its internet origin should have denied it.
The exact consequences depended on the vulnerable software and the permissions gained. The term alone doesn't establish that an attacker could take over an entire computer.
Saving a file wasn't supposed to change its origin
There was an important distinction between "stored on this disk" and "trusted local content."
Microsoft's documentation for Internet Explorer says cached internet content should retain the zone associated with its original address. Its Local Machine zone description explicitly excludes content that Internet Explorer caches.
So simply downloading a file into the cache wasn't a legitimate route to extra privileges. An attack had to defeat or confuse the boundary that kept the original restrictions attached to the content.
Picture a visitor's document left overnight in an office filing cabinet. Finding it there the next morning shouldn't turn the visitor into an authorized employee.
- Catch the threats a built-in antivirus can miss.
- Get blocked from malicious sites before they load.
- Protect your devices around the clock, not only when you run a scan.
Where that leaves today's browser users
This term belongs to the era of browser Java applets. Oracle's Java team explains that modern browsers no longer support that old plug-in model, although organizations can still have obsolete systems that depend on it.
Java hasn't disappeared, and it isn't the same language as JavaScript, which websites commonly use for interactive features. Mozilla's JavaScript introduction explains the difference.
For ordinary browsing, keep your browser updated and resist instructions to bring back obsolete plug-ins just to open a page. If a workplace application still requires one, its owner needs a plan to replace or isolate that dependency.
Clearing cached files can remove stored copies, but it doesn't fix the software flaw that granted the wrong permissions. Nor does it prove that an attack's effects have been undone.
The lasting lesson is about trust: software should remember where code came from, even after moving or saving it. A new storage location shouldn't become a free pass.
Active Content: When a Page or Document Runs Instructions

Sandboxing: Deciding What a Program Can Reach

Malicious Applets: The Web Programs That Crossed a Boundary

QUOTE:
"Amateurs hack systems, professionals hack people."
