Re:Billion laughs attack
by kazinator on Monday January 07, 2019 @06:21AM
(#18844358)
> A "Billion laughs" attack should exist for any file format that can contain references, for example this YAML bomb:
C preprocessor?
$ gcc -E - | wc
#define EXP(X) X X X X X X X X X X X X X X X X
#define LOL1 EXP(LOL)
#define LOL2 EXP(LOL1)
#define LOL3 EXP(LOL2)
#define LOL4 EXP(LOL3)
#define LOL5 EXP(LOL4)
LOL5
[Ctrl-D][Enter]
11 1048588 4194376
Not normally considered a "file format", though. People don't open a C preprocessor attachment in their e-mail only to have some application grind their PC and crash. Or use this for RPC calls and whatnot.
C preprocessor?
Not normally considered a "file format", though. People don't open a C preprocessor attachment in their e-mail only to have some application grind their PC and crash. Or use this for RPC calls and whatnot.