Re: how to block/disable windows scripting host ?
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 03/10/04
- Previous message: Rev Limbo: "Help ..... with IIS 5 and IUSR_ Anonymous User Account"
- In reply to: Akhlaq Khan: "how to block/disable windows scripting host ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 10 Mar 2004 14:31:48 -0800
It is not possible to declaratively "disable" arbitrary objects on a per
site basis.
However, I can think of a hack which may work for you, using filesystem
ACLs. ACL the DLL implementing the WSH objects to be inaccessible to the
remote authenticated user from IIS.
I have attached a recent post showing how to selectively block certain
websites (but not others) from using the FSO object. WSH objects are
implemented by another binary, so apply the same logic. It definitely works
on IIS6; on other IIS versions, under some configurations, it may not be
possible -- but you haven't given any information on your configuration so I
cannot advise further.
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Akhlaq Khan" <akhlaq.khan@softechww.com> wrote in message
news:eVrN2$rBEHA.2404@TK2MSFTNGP11.phx.gbl...
hi,
can u please tell me how can i block WSH scripts and wscript.shell objects
from being created in ASP pages ?
one of my servers recently got hacked and i am desparately looking for a
solution.
thanks,
akhlaq.
"Leythos" <void@nowhere.com> wrote in message
news:MPG.1a886bc34f9beb9c98a130@news-server.columbus.rr.com...
> In article <844101c3e9b3$3fb2dc10$a101280a@phx.gbl>,
> dylanmilks@yahoo.com says...
> > Through my ASP app, I'm using wshell.script to open a cmd
> > window. If I don't pass any parameter to cmd, it works
> > fine. If I try to give it some parameters, it gives
> > me "access is denied".
> >
> > This works:
> > Set oShell = Server.CreateObject("WScript.Shell")
> > Set oExec = oShell.Exec("cmd /c")
> >
> > This returns access denied:
> > Set oShell = Server.CreateObject("WScript.Shell")
> > Set oExec = oShell.Exec("cmd /c dir c:\")
> >
> > Any idea why?
> > How can I get this to work?
>
> You don't want to let it work - IIS should NOT be able to access CMD at
> any time, you will be hacked.
>
> --
> --
> spamfree999@rrohio.com
> (Remove 999 to reply to me)
begin 666 Re_ Disabling FS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T*#0H`
`
end
- Previous message: Rev Limbo: "Help ..... with IIS 5 and IUSR_ Anonymous User Account"
- In reply to: Akhlaq Khan: "how to block/disable windows scripting host ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|