Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Server Security > Why Users dont have write rights to the %windir%\TEMP folder

Reply
Thread Tools Display Modes

Why Users dont have write rights to the %windir%\TEMP folder

 
 
Eric
Guest
Posts: n/a

 
      05-11-2009
Hello,

everything is in the title ;-)

Why users don't have the write access to the c:\windows\temp folder
(when Power Users have this access).

Is there a security reason for that ?

I will appreciate to have technical information about that as we have
an application that needs to let "Users" to have write access on this
folder and I will like to see if it is acceptable in terms of security.

Thank you

--
Eric


 
Reply With Quote
 
 
 
 
Dave Warren
Guest
Posts: n/a

 
      05-11-2009
In message <> Eric
<> was claimed to have wrote:

>Hello,
>
>everything is in the title ;-)
>
>Why users don't have the write access to the c:\windows\temp folder
>(when Power Users have this access).
>
>Is there a security reason for that ?


Yes.

>I will appreciate to have technical information about that as we have
>an application that needs to let "Users" to have write access on this
>folder and I will like to see if it is acceptable in terms of security.


That's not the correct location for temporary files, any and every file
a user needs to write should be in their own profile directory.

The security risk here is that by allowing applications to use a central
temporarily file storage, it potentially allows a malicious user to
place a file here that will exploit a buffer overrun or other similar
bug in an application installed on the machine to cause that application
to do something unexpected.

An example I've seen in real life: A company has a logon script that
downloads a configuration file from the company network into
%systemroot%\temp and performs some configuration of the user's profile
based on that configuration file. A malicious user placed an alternate
configuration file into the %systemroot%\temp directory, marked it as
read-only, then called the help desk and made up a story that would
require the helpdesk to logon to the machine remotely with
administrative access.

When the helpdesk logged on, the logon script was unable to write it's
configuration file, failed to error out and instead proceeded to
configure an administrative level account with options set by the
malicious user. Specifically, a "net group administrators badguy /add"
type command was used, giving badguy way more permissions then they
should have had without anyone being the wiser.

Failing to isolate temporary files isn't automatically a vulnerability,
but it's one method a discovered vulnerability may escalate from being
local-user impacting to system impacting.
 
Reply With Quote
 
Al Dunbar
Guest
Posts: n/a

 
      05-12-2009

"Dave Warren" <dave-> wrote in message
news:...
> In message <> Eric
> <> was claimed to have wrote:
>
>>Hello,
>>
>>everything is in the title ;-)


In future, please put the entire content of your post in the body of the
post, and put only a descriptive "subject" in the subject line.

>>Why users don't have the write access to the c:\windows\temp folder
>>(when Power Users have this access).


By default, power user access is somewhere between administrator and user.
This allows you to give some regular users rights that will allow them to
assist other users. IMHO, this should be done by having special "power user"
accounts that are NOT to be used for other than assisting other users (i.e.
no internet browsing or running corporate applications). Ideally, they
should also have the basics of security explained to them so they don't go
and do something stiupid.

In my organization we have about 20,000 regular user accounts, perhaps 300
accounts having admin access on selected workstations and, in some cases,
servers. The number of "power users" of any type can be counted on the
fingers of zero hands.

>>Is there a security reason for that ?

>
> Yes.
>
>>I will appreciate to have technical information about that as we have
>>an application that needs to let "Users" to have write access on this
>>folder and I will like to see if it is acceptable in terms of security.

>
> That's not the correct location for temporary files, any and every file
> a user needs to write should be in their own profile directory.
>
> The security risk here is that by allowing applications to use a central
> temporarily file storage, it potentially allows a malicious user to
> place a file here that will exploit a buffer overrun or other similar
> bug in an application installed on the machine to cause that application
> to do something unexpected.
>
> An example I've seen in real life:


<snipped: an excellent, real-life example>

Unfortunately, the OP is hooped, unless this is an in-house developed
application that could be modified to comply more closely with security best
practices.

If you do proceed, what I would recommend is that you create a domain-level
security group that will contain all users of the application, and give
change access to the TEMP folder only to that group. Tighter control could
have such a group for each workstation, such that users of the application
would only have this access on the system they normally use for the purpose
rather than on every workstation.

/Al


 
Reply With Quote
 
Anthony [MVP]
Guest
Posts: n/a

 
      05-12-2009
I have come across one or two applications like that.
Sometimes you can pre-create the file in that folder, then give the users
Modify rights to that file only,
Anthony
http://www.airdesk.com



"Eric" <> wrote in message
news:. ..
> Hello,
>
> everything is in the title ;-)
>
> Why users don't have the write access to the c:\windows\temp folder (when
> Power Users have this access).
>
> Is there a security reason for that ?
>
> I will appreciate to have technical information about that as we have an
> application that needs to let "Users" to have write access on this folder
> and I will like to see if it is acceptable in terms of security.
>
> Thank you
>
> --
> Eric
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why %windir%\temp\temporary internet files? Edward Internet Explorer 7 05-31-2008 10:06 PM
rights to users home folder Bill Windows Server 1 03-24-2008 01:31 PM
%windir%\installer Folder? Oldster Windows Vista General Discussion 2 03-10-2008 06:08 PM
Can't write to Windows Temp folder Pete in NM Windows Vista Administration 3 04-02-2007 08:46 PM
CLean out all users Temp Dir Folder Daniel Scripting 0 06-28-2006 01:46 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59