Tcl Source Code

View Ticket
Login
Ticket UUID: 1669424
Title: trusted info leaks into safe interp via TIP 280
Type: Bug Created on: 2007-02-26 20:10:08
Submitter: dgp Assigned to: andreas_kupries
Subsystem: 20. [interp] Severity:
Priority: 7 High Last modified: 2007-06-11 04:19:14
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.5a6
Description:
Save demo script in a file
and [source] in a trusted
interp:

interp create -safe slave
puts [slave eval {
    return -level 0 "I know about [dict get [info frame 0] file]"
}]

This demonstrates filesystem
information leaking in the
safe interp.

Since [glob] is denied to a
safe interp, it seems that such
information is meant to be denied.
User Comments:
hobbs added on 2007-06-11 04:19:14:
Logged In: YES 
user_id=72656
Originator: NO

We can filter information with Tcl_IsSafe checks, but what exactly is "secure" info is a gray area.