![]() |
#1 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 439
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Error when ePub containt a relatif path archive name
Sigil can't load the ePub when they contain a relative path:
Code:
Possible evil or corrupt epub file name: OEBPS/../images/cover.jpg It's rare, and I'm sure in some cases the error is valid and nothing can be done (when you exit the archive for example). PS: the bug is old. Ironically it was "quite" easy to find a ePub with this : The "Quick start guide for Calibre" 4e edition -by John Schember. |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,748
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Not an error in Sigil. Sigil will not load files outside the root path of the epub by design. No upward relative paths are needed in any epub. This is an attack vector that can be used to craft a malicious epub to overwrite system files. There was actually a CVE/security bug filed against Sigil (and "minizip") to prevent loading such epubs/zips.
Google "zip slip attack" for more details. If you are 100% sure the epub has not been tampered with then manually unpack it and use AddExisting to add its pieces in proper form. Last edited by KevinH; 01-21-2022 at 12:03 PM. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-350 About the epub custom font path And how to know the path? | 52manhua | Sony Reader Dev Corner | 6 | 12-20-2013 01:28 AM |
"Error importing EPUB. EOCD not found. Not a ZIP archive? (Error Code 1068)" | oren | ePub | 8 | 02-20-2012 07:20 AM |
"Error importing EPUB. EOCD not found. Not a ZIP archive? (Error Code 1068)" | oren | Android Devices | 1 | 02-20-2012 04:10 AM |