.
D 2003-02-06T19:39:11
J assignee dgp
J cmimetype text/plain
J comment \nIt\sseems\sthat\son\sUnix,\sthat\svalue\sof\ntcl_platform(user)\sis\ssimply\scopied\sover\nfrom\senv(USER)\sor\senv(LOGNAME).\nThere\sdoesn't\sseem\sto\sbe\sany\sattempt\nto\sdiscover\sand\sreport\sthe\sactual\nuid\sunder\swhich\sthe\sprocess\sis\srunning.\n\nOn\sWindows,\sthe\svalue\sis\staken\sfirst\nfrom\senv(USERNAME),\sand\sa\scall\nto\sGetUserName()\stakes\splace\sonly\nif\senv(USERNAME)\sis\snot\sset.\n\nThis\sis\sa\sbit\stroubling.\s\sTcl\salready\sprovides\naccess\sto\sthe\senvironment\svariables\nvia\sthe\senv\sarray,\sso\sthere's\sreally\nnothing\snew\sprovided.\s\sHowever,\sbecause\nthe\svalue\sis\splaced\sin\stcl_platform(user)\nit\sgains\sthe\scolor\sof\sauthority\sas\sa\svalue\s\nprovded\sby\sTcl\siteself,\sdistinguished\nfrom\sthe\senv\svariable\svalues,\swhich\sany\nprogrammer\sknows\scan\sbe\sset\sby\sthe\nend\suser.\n\nAnyone\sprogrammer\strusting\stcl_platform(user)\nto\sbe\struthful\sis\sacting\son\smisplaced\sfaith.\nThe\sexistence\sof\stcl_platform(user)\sencourages\nsuch\sinappropriate\strust.\n\n\n\n\n
J foundin obsolete:\s8.4.1
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 38.\sInit\s-\sLibrary\s-\sAutoload
J title tcl_platform(user)\sis\sspoofable
J type Bug
K 681877ffffffffffffffffffffffffffffffffff
U dgp
Z 7253c7cb223fde363265a1b0e8492d88