3 ms·
By default the Python binary will try to load a file called "python27.zip" at startup. What if python27.zip was a "zip bomb"?
by 10165 9y ago
By default the Python binary will try to load a file called "python27.zip" at startup. What if python27.zip was a "zip bomb"?
- aw3c2 9y agoNothing for me: stat("/usr/lib/python27.zip", {st_mode=S_IFREG|0644, st_size=440, ...}) = 0 open("/usr/lib/python27.zip", O_RDONLY) = 3
- derefr 9y agoMakes sense; the way runtimes use archives as pseudo-loop-mounted-filesystems only requires one level of dereference. A zip file inside that zip file would just be left alone. A bit different from a "smart" archive tool, or a virus-scanner, which tend to want to recursively unpack things until they run out of archives.
- mst 9y agoThough back when I worked ISP operations our AV setup was quite nicely screwed over by a simple zip-that-unpacks-a-giant-file - since when it reached 2Gb the AV process would crash without cleaning up and eventually we ran out of unpacking space and couldn't process anything else either (but until then kept processing at about 75% normal speed because the bomb went back into queue for a bit after that). Duct taped it by doing roughly 'rm /tmp/av_system//' in cron once a minute to keep things up while we tracked the offending email down and malleted it out of existence. AV vendor intentionally not mentioned since >15 years later I'm sure their code is mostly different and mostly not maintained by the same people.
- deleted 9y ago[deleted]