"Path is outside SIP root" false positive #63

Closed
opened 2026-04-15 12:57:43 +00:00 by scossu · 0 comments
Owner

Following instructions on https://pkar-doc.knowledgetx.com/test_drive/ , inside a pre-packaged PKAR container:

pkar deposit /usr/local/lib/luarocks/rocks-5.4/pocket_archive/1.0.0rc-1/examples/sip/pkar_submission-postcard.csv

generates the "Path is outside SIP root" error. This error is generated by the path validation step that prevents ../ exploits, but it is clearly not behaving correctly here.

Conversely,

cd /usr/local/lib/luarocks/rocks-5.4/pocket_archive/1.0.0rc-1/examples/sip
pkar deposit pkar_submission-postcard.csv

works.

  • Amend documentation to use workaround.
  • Fix path check logic.
Following instructions on https://pkar-doc.knowledgetx.com/test_drive/ , inside a pre-packaged PKAR container: ``` pkar deposit /usr/local/lib/luarocks/rocks-5.4/pocket_archive/1.0.0rc-1/examples/sip/pkar_submission-postcard.csv ``` generates the "Path is outside SIP root" error. This error is generated by the path validation step that prevents `../` exploits, but it is clearly not behaving correctly here. Conversely, ``` cd /usr/local/lib/luarocks/rocks-5.4/pocket_archive/1.0.0rc-1/examples/sip pkar deposit pkar_submission-postcard.csv ``` works. - [x] Amend documentation to use workaround. - [x] Fix path check logic.
scossu 2026-04-15 13:33:26 +00:00
  • closed this issue
  • added the
    s
    done
    label
scossu added this to the v1.0.0 milestone 2026-04-15 13:34:04 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ktx/pocket_archive#63
No description provided.