Re: Opening cmd.exe to IUSR_<machine>
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 01/29/04
- Next message: Brad Watson: "Re: Opening cmd.exe to IUSR_<machine>"
- Previous message: David Wang [Msft]: "Re: Problem with IIS6."
- In reply to: Brad Watson: "Opening cmd.exe to IUSR_<machine>"
- Next in thread: Brad Watson: "Re: Opening cmd.exe to IUSR_<machine>"
- Reply: Brad Watson: "Re: Opening cmd.exe to IUSR_<machine>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 28 Jan 2004 17:22:08 -0800
The default ACLs on CMD.EXE (indeed, all of the command line EXE programs in
the System32 directory) make it inaccessible to any user identity logged on
by IIS except for administrators. This is intentional.
Your code does not actually need access to the command shell. It needs
access to the CreateProcess Win32 API call.
Simply renaming cmd.exe is not security.
-- //David IIS This posting is provided "AS IS" with no warranties, and confers no rights. // "Brad Watson" <anonymous@discussions.microsoft.com> wrote in message news:009e01c3e569$46940b60$3501280a@phx.gbl... Hi, I'm developing a publicly accessible Perl CGI script that needs to run shell commands such as: my $suggestions = `echo misspelt | aspell.exe -a`; Perl requires use of cmd.exe in order to execute this command and on Windows 2003/IIS 6.0 this is not possible under the default security permissions since IUSR_<machine> doesn't have read/execute permission on cmd.exe. Since it would be a bad idea to grant IUSR_<machine> read/execute access on cmd.exe (please correct me if I'm wrong) I was thinking of making a copy of cmd.exe elsewhere in the file system and changing the permissions on the copy. If the copy was renamed then it seems unlikely that a malicious user could find it in order to exploit it. Any thoughts on this would be greatly appreciated. Cheers, Brad
- Next message: Brad Watson: "Re: Opening cmd.exe to IUSR_<machine>"
- Previous message: David Wang [Msft]: "Re: Problem with IIS6."
- In reply to: Brad Watson: "Opening cmd.exe to IUSR_<machine>"
- Next in thread: Brad Watson: "Re: Opening cmd.exe to IUSR_<machine>"
- Reply: Brad Watson: "Re: Opening cmd.exe to IUSR_<machine>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|