Files
ppsspp/Core
Henrik Rydgård f3d7d8bc0c Fix Zip Slip in zip extraction and add unit test
A crafted zip with a parent-directory ("..") entry name could escape the
destination directory during extraction, writing arbitrary files on the
host (e.g. into startup/autostart folders). ExtractZipContents built the
output path by concatenating the raw zip entry name onto the destination
with no traversal check.

Changes:
- Add HasParentDirComponent() utility in Core/Util/PathUtil and use it in
  GameManager::ExtractZipContents to reject entries with a ".." component.
  Guard both the directory-creation and file-writing passes.
- Expose ExtractZipContents as public for testing.
- Add unittest/TestZipSlip which crafts a zip with a "../evil.txt" entry
  and verifies it is not written outside the destination directory.
2026-07-31 20:35:12 +02:00
..
2026-07-30 18:44:44 +02:00
2026-06-02 11:15:08 +02:00
…
2026-07-30 10:03:15 +02:00
2026-07-27 23:41:13 +02:00
2026-07-29 16:27:33 +02:00
2026-06-12 17:28:52 +02:00
…
2026-07-29 16:27:33 +02:00
2026-07-29 16:27:33 +02:00
2025-08-31 13:37:43 +02:00
…
2026-07-27 18:37:28 +02:00
2026-05-19 13:59:04 +02:00
2026-07-29 16:27:33 +02:00
2026-07-23 15:04:04 -04:00
2025-10-27 12:20:24 +01:00