Overview
| Artifact ID: | 2980869eab3e70de787a0438d30946dbaa3cc33291d0440130c2507cdbb5bfe9 |
|---|---|
| Ticket: | a47b5874991375da39724508e8ae84b6002f5315
zipfs should not be available to safe interps |
| User & Date: | apnadkarni on 2023-09-10 08:14:18 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- comment changed to:
zipfs mounted archives should be subject to same safe interp restrictions for file system access as native files. However, the exists and info commands are allowed. ``` % set safe [interp create -safe] interp0 % interp0 eval {zipfs mount} not allowed to invoke subcommand mount of zipfs % interp0 eval {zipfs exists //zipfs:/test/test} 1 % interp0 eval {zipfs info //zipfs:/test/test} D:/src/tcltk/wip/tcl/tests/zipfiles/test.zip 5 5 55 ``` TIP 430 says specifically *Unlike _file exists_ this command is safe to run in a safe interp, because it confers no access to the local file system.* This does not make sense to me. Local file system is not the only resource that should be protected. An application may choose to store any kind of information within an archive and these should be afforded the same level of protection from malicious code in safe interps as for native file systems. If `exists` is not allowed for the latter, `zipfs exists|info` should not be allowed either for archives. - foundin changed to: "8.7"
- is_private changed to: "0"
- login: "apnadkarni"
- priority changed to: "5 Medium"
- private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "apnadkarni"
- subsystem changed to: "- New Builtin Commands"
- title changed to: "zipfs should not be available to safe interps"
- type changed to: "Bug"