Skip to content
Tcl Source Code Artifact [2980869eab]
Login

Artifact [2980869eab]

Artifact 2980869eab3e70de787a0438d30946dbaa3cc33291d0440130c2507cdbb5bfe9:

Ticket change [2980869eab] - New ticket [a47b5874991375da|a47b587499] <i>zipfs should not be available to safe interps</i>. by apnadkarni on 2023-09-10 08:14:18.
D 2023-09-10T08:14:18.866
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment zipfs\smounted\sarchives\sshould\sbe\ssubject\sto\ssame\ssafe\sinterp\srestrictions\sfor\sfile\ssystem\saccess\sas\snative\sfiles.\sHowever,\sthe\sexists\sand\sinfo\scommands\sare\sallowed.\r\n\r\n```\r\n%\sset\ssafe\s[interp\screate\s-safe]\r\ninterp0\r\n%\sinterp0\seval\s{zipfs\smount}\r\nnot\sallowed\sto\sinvoke\ssubcommand\smount\sof\szipfs\r\n%\sinterp0\seval\s{zipfs\sexists\s//zipfs:/test/test}\r\n1\r\n%\sinterp0\seval\s{zipfs\sinfo\s//zipfs:/test/test}\r\nD:/src/tcltk/wip/tcl/tests/zipfiles/test.zip\s5\s5\s55\r\n```\r\n\r\nTIP\s430\ssays\sspecifically\s*Unlike\s_file\sexists_\sthis\scommand\sis\ssafe\r\nto\srun\sin\sa\ssafe\sinterp,\sbecause\sit\sconfers\sno\saccess\sto\sthe\slocal\sfile\r\nsystem.*\r\n\r\nThis\sdoes\snot\smake\ssense\sto\sme.\sLocal\sfile\ssystem\sis\snot\sthe\sonly\sresource\sthat\sshould\sbe\sprotected.\sAn\sapplication\smay\schoose\sto\sstore\sany\skind\sof\sinformation\swithin\san\sarchive\sand\sthese\sshould\sbe\safforded\sthe\ssame\slevel\sof\sprotection\sfrom\smalicious\scode\sin\ssafe\sinterps\sas\sfor\snative\sfile\ssystems.\sIf\s`exists`\sis\snot\sallowed\sfor\sthe\slatter,\s`zipfs\sexists|info`\sshould\snot\sbe\sallowed\seither\sfor\sarchives.
J foundin 8.7
J is_private 0
J login apnadkarni
J priority 5\sMedium
J private_contact 9546e9877f1a8899e25a89082561ee694e7fb402
J resolution None
J severity Important
J status Open
J submitter apnadkarni
J subsystem -\sNew\sBuiltin\sCommands
J title zipfs\sshould\snot\sbe\savailable\sto\ssafe\sinterps
J type Bug
K a47b5874991375da39724508e8ae84b6002f5315
U apnadkarni
Z 5c672b33e1e5e290f75928ed92970a36