Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-20
21:11 • Ticket [a63f5a4fed] Safe interp gets the parent's -errorinfo and -errorstack... artifact: 60b4c1556c user: jan.nijtmans
2007-06-11
04:19 • Ticket [1669424fff] trusted info leaks into safe interp via TIP 280 status s... artifact: 423c0ec618 user: hobbs
2007-02-26
20:10 • New ticket [1669424fff]. artifact: c097cc1c09 user: dgp

trusted info leaks into safe interp via TIP 280

Open1669424fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 19 years ago
Descriptionplain2007-02-26 20:10:08
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.
Referenced by1
  • 60b4c1556cTicket [a63f5a4fed] Safe interp gets the parent's -errorinfo and -errorstack through a failing alias status still Open with 6 other changes ticket2026-10-20 21:11:13
hobbsplain2007-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.
Log in (anonymous is fine) to add a comment.