Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 275a260a108c156bd31e7b10cea18c5682640031d6fc31f95a6bd4af1756f507
Ticket: ba3a158b5210723a51c468e086804d1189f70752
Additional commands to be disabled in safe interps
User & Date: apnadkarni on 2024-08-04 03:29:58
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    ```
    % interp create -safe ip
    ip
    % ip eval {info hostname}
    io
    % ip eval {info loaded}
    {//zipfs:/lib/tcl/tcl_library/registry/tcl9registry13.dll Registry}
    ```
    
    `info loaded` should not be permitted for the same reason `info nameofexecutable` is currently not allowed - it reveals file system information.  `info script` might fall into the same category but need to check if it already obfuscates file paths when `source` is exposed to a safe interpreter, for example via SafeBase. 
    
    `info hostname` is perhaps debatable. It is part of a larger set that leak information about the host system OS and arch (tcl_platform, info pathseparator etc.). Should all these be blocked in a safe interpreter?
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "Additional commands to be disabled in safe interps"
  16. type changed to: "Bug"