Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: eae872cff973a01aabf60e0a4dd16fa67fb81233
Ticket: 681877ffffffffffffffffffffffffffffffffff
tcl_platform(user) is spoofable
User & Date: dgp on 2003-02-06 19:39:11
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    It seems that on Unix, that value of
    tcl_platform(user) is simply copied over
    from env(USER) or env(LOGNAME).
    There doesn't seem to be any attempt
    to discover and report the actual
    uid under which the process is running.
    
    On Windows, the value is taken first
    from env(USERNAME), and a call
    to GetUserName() takes place only
    if env(USERNAME) is not set.
    
    This is a bit troubling.  Tcl already provides
    access to the environment variables
    via the env array, so there's really
    nothing new provided.  However, because
    the value is placed in tcl_platform(user)
    it gains the color of authority as a value 
    provded by Tcl iteself, distinguished
    from the env variable values, which any
    programmer knows can be set by the
    end user.
    
    Anyone programmer trusting tcl_platform(user)
    to be truthful is acting on misplaced faith.
    The existence of tcl_platform(user) encourages
    such inappropriate trust.
    
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.4.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "38. Init - Library - Autoload"
  10. title changed to: "tcl_platform(user) is spoofable"
  11. type changed to: "Bug"