Summary: | Especially crafted Okular archives may lead to an arbitrary file creation on the user workstation | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Joran Hervé <joran.herve> |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | aacid, joran.herve, nate |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/okular/8ff7abc14d41906ad978b6bc67e69693863b9d47 | Version Fixed In: | 18.08.1 |
Sentry Crash Report: | |||
Attachments: | Proof of Concept |
Description
Joran Hervé
2018-08-31 12:52:24 UTC
You should never run okular as root, that's just bad practice and there's really no reason for anyone be doing that. Anyhow i guess the problem applies for regular users too My suggestion at https://phabricator.kde.org/D15192 Git commit 8ff7abc14d41906ad978b6bc67e69693863b9d47 by Albert Astals Cid. Committed on 03/09/2018 at 19:14. Pushed by aacid into branch 'Applications/18.08'. Fix path traversal issue when extracting an .okular file Summary: With specially crafted .okular files you can trick okular to create temporary files outside the temporary folder We fix that by making sure the file doesn't have folders since the ones we create don't Subscribers: okular-devel Tags: #okular Differential Revision: https://phabricator.kde.org/D15192 M +12 -0 core/document.cpp https://commits.kde.org/okular/8ff7abc14d41906ad978b6bc67e69693863b9d47 |