$ ./guess_the_languageCybersecurity
Cybersecurity · hard · #318

What must an upload handler do to stop this archive entry escaping its target folder?

archive.zip contains: ../../../etc/cron.d/job
  1. Check the archive's file size
  2. Rename the zip before extracting any of it
  3. Verify the resolved path stays inside
  4. Scan the archive with antivirus
This is Zip Slip: entry names with ../ write outside the extraction directory. Canonicalise each destination path and reject any not under the target root.
Play Cybersecurity ▸