Sept. 17, 2023, 3:33 a.m. | Jane Ori

DEV Community dev.to

A "CPU Hack" implies unlocking the ability for continuous crunching of data and re-evaluation of state.


For example, if cyclic vars didn't automatically fail to invalid (initial) state in CSS, this would continuously increment the value of --frame-count here:



body {
--input-frame: var(--frame-count, 0);
--frame-count: calc(var(--input-frame) + 1);
}


Spoiler alert: You actually can do this in CSS, without ever touching JS, I'll show you how!





The 5 Observables


First, let's establish a handful of observations of advanced CSS animation …

alert body continuous cpu css data evaluation expert fail hack input state value var

CyberSOC Technical Lead

@ Integrity360 | Sandyford, Dublin, Ireland

Cyber Security Strategy Consultant

@ Capco | New York City

Cyber Security Senior Consultant

@ Capco | Chicago, IL

Senior Security Researcher - Linux MacOS EDR (Cortex)

@ Palo Alto Networks | Tel Aviv-Yafo, Israel

Sr. Manager, NetSec GTM Programs

@ Palo Alto Networks | Santa Clara, CA, United States

SOC Analyst I

@ Fortress Security Risk Management | Cleveland, OH, United States