Access to cmd shell thru asp-security question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob

    Access to cmd shell thru asp-security question

    Hi,

    We have need to run server based .vbs files and other OS commands through
    active server pages i.e...

    Set oShell = Server.CreateOb ject("WScript.S hell")
    oShell.Run("c:\ somecmd.bat",,T rue)

    Under Windows 2000 the EVERYONE group had read/execute rights against
    cmd.exe. Under 2003 this has been removed and in order to get my .asp file
    to execute the cmd shell I must grant the IUSR acct read/execute access to
    cmd.exe on the web server.

    Is there a better approach or "best practice" to properly secure my web
    server and still be able to shell out to cmd.exe from asp?

    Thanks for any insights!!!



  • Jeff Cochran

    #2
    Re: Access to cmd shell thru asp-security question

    On Mon, 18 Oct 2004 08:50:43 -0400, "Rob" <webdba.nospam@ tampagov.net>
    wrote:
    [color=blue]
    >We have need to run server based .vbs files and other OS commands through
    >active server pages i.e...
    >
    >Set oShell = Server.CreateOb ject("WScript.S hell")
    >oShell.Run("c: \somecmd.bat",, True)
    >
    >Under Windows 2000 the EVERYONE group had read/execute rights against
    >cmd.exe. Under 2003 this has been removed and in order to get my .asp file
    >to execute the cmd shell I must grant the IUSR acct read/execute access to
    >cmd.exe on the web server.
    >
    >Is there a better approach or "best practice" to properly secure my web
    >server and still be able to shell out to cmd.exe from asp?[/color]

    You can use authentication and run the CMD as the authenticated user.
    That only helps if you only need specific users running the commands
    of course. You could also find alternatives to whatever you need to
    shell to.

    Otherwise, to get the functionality you may need to decrease the
    security appropriately.

    Jeff

    Comment

    Working...