{
"$type": "site.standard.document",
"description": "Billion Laughs Attack aka: XML bomb 💣 A type of DoS attack aimed at XML parsers that with a few liens of code, aims to consume a ton of memory. :root { --ha1 : lol ; --ha2 : var (--ha1) var (--ha1) var (--ha1) ; --ha3 : var (--ha2) var (--ha2) var (--ha2) ; --ha4 : var (--ha3) va…",
"path": "/lol-bomb",
"publishedAt": "2021-08-01T07:00:00.000Z",
"site": "at://did:plc:jnj7wcwuvspxdsipmecmx7rs/site.standard.publication/self",
"tags": [
"note",
"css"
],
"textContent": "Billion Laughs Attack aka: XML bomb 💣 A type of DoS attack aimed at XML parsers that with a few liens of code, aims to consume a ton of memory. :root { --ha1 : lol ; --ha2 : var (--ha1) var (--ha1) var (--ha1) ; --ha3 : var (--ha2) var (--ha2) var (--ha2) ; --ha4 : var (--ha3) var (--ha3) var (--ha3) ; --ha5 : var (--ha4) var (--ha4) var (--ha4) ; ... } #CSS was a victim of this when custom properties were introduced. Learn more on Wikipedia or the CSS Variables Spec .",
"title": "Lol Bomb"
}